From cd631040deb6c5ce27293950b4226d9539005484 Mon Sep 17 00:00:00 2001 From: Ali Borhani Date: Sat, 10 Dec 2016 13:24:16 +0330 Subject: [PATCH] fix phpdoc --- src/Illuminate/Redis/Database.php | 13 +++--- src/Illuminate/Redis/PhpRedisDatabase.php | 41 ++++++++++--------- src/Illuminate/Redis/PredisDatabase.php | 30 +++++++------- src/Illuminate/Redis/RedisServiceProvider.php | 2 + 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/Illuminate/Redis/Database.php b/src/Illuminate/Redis/Database.php index f99dc9cd593a..2b6307fe88ff 100755 --- a/src/Illuminate/Redis/Database.php +++ b/src/Illuminate/Redis/Database.php @@ -10,8 +10,7 @@ abstract class Database implements DatabaseContract /** * Get a specific Redis connection instance. * - * @param string $name - * + * @param string $name * @return \Predis\ClientInterface|\RedisCluster|\Redis|null */ public function connection($name = 'default') @@ -22,9 +21,8 @@ public function connection($name = 'default') /** * Run a command against the Redis database. * - * @param string $method - * @param array $parameters - * + * @param string $method + * @param array $parameters * @return mixed */ public function command($method, array $parameters = []) @@ -35,9 +33,8 @@ public function command($method, array $parameters = []) /** * Dynamically make a Redis command. * - * @param string $method - * @param array $parameters - * + * @param string $method + * @param array $parameters * @return mixed */ public function __call($method, $parameters) diff --git a/src/Illuminate/Redis/PhpRedisDatabase.php b/src/Illuminate/Redis/PhpRedisDatabase.php index 8b129cdb90e2..3c20b7398fed 100644 --- a/src/Illuminate/Redis/PhpRedisDatabase.php +++ b/src/Illuminate/Redis/PhpRedisDatabase.php @@ -19,7 +19,7 @@ class PhpRedisDatabase extends Database /** * Create a new Redis connection instance. * - * @param array $servers + * @param array $servers * @return void */ public function __construct(array $servers = []) @@ -41,8 +41,8 @@ public function __construct(array $servers = []) /** * Create multiple clusters (aggregate clients). * - * @param array $clusters - * @param array $options + * @param array $clusters + * @param array $options * @return void */ protected function createClusters(array $clusters, array $options = []) @@ -61,9 +61,9 @@ protected function createClusters(array $clusters, array $options = []) /** * Create a new aggregate client supporting sharding. * - * @param array $servers - * @param array $options - * @param string $connection + * @param array $servers + * @param array $options + * @param string $connection * @return array */ protected function createAggregateClient(array $servers, array $options = [], $connection = 'default') @@ -76,8 +76,8 @@ protected function createAggregateClient(array $servers, array $options = [], $c /** * Create an array of single connection clients. * - * @param array $servers - * @param array $options + * @param array $servers + * @param array $options * @return array */ protected function createSingleClients(array $servers, array $options = []) @@ -95,7 +95,7 @@ protected function createSingleClients(array $servers, array $options = []) /** * Build a single cluster seed string from array. * - * @param array $server + * @param array $server * @return string */ protected function buildClusterSeed(array $server) @@ -110,10 +110,11 @@ protected function buildClusterSeed(array $server) /** * Subscribe to a set of given channels for messages. * - * @param array|string $channels - * @param \Closure $callback - * @param string $connection - * @param string $method + * @param array|string $channels + * @param \Closure $callback + * @param string $connection + * @param string $method + * @return void */ public function subscribe($channels, Closure $callback, $connection = null, $method = 'subscribe') { @@ -123,9 +124,9 @@ public function subscribe($channels, Closure $callback, $connection = null, $met /** * Subscribe to a set of given channels with wildcards. * - * @param array|string $channels - * @param \Closure $callback - * @param string $connection + * @param array|string $channels + * @param \Closure $callback + * @param string $connection * @return void */ public function psubscribe($channels, Closure $callback, $connection = null) @@ -136,8 +137,8 @@ public function psubscribe($channels, Closure $callback, $connection = null) /** * Create a new redis cluster instance. * - * @param array $servers - * @param array $options + * @param array $servers + * @param array $options * @return RedisCluster */ protected function createRedisClusterInstance(array $servers, array $options) @@ -154,8 +155,8 @@ protected function createRedisClusterInstance(array $servers, array $options) /** * Create a new redis instance. * - * @param array $server - * @param array $options + * @param array $server + * @param array $options * @return Redis */ protected function createRedisInstance(array $server, array $options) diff --git a/src/Illuminate/Redis/PredisDatabase.php b/src/Illuminate/Redis/PredisDatabase.php index a610f0b1053f..0b3a1e14fe6d 100644 --- a/src/Illuminate/Redis/PredisDatabase.php +++ b/src/Illuminate/Redis/PredisDatabase.php @@ -18,7 +18,7 @@ class PredisDatabase extends Database /** * Create a new Redis connection instance. * - * @param array $servers + * @param array $servers * @return void */ public function __construct(array $servers = []) @@ -40,8 +40,8 @@ public function __construct(array $servers = []) /** * Create multiple clusters (aggregate clients). * - * @param array $clusters - * @param array $options + * @param array $clusters + * @param array $options * @return void */ protected function createClusters(array $clusters, array $options = []) @@ -60,9 +60,9 @@ protected function createClusters(array $clusters, array $options = []) /** * Create a new aggregate client supporting sharding. * - * @param array $servers - * @param array $options - * @param string $connection + * @param array $servers + * @param array $options + * @param string $connection * @return array */ protected function createAggregateClient(array $servers, array $options = [], $connection = 'default') @@ -73,8 +73,8 @@ protected function createAggregateClient(array $servers, array $options = [], $c /** * Create an array of single connection clients. * - * @param array $servers - * @param array $options + * @param array $servers + * @param array $options * @return array */ protected function createSingleClients(array $servers, array $options = []) @@ -91,10 +91,10 @@ protected function createSingleClients(array $servers, array $options = []) /** * Subscribe to a set of given channels for messages. * - * @param array|string $channels - * @param \Closure $callback - * @param string $connection - * @param string $method + * @param array|string $channels + * @param \Closure $callback + * @param string $connection + * @param string $method * @return void */ public function subscribe($channels, Closure $callback, $connection = null, $method = 'subscribe') @@ -115,9 +115,9 @@ public function subscribe($channels, Closure $callback, $connection = null, $met /** * Subscribe to a set of given channels with wildcards. * - * @param array|string $channels - * @param \Closure $callback - * @param string $connection + * @param array|string $channels + * @param \Closure $callback + * @param string $connection * @return void */ public function psubscribe($channels, Closure $callback, $connection = null) diff --git a/src/Illuminate/Redis/RedisServiceProvider.php b/src/Illuminate/Redis/RedisServiceProvider.php index 9ab58a1dea0c..1fe36710427d 100755 --- a/src/Illuminate/Redis/RedisServiceProvider.php +++ b/src/Illuminate/Redis/RedisServiceProvider.php @@ -16,6 +16,8 @@ class RedisServiceProvider extends ServiceProvider /** * Register the service provider. + * + * @return void */ public function register() {