Code formatting

This commit is contained in:
michael-grunder
2024-05-30 11:46:36 -07:00
committed by Michael Grunder
parent c6cd665bde
commit dab6a62d34
3 changed files with 6 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ class Redis_Cluster_Test extends Redis_Test {
$this->assertIsArray($this->redis->slowlog($key, 'get', 10));
$this->assertIsInt($this->redis->slowlog($key, 'len'));
$this->assertTrue($this->redis->slowlog($key, 'reset'));
$this->assertFalse($this->redis->slowlog($key, 'notvalid'));
$this->assertFalse(@$this->redis->slowlog($key, 'notvalid'));
}
/* INFO COMMANDSTATS requires a key or ip:port for node direction */

View File

@@ -6467,7 +6467,7 @@ class Redis_Test extends TestSuite {
$this->assertEquals(count(explode('-', $id)), 2);
/* Empty message should fail */
$this->redis->xAdd('stream', '*', []);
@$this->redis->xAdd('stream', '*', []);
}
protected function doXRangeTest($reverse) {
@@ -6662,7 +6662,7 @@ class Redis_Test extends TestSuite {
);
/* Empty query should fail */
$this->assertFalse($this->redis->xRead([]));
$this->assertFalse(@$this->redis->xRead([]));
}
public function testXRead() {
@@ -6809,7 +6809,7 @@ class Redis_Test extends TestSuite {
}
/* Empty array should fail */
$this->assertFalse($this->redis->xDel('s', []));
$this->assertFalse(@$this->redis->xDel('s', []));
}
public function testXTrim() {

View File

@@ -523,8 +523,8 @@ class TestSuite
?string $host = NULL, ?int $port = NULL,
$auth = NULL)
{
/* Lowercase our limit arg if we're passed one */
$limit ??= strtolower($limit);
if ($limit)
$limit = strtolower($limit);
$rc = new ReflectionClass($class_name);
$methods = $rc->GetMethods(ReflectionMethod::IS_PUBLIC);