Browse Source

Rename "Array" type-hint to to "array".

Daniele Alessandri 11 years ago
parent
commit
c6f51e82bf
54 changed files with 78 additions and 78 deletions
  1. 1 1
      bin/create-single-file.php
  2. 1 1
      bin/generate-command-test.php
  3. 3 3
      lib/Predis/Client.php
  4. 1 1
      lib/Predis/Cluster/PredisStrategy.php
  5. 5 5
      lib/Predis/Command/AbstractCommand.php
  6. 2 2
      lib/Predis/Command/CommandInterface.php
  7. 1 1
      lib/Predis/Command/HashDelete.php
  8. 1 1
      lib/Predis/Command/HashGetMultiple.php
  9. 1 1
      lib/Predis/Command/HashScan.php
  10. 1 1
      lib/Predis/Command/HashSetMultiple.php
  11. 1 1
      lib/Predis/Command/KeyDelete.php
  12. 1 1
      lib/Predis/Command/KeyScan.php
  13. 1 1
      lib/Predis/Command/KeySort.php
  14. 1 1
      lib/Predis/Command/ListPopFirstBlocking.php
  15. 1 1
      lib/Predis/Command/ListPushTail.php
  16. 1 1
      lib/Predis/Command/PubSubSubscribe.php
  17. 1 1
      lib/Predis/Command/PubSubUnsubscribe.php
  18. 1 1
      lib/Predis/Command/ScriptedCommand.php
  19. 1 1
      lib/Predis/Command/ServerSlaveOf.php
  20. 1 1
      lib/Predis/Command/SetAdd.php
  21. 1 1
      lib/Predis/Command/SetIntersection.php
  22. 1 1
      lib/Predis/Command/SetIntersectionStore.php
  23. 1 1
      lib/Predis/Command/SetRemove.php
  24. 1 1
      lib/Predis/Command/SetScan.php
  25. 1 1
      lib/Predis/Command/StringBitOp.php
  26. 1 1
      lib/Predis/Command/StringGetMultiple.php
  27. 1 1
      lib/Predis/Command/StringSetMultiple.php
  28. 1 1
      lib/Predis/Command/TransactionWatch.php
  29. 1 1
      lib/Predis/Command/ZSetAdd.php
  30. 1 1
      lib/Predis/Command/ZSetRange.php
  31. 1 1
      lib/Predis/Command/ZSetRemove.php
  32. 1 1
      lib/Predis/Command/ZSetScan.php
  33. 1 1
      lib/Predis/Command/ZSetUnionStore.php
  34. 1 1
      lib/Predis/Connection/ConnectionFactory.php
  35. 1 1
      lib/Predis/Connection/ConnectionFactoryInterface.php
  36. 1 1
      lib/Predis/Connection/ConnectionParameters.php
  37. 2 2
      lib/Predis/Pipeline/MultiExecExecutor.php
  38. 1 1
      lib/Predis/Profile/ServerProfile.php
  39. 1 1
      lib/Predis/Profile/ServerProfileInterface.php
  40. 1 1
      lib/Predis/PubSub/Consumer.php
  41. 1 1
      lib/Predis/Session/Handler.php
  42. 1 1
      lib/Predis/Transaction/MultiExec.php
  43. 4 4
      tests/PHPUnit/CommandTestCase.php
  44. 2 2
      tests/PHPUnit/ConnectionTestCase.php
  45. 7 7
      tests/Predis/ClientTest.php
  46. 1 1
      tests/Predis/Connection/ComposableStreamConnectionTest.php
  47. 1 1
      tests/Predis/Connection/ConnectionFactoryTest.php
  48. 6 6
      tests/Predis/Connection/ConnectionParametersTest.php
  49. 1 1
      tests/Predis/Connection/PhpiredisConnectionTest.php
  50. 1 1
      tests/Predis/Connection/PhpiredisStreamConnectionTest.php
  51. 1 1
      tests/Predis/Connection/StreamConnectionTest.php
  52. 2 2
      tests/Predis/Connection/WebdisConnectionTest.php
  53. 1 1
      tests/Predis/Pipeline/PipelineContextTest.php
  54. 1 1
      tests/Predis/Transaction/MultiExecTest.php

+ 1 - 1
bin/create-single-file.php

@@ -80,7 +80,7 @@ class PredisFile
         $this->namespaces = array();
     }
 
-    public static function from($libraryPath, Array $exclude = array())
+    public static function from($libraryPath, array $exclude = array())
     {
         $nsroot = self::NS_ROOT;
         $predisFile = new PredisFile();

+ 1 - 1
bin/generate-command-test.php

@@ -40,7 +40,7 @@ class CommandTestCaseGenerator
 {
     private $options;
 
-    public function __construct(Array $options)
+    public function __construct(array $options)
     {
         if (!isset($options['class'])) {
             throw new RuntimeException("Missing 'class' option.");

+ 3 - 3
lib/Predis/Client.php

@@ -369,7 +369,7 @@ class Client implements ClientInterface
      * @param mixed $callable Optional callable used to execute the context.
      * @return PipelineContext|array
      */
-    protected function createPipeline(Array $options = null, $callable = null)
+    protected function createPipeline(array $options = null, $callable = null)
     {
         $executor = isset($options['executor']) ? $options['executor'] : null;
 
@@ -405,7 +405,7 @@ class Client implements ClientInterface
      * @param mixed $callable Optional callable used to execute the context.
      * @return Transaction\MultiExec|array
      */
-    protected function createTransaction(Array $options = null, $callable = null)
+    protected function createTransaction(array $options = null, $callable = null)
     {
         $transaction = new Transaction\MultiExec($this, $options);
 
@@ -435,7 +435,7 @@ class Client implements ClientInterface
      * @param mixed $callable Optional callable used to execute the context.
      * @return PubSub\Consumer|NULL
      */
-    protected function createPubSub(Array $options = null, $callable = null)
+    protected function createPubSub(array $options = null, $callable = null)
     {
         $pubsub = new PubSub\Consumer($this, $options);
 

+ 1 - 1
lib/Predis/Cluster/PredisStrategy.php

@@ -347,7 +347,7 @@ class PredisStrategy implements StrategyInterface
      * @param array $keys Array of keys.
      * @return Boolean
      */
-    protected function checkSameHashForKeys(Array $keys)
+    protected function checkSameHashForKeys(array $keys)
     {
         if (!$count = count($keys)) {
             return false;

+ 5 - 5
lib/Predis/Command/AbstractCommand.php

@@ -27,7 +27,7 @@ abstract class AbstractCommand implements CommandInterface
      * @param array $arguments List of arguments.
      * @return array
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return $arguments;
     }
@@ -35,7 +35,7 @@ abstract class AbstractCommand implements CommandInterface
     /**
      * {@inheritdoc}
      */
-    public function setArguments(Array $arguments)
+    public function setArguments(array $arguments)
     {
         $this->arguments = $this->filterArguments($arguments);
         unset($this->hash);
@@ -46,7 +46,7 @@ abstract class AbstractCommand implements CommandInterface
      *
      * @param array $arguments List of arguments.
      */
-    public function setRawArguments(Array $arguments)
+    public function setRawArguments(array $arguments)
     {
         $this->arguments = $arguments;
         unset($this->hash);
@@ -136,7 +136,7 @@ abstract class AbstractCommand implements CommandInterface
      * @param array $arguments Arguments for a command.
      * @return array
      */
-    public static function normalizeArguments(Array $arguments)
+    public static function normalizeArguments(array $arguments)
     {
         if (count($arguments) === 1 && is_array($arguments[0])) {
             return $arguments[0];
@@ -151,7 +151,7 @@ abstract class AbstractCommand implements CommandInterface
      * @param array $arguments Arguments for a command.
      * @return array
      */
-    public static function normalizeVariadic(Array $arguments)
+    public static function normalizeVariadic(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             return array_merge(array($arguments[0]), $arguments[1]);

+ 2 - 2
lib/Predis/Command/CommandInterface.php

@@ -43,14 +43,14 @@ interface CommandInterface
      *
      * @param array $arguments List of arguments.
      */
-    public function setArguments(Array $arguments);
+    public function setArguments(array $arguments);
 
     /**
      * Sets the raw arguments for the command without processing them.
      *
      * @param array $arguments List of arguments.
      */
-    public function setRawArguments(Array $arguments);
+    public function setRawArguments(array $arguments);
 
     /**
      * Gets the arguments of the command.

+ 1 - 1
lib/Predis/Command/HashDelete.php

@@ -28,7 +28,7 @@ class HashDelete extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/HashGetMultiple.php

@@ -28,7 +28,7 @@ class HashGetMultiple extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/HashScan.php

@@ -28,7 +28,7 @@ class HashScan extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 3 && is_array($arguments[2])) {
             $options = $this->prepareOptions(array_pop($arguments));

+ 1 - 1
lib/Predis/Command/HashSetMultiple.php

@@ -28,7 +28,7 @@ class HashSetMultiple extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             $flattenedKVs = array($arguments[0]);

+ 1 - 1
lib/Predis/Command/KeyDelete.php

@@ -28,7 +28,7 @@ class KeyDelete extends AbstractCommand implements PrefixableCommandInterface
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeArguments($arguments);
     }

+ 1 - 1
lib/Predis/Command/KeyScan.php

@@ -28,7 +28,7 @@ class KeyScan extends AbstractCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             $options = $this->prepareOptions(array_pop($arguments));

+ 1 - 1
lib/Predis/Command/KeySort.php

@@ -28,7 +28,7 @@ class KeySort extends AbstractCommand implements PrefixableCommandInterface
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 1) {
             return $arguments;

+ 1 - 1
lib/Predis/Command/ListPopFirstBlocking.php

@@ -28,7 +28,7 @@ class ListPopFirstBlocking extends AbstractCommand implements PrefixableCommandI
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[0])) {
             list($arguments, $timeout) = $arguments;

+ 1 - 1
lib/Predis/Command/ListPushTail.php

@@ -28,7 +28,7 @@ class ListPushTail extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/PubSubSubscribe.php

@@ -28,7 +28,7 @@ class PubSubSubscribe extends AbstractCommand implements PrefixableCommandInterf
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeArguments($arguments);
     }

+ 1 - 1
lib/Predis/Command/PubSubUnsubscribe.php

@@ -28,7 +28,7 @@ class PubSubUnsubscribe extends AbstractCommand implements PrefixableCommandInte
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeArguments($arguments);
     }

+ 1 - 1
lib/Predis/Command/ScriptedCommand.php

@@ -54,7 +54,7 @@ abstract class ScriptedCommand extends ServerEvalSHA
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (($numkeys = $this->getKeysCount()) && $numkeys < 0) {
             $numkeys = count($arguments) + $numkeys;

+ 1 - 1
lib/Predis/Command/ServerSlaveOf.php

@@ -28,7 +28,7 @@ class ServerSlaveOf extends AbstractCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
             return array('NO', 'ONE');

+ 1 - 1
lib/Predis/Command/SetAdd.php

@@ -28,7 +28,7 @@ class SetAdd extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/SetIntersection.php

@@ -28,7 +28,7 @@ class SetIntersection extends AbstractCommand implements PrefixableCommandInterf
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeArguments($arguments);
     }

+ 1 - 1
lib/Predis/Command/SetIntersectionStore.php

@@ -28,7 +28,7 @@ class SetIntersectionStore extends AbstractCommand implements PrefixableCommandI
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             return array_merge(array($arguments[0]), $arguments[1]);

+ 1 - 1
lib/Predis/Command/SetRemove.php

@@ -28,7 +28,7 @@ class SetRemove extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/SetScan.php

@@ -28,7 +28,7 @@ class SetScan extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 3 && is_array($arguments[2])) {
             $options = $this->prepareOptions(array_pop($arguments));

+ 1 - 1
lib/Predis/Command/StringBitOp.php

@@ -28,7 +28,7 @@ class StringBitOp extends AbstractCommand implements PrefixableCommandInterface
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 3 && is_array($arguments[2])) {
             list($operation, $destination, ) = $arguments;

+ 1 - 1
lib/Predis/Command/StringGetMultiple.php

@@ -28,7 +28,7 @@ class StringGetMultiple extends AbstractCommand implements PrefixableCommandInte
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeArguments($arguments);
     }

+ 1 - 1
lib/Predis/Command/StringSetMultiple.php

@@ -28,7 +28,7 @@ class StringSetMultiple extends AbstractCommand implements PrefixableCommandInte
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 1 && is_array($arguments[0])) {
             $flattenedKVs = array();

+ 1 - 1
lib/Predis/Command/TransactionWatch.php

@@ -28,7 +28,7 @@ class TransactionWatch extends AbstractCommand implements PrefixableCommandInter
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (isset($arguments[0]) && is_array($arguments[0])) {
             return $arguments[0];

+ 1 - 1
lib/Predis/Command/ZSetAdd.php

@@ -28,7 +28,7 @@ class ZSetAdd extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 2 && is_array($arguments[1])) {
             $flattened = array($arguments[0]);

+ 1 - 1
lib/Predis/Command/ZSetRange.php

@@ -28,7 +28,7 @@ class ZSetRange extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 4) {
             $lastType = gettype($arguments[3]);

+ 1 - 1
lib/Predis/Command/ZSetRemove.php

@@ -28,7 +28,7 @@ class ZSetRemove extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         return self::normalizeVariadic($arguments);
     }

+ 1 - 1
lib/Predis/Command/ZSetScan.php

@@ -28,7 +28,7 @@ class ZSetScan extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         if (count($arguments) === 3 && is_array($arguments[2])) {
             $options = $this->prepareOptions(array_pop($arguments));

+ 1 - 1
lib/Predis/Command/ZSetUnionStore.php

@@ -28,7 +28,7 @@ class ZSetUnionStore extends PrefixableCommand
     /**
      * {@inheritdoc}
      */
-    protected function filterArguments(Array $arguments)
+    protected function filterArguments(array $arguments)
     {
         $options = array();
         $argc = count($arguments);

+ 1 - 1
lib/Predis/Connection/ConnectionFactory.php

@@ -128,7 +128,7 @@ class ConnectionFactory implements ConnectionFactoryInterface
     /**
      * {@inheritdoc}
      */
-    public function aggregate(AggregatedConnectionInterface $connection, Array $parameters)
+    public function aggregate(AggregatedConnectionInterface $connection, array $parameters)
     {
         foreach ($parameters as $node) {
             $connection->add($node instanceof SingleConnectionInterface ? $node : $this->create($node));

+ 1 - 1
lib/Predis/Connection/ConnectionFactoryInterface.php

@@ -48,5 +48,5 @@ interface ConnectionFactoryInterface
      * @param AggregatedConnectionInterface $cluster Instance of an aggregated connection class.
      * @param array $parameters List of parameters for each connection object.
      */
-    public function aggregate(AggregatedConnectionInterface $cluster, Array $parameters);
+    public function aggregate(AggregatedConnectionInterface $cluster, array $parameters);
 }

+ 1 - 1
lib/Predis/Connection/ConnectionParameters.php

@@ -137,7 +137,7 @@ class ConnectionParameters implements ConnectionParametersInterface
      * @param array $parameters Connection parameters.
      * @return array
      */
-    private function filter(Array $parameters)
+    private function filter(array $parameters)
     {
         if ($parameters) {
             $casters = array_intersect_key($this->getValueCasters(), $parameters);

+ 2 - 2
lib/Predis/Pipeline/MultiExecExecutor.php

@@ -96,10 +96,10 @@ class MultiExecExecutor implements PipelineExecutorInterface
      * Consumes an array response returned by EXEC.
      *
      * @param SplQueue $commands Pipelined commands
-     * @param Array $responses Responses returned by EXEC.
+     * @param array $responses Responses returned by EXEC.
      * @return array
      */
-    protected function consumeArrayResponse(SplQueue $commands, Array &$responses)
+    protected function consumeArrayResponse(SplQueue $commands, array &$responses)
     {
         $size = count($commands);
         $values = array();

+ 1 - 1
lib/Predis/Profile/ServerProfile.php

@@ -128,7 +128,7 @@ abstract class ServerProfile implements ServerProfileInterface, CommandProcessin
     /**
      * {@inheritdoc}
      */
-    public function supportsCommands(Array $commands)
+    public function supportsCommands(array $commands)
     {
         foreach ($commands as $command) {
             if (!$this->supportsCommand($command)) {

+ 1 - 1
lib/Predis/Profile/ServerProfileInterface.php

@@ -43,7 +43,7 @@ interface ServerProfileInterface
      * @param array $commands List of command IDs.
      * @return string
      */
-    public function supportsCommands(Array $commands);
+    public function supportsCommands(array $commands);
 
     /**
      * Creates a new command instance.

+ 1 - 1
lib/Predis/PubSub/Consumer.php

@@ -31,7 +31,7 @@ class Consumer extends AbstractConsumer
      * @param ClientInterface $client Client instance used by the consumer.
      * @param array $options Options for the consumer initialization.
      */
-    public function __construct(ClientInterface $client, Array $options = null)
+    public function __construct(ClientInterface $client, array $options = null)
     {
         $this->checkCapabilities($client);
         $this->options = $options ?: array();

+ 1 - 1
lib/Predis/Session/Handler.php

@@ -33,7 +33,7 @@ class Handler implements SessionHandlerInterface
      * @param ClientInterface $client Fully initialized client instance.
      * @param array $options Session handler options.
      */
-    public function __construct(ClientInterface $client, Array $options = array())
+    public function __construct(ClientInterface $client, array $options = array())
     {
         $this->client = $client;
         $this->ttl = (int) (isset($options['gc_maxlifetime']) ? $options['gc_maxlifetime'] : ini_get('session.gc_maxlifetime'));

+ 1 - 1
lib/Predis/Transaction/MultiExec.php

@@ -48,7 +48,7 @@ class MultiExec implements BasicClientInterface, ExecutableContextInterface
      * @param ClientInterface $client Client instance used by the transaction.
      * @param array $options Initialization options.
      */
-    public function __construct(ClientInterface $client, Array $options = null)
+    public function __construct(ClientInterface $client, array $options = null)
     {
         $this->checkCapabilities($client);
         $this->options = $options ?: array();

+ 4 - 4
tests/PHPUnit/CommandTestCase.php

@@ -119,7 +119,7 @@ abstract class CommandTestCase extends StandardTestCase
      * @param array $arguments Arguments for the command.
      * @return CommandInterface
      */
-    protected function getCommandWithArgumentsArray(Array $arguments)
+    protected function getCommandWithArgumentsArray(array $arguments)
     {
         $command = $this->getCommand();
         $command->setArguments($arguments);
@@ -140,10 +140,10 @@ abstract class CommandTestCase extends StandardTestCase
     /**
      * Asserts that two arrays have the same values, even if with different order.
      *
-     * @param Array $expected Expected array.
-     * @param Array $actual Actual array.
+     * @param array $expected Expected array.
+     * @param array $actual Actual array.
      */
-    protected function assertSameValues(Array $expected, Array $actual)
+    protected function assertSameValues(array $expected, array $actual)
     {
         $this->assertThat($expected, new \ArrayHasSameValuesConstraint($actual));
     }

+ 2 - 2
tests/PHPUnit/ConnectionTestCase.php

@@ -309,7 +309,7 @@ abstract class ConnectionTestCase extends StandardTestCase
     /**
      * Returns a named array with the default connection parameters and their values.
      *
-     * @return Array Default connection parameters.
+     * @return array Default connection parameters.
      */
     protected function getDefaultParametersArray()
     {
@@ -355,5 +355,5 @@ abstract class ConnectionTestCase extends StandardTestCase
      * @param array $parameters Additional connection parameters.
      * @return StreamConnection
      */
-    protected abstract function getConnection(&$profile = null, $initialize = false, Array $parameters = array());
+    protected abstract function getConnection(&$profile = null, $initialize = false, array $parameters = array());
 }

+ 7 - 7
tests/Predis/ClientTest.php

@@ -786,7 +786,7 @@ class ClientTest extends StandardTestCase
     /**
      * Returns a named array with the default connection parameters and their values.
      *
-     * @return Array Default connection parameters.
+     * @return array Default connection parameters.
      */
     protected function getDefaultParametersArray()
     {
@@ -801,7 +801,7 @@ class ClientTest extends StandardTestCase
     /**
      * Returns a named array with the default client options and their values.
      *
-     * @return Array Default connection parameters.
+     * @return array Default connection parameters.
      */
     protected function getDefaultOptionsArray()
     {
@@ -814,10 +814,10 @@ class ClientTest extends StandardTestCase
      * Returns a named array with the default connection parameters merged with
      * the specified additional parameters.
      *
-     * @param Array $additional Additional connection parameters.
-     * @return Array Connection parameters.
+     * @param array $additional Additional connection parameters.
+     * @return array Connection parameters.
      */
-    protected function getParametersArray(Array $additional)
+    protected function getParametersArray(array $additional)
     {
         return array_merge($this->getDefaultParametersArray(), $additional);
     }
@@ -825,10 +825,10 @@ class ClientTest extends StandardTestCase
     /**
      * Returns an URI string representation of the specified connection parameters.
      *
-     * @param Array $parameters Array of connection parameters.
+     * @param array $parameters Array of connection parameters.
      * @return String URI string.
      */
-    protected function getParametersString(Array $parameters)
+    protected function getParametersString(array $parameters)
     {
         $defaults = $this->getDefaultParametersArray();
 

+ 1 - 1
tests/Predis/Connection/ComposableStreamConnectionTest.php

@@ -107,7 +107,7 @@ class ComposableStreamConnectionTest extends ConnectionTestCase
     /**
      * {@inheritdoc}
      */
-    protected function getConnection(&$profile = null, $initialize = false, Array $parameters = array())
+    protected function getConnection(&$profile = null, $initialize = false, array $parameters = array())
     {
         $parameters = $this->getParameters($parameters);
         $profile = $this->getProfile();

+ 1 - 1
tests/Predis/Connection/ConnectionFactoryTest.php

@@ -374,7 +374,7 @@ class ConnectionFactoryTest extends StandardTestCase
     /**
      * Returns a mocked Predis\Connection\SingleConnectionInterface.
      *
-     * @return Array Mock instance and class name
+     * @return array Mock instance and class name
      */
     protected function getMockConnectionClass()
     {

+ 6 - 6
tests/Predis/Connection/ConnectionParametersTest.php

@@ -208,7 +208,7 @@ class ParametersTest extends StandardTestCase
     /**
      * Returns a named array with the default connection parameters and their values.
      *
-     * @return Array Default connection parameters.
+     * @return array Default connection parameters.
      */
     protected function getDefaultParametersArray()
     {
@@ -224,10 +224,10 @@ class ParametersTest extends StandardTestCase
      * Returns a named array with the default connection parameters merged with
      * the specified additional parameters.
      *
-     * @param Array $additional Additional connection parameters.
-     * @return Array Connection parameters.
+     * @param array $additional Additional connection parameters.
+     * @return array Connection parameters.
      */
-    protected function getParametersArray(Array $additional)
+    protected function getParametersArray(array $additional)
     {
         return array_merge($this->getDefaultParametersArray(), $additional);
     }
@@ -235,10 +235,10 @@ class ParametersTest extends StandardTestCase
     /**
      * Returns an URI string representation of the specified connection parameters.
      *
-     * @param Array $parameters Array of connection parameters.
+     * @param array $parameters array of connection parameters.
      * @return String URI string.
      */
-    protected function getParametersString(Array $parameters)
+    protected function getParametersString(array $parameters)
     {
         $defaults = $this->getDefaultParametersArray();
 

+ 1 - 1
tests/Predis/Connection/PhpiredisConnectionTest.php

@@ -113,7 +113,7 @@ class PhpiredisConnectionTest extends ConnectionTestCase
     /**
      * {@inheritdoc}
      */
-    protected function getConnection(&$profile = null, $initialize = false, Array $parameters = array())
+    protected function getConnection(&$profile = null, $initialize = false, array $parameters = array())
     {
         $parameters = $this->getParameters($parameters);
         $profile = $this->getProfile();

+ 1 - 1
tests/Predis/Connection/PhpiredisStreamConnectionTest.php

@@ -132,7 +132,7 @@ class PhpiredisStreamConnectionTest extends ConnectionTestCase
     /**
      * {@inheritdoc}
      */
-    protected function getConnection(&$profile = null, $initialize = false, Array $parameters = array())
+    protected function getConnection(&$profile = null, $initialize = false, array $parameters = array())
     {
         $parameters = $this->getParameters($parameters);
         $profile = $this->getProfile();

+ 1 - 1
tests/Predis/Connection/StreamConnectionTest.php

@@ -110,7 +110,7 @@ class StreamConnectionTest extends ConnectionTestCase
     /**
      * {@inheritdoc}
      */
-    protected function getConnection(&$profile = null, $initialize = false, Array $parameters = array())
+    protected function getConnection(&$profile = null, $initialize = false, array $parameters = array())
     {
         $parameters = $this->getParameters($parameters);
         $profile = $this->getProfile();

+ 2 - 2
tests/Predis/Connection/WebdisConnectionTest.php

@@ -156,7 +156,7 @@ class WebdisConnectionTest extends StandardTestCase
     /**
      * Returns a named array with the default connection parameters and their values.
      *
-     * @return Array Default connection parameters.
+     * @return array Default connection parameters.
      */
     protected function getDefaultParametersArray()
     {
@@ -198,7 +198,7 @@ class WebdisConnectionTest extends StandardTestCase
      * @param array $parameters Additional connection parameters.
      * @return WebdisConnection
      */
-    protected function getConnection(&$profile = null, Array $parameters = array())
+    protected function getConnection(&$profile = null, array $parameters = array())
     {
         $parameters = $this->getParameters($parameters);
         $profile = $this->getProfile();

+ 1 - 1
tests/Predis/Pipeline/PipelineContextTest.php

@@ -393,7 +393,7 @@ class PipelineContextTest extends StandardTestCase
      * @return array Additional client options.
      * @return Client New client instance.
      */
-    protected function getClient(Array $parameters = array(), Array $options = array())
+    protected function getClient(array $parameters = array(), array $options = array())
     {
         $parameters = array_merge(array(
             'scheme' => 'tcp',

+ 1 - 1
tests/Predis/Transaction/MultiExecTest.php

@@ -760,7 +760,7 @@ class MultiExecTest extends StandardTestCase
      * @param array Additional client options.
      * @return Client client instance.
      */
-    protected function getClient(Array $parameters = array(), Array $options = array())
+    protected function getClient(array $parameters = array(), array $options = array())
     {
         $parameters = array_merge(array(
             'scheme' => 'tcp',