From 0d89e92889c49e0e693ee16747ace2bc506208b6 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Tue, 28 May 2024 20:39:58 -0700 Subject: [PATCH] Spelling fixes --- redis_cluster.c | 6 +++--- tests/RedisTest.php | 6 +++--- tests/TestSuite.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/redis_cluster.c b/redis_cluster.c index 77d01065..b60f8045 100644 --- a/redis_cluster.c +++ b/redis_cluster.c @@ -2268,7 +2268,7 @@ static void cluster_kscan_cmd(INTERNAL_FUNCTION_PARAMETERS, HashTable *hash; long num_ele; zend_long count = 0; - zend_bool complted; + zend_bool completed; uint64_t cursor; // Can't be in MULTI mode @@ -2288,8 +2288,8 @@ static void cluster_kscan_cmd(INTERNAL_FUNCTION_PARAMETERS, c->readonly = 1; /* Get our scan cursor and return early if we're done */ - cursor = redisGetScanCursor(z_it, &complted); - if (complted) + cursor = redisGetScanCursor(z_it, &completed); + if (completed) RETURN_FALSE; // Apply any key prefix we have, get the slot diff --git a/tests/RedisTest.php b/tests/RedisTest.php index 3023e7df..151dda9f 100644 --- a/tests/RedisTest.php +++ b/tests/RedisTest.php @@ -2277,9 +2277,9 @@ class Redis_Test extends TestSuite { // Figure out which ip:port is us! $address = NULL; - foreach($clients as $cleint) { - if ($cleint['name'] == 'phpredis_unit_tests') { - $address = $cleint['addr']; + foreach($clients as $client) { + if ($client['name'] == 'phpredis_unit_tests') { + $address = $client['addr']; } } diff --git a/tests/TestSuite.php b/tests/TestSuite.php index 653c6da0..a50483e4 100644 --- a/tests/TestSuite.php +++ b/tests/TestSuite.php @@ -349,7 +349,7 @@ class TestSuite return false; } - /* Replica of PHPUnit's assertion. Basically are two arrys the same without + /* Replica of PHPUnit's assertion. Basically are two arrays the same without ' respect to order. */ protected function assertEqualsCanonicalizing($expected, $actual, $keep_keys = false): bool { if ($expected InstanceOf Traversable)