Remove unneeded "use" imports.

This commit is contained in:
Daniele Alessandri
2015-07-24 19:05:28 +02:00
parent c436e01353
commit 7282ca2b52
40 changed files with 78 additions and 149 deletions
+4 -6
View File
@@ -11,8 +11,6 @@
namespace Predis;
use InvalidArgumentException;
use UnexpectedValueException;
use Predis\Command\CommandInterface;
use Predis\Command\RawCommand;
use Predis\Command\ScriptCommand;
@@ -80,7 +78,7 @@ class Client implements ClientInterface
return $options;
}
throw new InvalidArgumentException('Invalid type for client options.');
throw new \InvalidArgumentException('Invalid type for client options.');
}
/**
@@ -142,7 +140,7 @@ class Client implements ClientInterface
return $connection;
}
throw new InvalidArgumentException('Invalid type for connection parameters.');
throw new \InvalidArgumentException('Invalid type for connection parameters.');
}
/**
@@ -159,7 +157,7 @@ class Client implements ClientInterface
$connection = call_user_func_array($callable, func_get_args());
if (!$connection instanceof ConnectionInterface) {
throw new UnexpectedValueException(
throw new \UnexpectedValueException(
'The callable connection initializer returned an invalid type.'
);
}
@@ -198,7 +196,7 @@ class Client implements ClientInterface
public function getClientFor($connectionID)
{
if (!$connection = $this->getConnectionById($connectionID)) {
throw new InvalidArgumentException("Invalid connection ID: $connectionID.");
throw new \InvalidArgumentException("Invalid connection ID: $connectionID.");
}
return new static($connection, $this->options);