Run php-cs-fixer.

This commit is contained in:
Daniele Alessandri
2015-07-25 14:30:01 +02:00
parent 8277afc7a8
commit 6cce9eb35c
2 changed files with 17 additions and 17 deletions
+5 -5
View File
@@ -65,8 +65,8 @@ class Client implements ClientInterface
* @param mixed $options Client options.
*
* @throws \InvalidArgumentException
* @return OptionsInterface
*
* @return OptionsInterface
*/
protected function createOptions($options)
{
@@ -97,8 +97,8 @@ class Client implements ClientInterface
* @param mixed $parameters Connection parameters or connection instance.
*
* @throws \InvalidArgumentException
* @return ConnectionInterface
*
* @return ConnectionInterface
*/
protected function createConnection($parameters)
{
@@ -190,8 +190,8 @@ class Client implements ClientInterface
* @param string $connectionID Identifier of a connection.
*
* @throws \InvalidArgumentException
* @return Client
*
* @return Client
*/
public function getClientFor($connectionID)
{
@@ -254,8 +254,8 @@ class Client implements ClientInterface
* @param string $connectionID Index or alias of the single connection.
*
* @throws NotSupportedException
* @return Connection\NodeConnectionInterface
*
* @return Connection\NodeConnectionInterface
*/
public function getConnectionById($connectionID)
{
@@ -343,8 +343,8 @@ class Client implements ClientInterface
* @param ErrorResponseInterface $response Instance of the error response.
*
* @throws ServerException
* @return mixed
*
* @return mixed
*/
protected function onErrorResponse(CommandInterface $command, ErrorResponseInterface $response)
{
+12 -12
View File
@@ -85,24 +85,24 @@ class KeyPreciseExpireTest extends PredisCommandTestCase
$this->assertSame(0, $redis->exists('foo'));
}
/**
* @medium
* @group connected
* @group slow
*/
/**
* @medium
* @group connected
* @group slow
*/
public function testConsistencyWithTTL()
{
$ttl = 1000;
$redis = $this->getClient();
$ttl = 1000;
$redis = $this->getClient();
$this->assertEquals('OK', $redis->set('foo', 'bar'));
$this->assertSame(1, $redis->pexpire('foo', $ttl));
$this->assertEquals('OK', $redis->set('foo', 'bar'));
$this->assertSame(1, $redis->pexpire('foo', $ttl));
$this->sleep(0.5);
$this->assertThat($redis->pttl('foo'), $this->logicalAnd(
$this->sleep(0.5);
$this->assertThat($redis->pttl('foo'), $this->logicalAnd(
$this->lessThanOrEqual($ttl), $this->greaterThan($ttl - 800)
));
}
}
/**
* @group connected