Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d89e92

Browse files
Spelling fixes
1 parent e18f6c6 commit 0d89e92

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

redis_cluster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ static void cluster_kscan_cmd(INTERNAL_FUNCTION_PARAMETERS,
22682268
HashTable *hash;
22692269
long num_ele;
22702270
zend_long count = 0;
2271-
zend_bool complted;
2271+
zend_bool completed;
22722272
uint64_t cursor;
22732273

22742274
// Can't be in MULTI mode
@@ -2288,8 +2288,8 @@ static void cluster_kscan_cmd(INTERNAL_FUNCTION_PARAMETERS,
22882288
c->readonly = 1;
22892289

22902290
/* Get our scan cursor and return early if we're done */
2291-
cursor = redisGetScanCursor(z_it, &complted);
2292-
if (complted)
2291+
cursor = redisGetScanCursor(z_it, &completed);
2292+
if (completed)
22932293
RETURN_FALSE;
22942294

22952295
// Apply any key prefix we have, get the slot

tests/RedisTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,9 +2277,9 @@ public function testClient() {
22772277

22782278
// Figure out which ip:port is us!
22792279
$address = NULL;
2280-
foreach($clients as $cleint) {
2281-
if ($cleint['name'] == 'phpredis_unit_tests') {
2282-
$address = $cleint['addr'];
2280+
foreach($clients as $client) {
2281+
if ($client['name'] == 'phpredis_unit_tests') {
2282+
$address = $client['addr'];
22832283
}
22842284
}
22852285

tests/TestSuite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ protected function assertBetween($value, $min, $max, bool $exclusive = false): b
349349
return false;
350350
}
351351

352-
/* Replica of PHPUnit's assertion. Basically are two arrys the same without
352+
/* Replica of PHPUnit's assertion. Basically are two arrays the same without
353353
' respect to order. */
354354
protected function assertEqualsCanonicalizing($expected, $actual, $keep_keys = false): bool {
355355
if ($expected InstanceOf Traversable)

0 commit comments

Comments
 (0)