Minor code styling and phpdoc changes.

This commit is contained in:
Daniele Alessandri
2014-07-28 12:04:07 +02:00
parent 5c02e4e47b
commit df653a7c00
21 changed files with 34 additions and 65 deletions
+3 -3
View File
@@ -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;
}
/**
-2
View File
@@ -63,8 +63,6 @@ class Options implements OptionsInterface
return $handler->getDefault($this);
}
return null;
}
/**
+2 -2
View File
@@ -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);
}