Skip to content

Commit

Permalink
fix phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Dec 10, 2016
1 parent 95cc3f2 commit cd63104
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 43 deletions.
13 changes: 5 additions & 8 deletions src/Illuminate/Redis/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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 = [])
Expand All @@ -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)
Expand Down
41 changes: 21 additions & 20 deletions src/Illuminate/Redis/PhpRedisDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand All @@ -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 = [])
Expand All @@ -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')
Expand All @@ -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 = [])
Expand All @@ -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)
Expand All @@ -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')
{
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
30 changes: 15 additions & 15 deletions src/Illuminate/Redis/PredisDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand All @@ -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 = [])
Expand All @@ -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')
Expand All @@ -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 = [])
Expand All @@ -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')
Expand All @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/Illuminate/Redis/RedisServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class RedisServiceProvider extends ServiceProvider

/**
* Register the service provider.
*
* @return void
*/
public function register()
{
Expand Down

0 comments on commit cd63104

Please sign in to comment.