From d06930d79a1c99bfe2a9d0c07cdebcb5713063b0 Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Sun, 19 Mar 2017 20:56:28 +0330 Subject: [PATCH] CS Fixed --- src/Illuminate/Redis/Connections/PhpRedisConnection.php | 8 ++++---- tests/Redis/Connections/PhpRedisConnectionTest.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Illuminate/Redis/Connections/PhpRedisConnection.php b/src/Illuminate/Redis/Connections/PhpRedisConnection.php index 1a39d4e4ee5c..73b5d0b191cc 100644 --- a/src/Illuminate/Redis/Connections/PhpRedisConnection.php +++ b/src/Illuminate/Redis/Connections/PhpRedisConnection.php @@ -111,7 +111,7 @@ public function zadd($key, ...$dictionary) } /** - * Execute commands in a pipeline + * Execute commands in a pipeline. * * @param callable $callback * @return array|\Redis @@ -126,7 +126,7 @@ public function pipeline(callable $callback = null) } /** - * Execute commands in a transaction + * Execute commands in a transaction. * * @param callable $callback * @return array|\Redis @@ -141,14 +141,14 @@ public function transaction(callable $callback = null) } /** - * Execute a raw command + * Execute a raw command. * * @param array $parameters * @return mixed */ public function executeRaw(array $parameters) { - return $this->command("rawCommand", $parameters); + return $this->command('rawCommand', $parameters); } /** diff --git a/tests/Redis/Connections/PhpRedisConnectionTest.php b/tests/Redis/Connections/PhpRedisConnectionTest.php index 353f0d502e9f..6b826f598ce9 100644 --- a/tests/Redis/Connections/PhpRedisConnectionTest.php +++ b/tests/Redis/Connections/PhpRedisConnectionTest.php @@ -2,8 +2,8 @@ namespace Illuminate\Tests\Redis\Connections; -use Illuminate\Tests\Redis\InteractsWithRedis; use PHPUnit\Framework\TestCase; +use Illuminate\Tests\Redis\InteractsWithRedis; class PhpRedisConnectionTest extends TestCase { @@ -14,7 +14,7 @@ public function setUp() parent::setUp(); $this->setUpRedis(); - if(! isset($this->redis['phpredis'])) { + if (! isset($this->redis['phpredis'])) { $this->markTestSkipped('PhpRedis should be enabled to run the tests'); } } @@ -33,7 +33,7 @@ public function testPhpRedisPipeline() $pipe->set('test:pipeline:2', 2); $pipe->get('test:pipeline:2'); }); - + $this->assertCount(4, $result); $this->assertEquals(1, $result[1]); $this->assertEquals(2, $result[3]); @@ -61,4 +61,4 @@ public function testPhpRedisExecuteRaw() 1, $this->redis['phpredis']->connection()->executeRaw(['GET', 'test:raw:1']) ); } -} \ No newline at end of file +}