mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Code formatting
This commit is contained in:
committed by
Michael Grunder
parent
c6cd665bde
commit
dab6a62d34
@@ -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 */
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user