mirror of
https://github.com/predis/predis.git
synced 2026-09-14 20:37:29 +00:00
Remove a useless method from the cluster option class.
This commit is contained in:
@@ -17,16 +17,12 @@ class ClientCluster extends Option {
|
||||
|
||||
public function validate($value) {
|
||||
if (is_callable($value)) {
|
||||
return $this->initializeFromCallable($value);
|
||||
return $this->checkInstance(call_user_func($value));
|
||||
}
|
||||
$initializer = $this->getInitializer($value);
|
||||
return $this->checkInstance($initializer());
|
||||
}
|
||||
|
||||
protected function initializeFromCallable($callable) {
|
||||
return $this->checkInstance(call_user_func($callable));
|
||||
}
|
||||
|
||||
protected function getInitializer($fqnOrType) {
|
||||
switch ($fqnOrType) {
|
||||
case 'predis':
|
||||
|
||||
Reference in New Issue
Block a user