Skip to content

Commit c985c8d

Browse files
Fix PHP CS Fixer errors
1 parent 4572156 commit c985c8d

File tree

3 files changed

+344
-345
lines changed

3 files changed

+344
-345
lines changed

Client.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ public function __call($name, $args)
13911391
$response = $typeMap[$response];
13921392
break;
13931393

1394-
// Handle scripting errors
13951394
case 'eval':
13961395
case 'evalsha':
13971396
case 'script':
@@ -1420,7 +1419,7 @@ public function __call($name, $args)
14201419
if (is_bool($response) && $response === true) {
14211420
$this->redis->clearLastError();
14221421
}
1423-
// no break
1422+
// no break
14241423
default:
14251424
$error = $this->redis->getLastError();
14261425
$this->redis->clearLastError();

tests/CredisStandaloneTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ public function testPersistentConnectionsOnStandAloneTcpConnection()
1515
$this->assertEquals('value', $this->credis->get('key'));
1616
}
1717

18-
public function testPersistentvsNonPersistent()
19-
{
20-
$this->assertTrue(true);
21-
}
18+
public function testPersistentvsNonPersistent()
19+
{
20+
$this->assertTrue(true);
21+
}
2222

23-
public function testStandAloneArgumentsExtra()
24-
{
25-
$this->assertTrue($this->credis->hMSet('hash', array('field1' => 'value1', 'field2' => 'value2'), 'field3', 'value3'));
26-
$this->assertEquals(array('field1' => 'value1', 'field2' => 'value2', 'field3' =>'value3'), $this->credis->hMGet('hash', array('field1','field2','field3')));
27-
}
23+
public function testStandAloneArgumentsExtra()
24+
{
25+
$this->assertTrue($this->credis->hMSet('hash', array('field1' => 'value1', 'field2' => 'value2'), 'field3', 'value3'));
26+
$this->assertEquals(array('field1' => 'value1', 'field2' => 'value2', 'field3' =>'value3'), $this->credis->hMGet('hash', array('field1','field2','field3')));
27+
}
2828

29-
public function testStandAloneMultiPipelineThrowsException()
30-
{
31-
$this->setExpectedExceptionShim('CredisException', 'A pipeline is already in use and only one pipeline is supported.');
32-
$this->credis->pipeline()->pipeline();
33-
}
29+
public function testStandAloneMultiPipelineThrowsException()
30+
{
31+
$this->setExpectedExceptionShim('CredisException', 'A pipeline is already in use and only one pipeline is supported.');
32+
$this->credis->pipeline()->pipeline();
33+
}
3434
}

0 commit comments

Comments
 (0)