diff --git a/src/Command/Factory.php b/src/Command/Factory.php index 598b80be..c569389d 100644 --- a/src/Command/Factory.php +++ b/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) { diff --git a/tests/Predis/ClientTest.php b/tests/Predis/ClientTest.php index 3c60c7d8..04e340dc 100644 --- a/tests/Predis/ClientTest.php +++ b/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()); } /** diff --git a/tests/Predis/Collection/Iterator/HashKeyTest.php b/tests/Predis/Collection/Iterator/HashKeyTest.php index 03bb63b5..499597a1 100644 --- a/tests/Predis/Collection/Iterator/HashKeyTest.php +++ b/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'); diff --git a/tests/Predis/Command/Redis/SLOWLOG_Test.php b/tests/Predis/Command/Redis/SLOWLOG_Test.php index aa09391f..89bcd6d9 100644 --- a/tests/Predis/Command/Redis/SLOWLOG_Test.php +++ b/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 */ diff --git a/tests/Predis/Protocol/Text/ResponseReaderTest.php b/tests/Predis/Protocol/Text/ResponseReaderTest.php index 83e362d7..594cbaab 100644 --- a/tests/Predis/Protocol/Text/ResponseReaderTest.php +++ b/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())