mirror of
https://github.com/predis/predis.git
synced 2026-10-30 15:46:08 +00:00
Minor code styling and phpdoc changes.
This commit is contained in:
@@ -31,7 +31,7 @@ class ClusterOption implements OptionInterface
|
||||
* @param OptionsInterface $options Instance of the client options.
|
||||
* @param string $id Descriptive identifier of the cluster type (`predis`, `redis-cluster`)
|
||||
*
|
||||
* @return ClusterInterface
|
||||
* @return ClusterInterface|null
|
||||
*/
|
||||
protected function createByDescription(OptionsInterface $options, $id)
|
||||
{
|
||||
@@ -44,9 +44,9 @@ class ClusterOption implements OptionInterface
|
||||
case 'redis-cluster':
|
||||
return new RedisCluster($options->connections);
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -63,8 +63,6 @@ class Options implements OptionsInterface
|
||||
|
||||
return $handler->getDefault($this);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,7 @@ interface OptionsInterface
|
||||
*
|
||||
* @param string $option Name of the option.
|
||||
*
|
||||
* @return mixed
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function getDefault($option);
|
||||
|
||||
@@ -58,7 +58,7 @@ interface OptionsInterface
|
||||
*
|
||||
* @param string $option Name of the option.
|
||||
*
|
||||
* @return mixed
|
||||
* @return mixed|null
|
||||
*/
|
||||
public function __get($option);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user