Kaynağa Gözat

Apply CS fixes.

Daniele Alessandri 8 yıl önce
ebeveyn
işleme
fa643ac20c

+ 0 - 1
src/Command/Factory.php

@@ -57,7 +57,6 @@ abstract class Factory implements FactoryInterface
      * @param string $commandID Command ID.
      *
      * @return string|null
-     *
      */
     public function getCommandClass($commandID)
     {

+ 2 - 2
tests/Predis/ClientTest.php

@@ -383,7 +383,7 @@ class ClientTest extends PredisTestCase
      */
     public function testConstructorWithInvalidArgumentType()
     {
-        $client = new Client(new \stdClass);
+        $client = new Client(new \stdClass());
     }
 
     /**
@@ -393,7 +393,7 @@ class ClientTest extends PredisTestCase
      */
     public function testConstructorWithInvalidOptionType()
     {
-        $client = new Client('tcp://host1', new \stdClass);
+        $client = new Client('tcp://host1', new \stdClass());
     }
 
     /**

+ 1 - 1
tests/Predis/Collection/Iterator/HashKeyTest.php

@@ -55,7 +55,7 @@ class HashKeyTest extends PredisTestCase
             ->method('hscan')
             ->with('key:hash', 0, array())
             ->will($this->returnValue(
-                array(0, array()
+                array(0, array(),
             )));
 
         $iterator = new HashKey($client, 'key:hash');

+ 2 - 2
tests/Predis/Command/Redis/SLOWLOG_Test.php

@@ -51,7 +51,7 @@ class SLOWLOG_Test extends PredisCommandTestCase
     }
 
     /**
-     * This is the response type for SLOWLOG GET
+     * This is the response type for SLOWLOG GET.
      *
      * @group disconnected
      */
@@ -73,7 +73,7 @@ class SLOWLOG_Test extends PredisCommandTestCase
     }
 
     /**
-     * This is the response type for SLOWLOG LEN
+     * This is the response type for SLOWLOG LEN.
      *
      * @group disconnected
      */

+ 0 - 1
tests/Predis/Protocol/Text/ResponseReaderTest.php

@@ -106,7 +106,6 @@ class ResponseReaderTest extends PredisTestCase
      */
     public function testUnknownResponsePrefix()
     {
-
         $connection = $this->getMockConnectionOfType('Predis\Connection\CompositeConnectionInterface', 'tcp://127.0.0.1:6379');
         $connection
             ->expects($this->once())