8000 Code formatting · phpredis/phpredis@dab6a62 · GitHub
[go: up one dir, main page]

Skip to content

Commit dab6a62

Browse files
Code formatting
1 parent c6cd665 commit dab6a62

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/RedisClusterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public function testSlowlog() {
391391
$this->assertIsArray($this->redis->slowlog($key, 'get', 10));
392392
$this->assertIsInt($this->redis->slowlog($key, 'len'));
393393
$this->assertTrue($this->redis->slowlog($key, 'reset'));
394-
$this->assertFalse($this->redis->slowlog($key, 'notvalid'));
394+
$this->assertFalse(@$this->redis->slowlog($key, 'notvalid'));
395395
}
396396

397397
/* INFO COMMANDSTATS requires a key or ip:port for node direction */

tests/RedisTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6467,7 +6467,7 @@ public function testXAdd() {
64676467
$this->assertEquals(count(explode('-', $id)), 2);
64686468

64696469
/* Empty message should fail */
6470-
$this->redis->xAdd('stream', '*', []);
6470+
@$this->redis->xAdd('stream', '*', []);
64716471
}
64726472

64736473
protected function doXRangeTest($reverse) {
@@ -6662,7 +6662,7 @@ protected function doXReadTest() {
66626662
);
66636663

66646664
/* Empty query should fail */
6665-
$this->assertFalse($this->redis->xRead([]));
6665+
$this->assertFalse(@$this->redis->xRead([]));
66666666
}
66676667

66686668
public function testXRead() {
@@ -6809,7 +6809,7 @@ public function testXDel() {
68096809
}
68106810

68116811
/* Empty array should fail */
6812-
$this->assertFalse($this->redis->xDel('s', []));
6812+
$this->assertFalse(@$this->redis->xDel('s', []));
68136813
}
68146814

68156815
public function testXTrim() {

tests/TestSuite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ public static function run($class_name, ?string $limit = NULL,
523523
?string $host = NULL, ?int $port = NULL,
524524
$auth = NULL)
525525
{
526-
/* Lowercase our limit arg if we're passed one */
527-
$limit ??= strtolower($limit);
526+
if ($limit)
527+
$limit = strtolower($limit);
528528

529529
$rc = new ReflectionClass($class_name);
530530
$methods = $rc->GetMethods(ReflectionMethod::IS_PUBLIC);

0 commit comments

Comments
 (0)
0