Quellcode durchsuchen

Run php-cs-fixer.

Daniele Alessandri vor 9 Jahren
Ursprung
Commit
f221d0c81e

+ 5 - 5
src/Client.php

@@ -65,8 +65,8 @@ class Client implements ClientInterface
      * @param mixed $options Client options.
      *
      * @throws \InvalidArgumentException
-     * @return OptionsInterface
      *
+     * @return OptionsInterface
      */
     protected function createOptions($options)
     {
@@ -97,8 +97,8 @@ class Client implements ClientInterface
      * @param mixed $parameters Connection parameters or connection instance.
      *
      * @throws \InvalidArgumentException
-     * @return ConnectionInterface
      *
+     * @return ConnectionInterface
      */
     protected function createConnection($parameters)
     {
@@ -190,8 +190,8 @@ class Client implements ClientInterface
      * @param string $connectionID Identifier of a connection.
      *
      * @throws \InvalidArgumentException
-     * @return Client
      *
+     * @return Client
      */
     public function getClientFor($connectionID)
     {
@@ -254,8 +254,8 @@ class Client implements ClientInterface
      * @param string $connectionID Index or alias of the single connection.
      *
      * @throws NotSupportedException
-     * @return Connection\NodeConnectionInterface
      *
+     * @return Connection\NodeConnectionInterface
      */
     public function getConnectionById($connectionID)
     {
@@ -343,8 +343,8 @@ class Client implements ClientInterface
      * @param ErrorResponseInterface $response Instance of the error response.
      *
      * @throws ServerException
-     * @return mixed
      *
+     * @return mixed
      */
     protected function onErrorResponse(CommandInterface $command, ErrorResponseInterface $response)
     {

+ 1 - 1
src/Connection/AbstractConnection.php

@@ -52,8 +52,8 @@ abstract class AbstractConnection implements NodeConnectionInterface
      * @param ParametersInterface $parameters Initialization parameters for the connection.
      *
      * @throws \InvalidArgumentException
-     * @return ParametersInterface
      *
+     * @return ParametersInterface
      */
     protected function assertParameters(ParametersInterface $parameters)
     {

+ 1 - 1
src/Connection/Aggregate/RedisCluster.php

@@ -314,8 +314,8 @@ class RedisCluster implements ClusterInterface, \IteratorAggregate, \Countable
      * @param int $slot Slot index.
      *
      * @throws \OutOfBoundsException
-     * @return NodeConnectionInterface
      *
+     * @return NodeConnectionInterface
      */
     public function getConnectionBySlot($slot)
     {

+ 1 - 1
src/Connection/Factory.php

@@ -35,8 +35,8 @@ class Factory implements FactoryInterface
      * @param mixed $initializer FQN of a connection class or a callable for lazy initialization.
      *
      * @throws \InvalidArgumentException
-     * @return mixed
      *
+     * @return mixed
      */
     protected function checkInitializer($initializer)
     {

+ 2 - 2
src/Connection/Parameters.php

@@ -70,8 +70,8 @@ class Parameters implements ParametersInterface
      * @param string $uri URI string.
      *
      * @throws \InvalidArgumentException
-     * @return array
      *
+     * @return array
      */
     public static function parse($uri)
     {
@@ -112,8 +112,8 @@ class Parameters implements ParametersInterface
      * @param string $uri URI string.
      *
      * @throws \InvalidArgumentException
-     * @return array
      *
+     * @return array
      */
     public static function parseIANA($uri)
     {

+ 1 - 1
src/Connection/WebdisConnection.php

@@ -220,8 +220,8 @@ class WebdisConnection implements NodeConnectionInterface
      * @param CommandInterface $command Command instance.
      *
      * @throws NotSupportedException
-     * @return string
      *
+     * @return string
      */
     protected function getCommandId(CommandInterface $command)
     {

+ 1 - 1
src/Pipeline/Pipeline.php

@@ -194,8 +194,8 @@ class Pipeline implements ClientContextInterface
      *
      * @throws \Exception
      * @throws \InvalidArgumentException
-     * @return array
      *
+     * @return array
      */
     public function execute($callable = null)
     {

+ 1 - 1
src/Profile/Factory.php

@@ -84,8 +84,8 @@ final class Factory
      * @param string $version Profile version or alias.
      *
      * @throws ClientException
-     * @return ProfileInterface
      *
+     * @return ProfileInterface
      */
     public static function get($version)
     {

+ 1 - 1
src/Replication/ReplicationStrategy.php

@@ -42,8 +42,8 @@ class ReplicationStrategy
      * @param CommandInterface $command Command instance.
      *
      * @throws NotSupportedException
-     * @return bool
      *
+     * @return bool
      */
     public function isReadOperation(CommandInterface $command)
     {

+ 5 - 5
src/Transaction/MultiExec.php

@@ -169,8 +169,8 @@ class MultiExec implements ClientContextInterface
      * @param array  $arguments Arguments for the command.
      *
      * @throws ServerException
-     * @return mixed
      *
+     * @return mixed
      */
     protected function call($commandID, array $arguments = array())
     {
@@ -192,8 +192,8 @@ class MultiExec implements ClientContextInterface
      *
      * @throws AbortedMultiExecException
      * @throws CommunicationException
-     * @return $this|mixed
      *
+     * @return $this|mixed
      */
     public function executeCommand(CommandInterface $command)
     {
@@ -223,8 +223,8 @@ class MultiExec implements ClientContextInterface
      *
      * @throws NotSupportedException
      * @throws ClientException
-     * @return mixed
      *
+     * @return mixed
      */
     public function watch($keys)
     {
@@ -263,8 +263,8 @@ class MultiExec implements ClientContextInterface
      * Executes UNWATCH.
      *
      * @throws NotSupportedException
-     * @return MultiExec
      *
+     * @return MultiExec
      */
     public function unwatch()
     {
@@ -353,8 +353,8 @@ class MultiExec implements ClientContextInterface
      * @throws CommunicationException
      * @throws AbortedMultiExecException
      * @throws ServerException
-     * @return array
      *
+     * @return array
      */
     public function execute($callable = null)
     {

+ 1 - 1
tests/PHPUnit/PredisTestCase.php

@@ -197,8 +197,8 @@ abstract class PredisTestCase extends \PHPUnit_Framework_TestCase
      * Returns the server version of the Redis instance used by the test suite.
      *
      * @throws RuntimeException When the client cannot retrieve the current server version
-     * @return string
      *
+     * @return string
      */
     protected function getRedisServerVersion()
     {