Skip to content

Commit bcabe60

Browse files
committed
Fix EOLs
1 parent c800d20 commit bcabe60

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

tests/TestRedis.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ public function testZX() {
18601860
$this->redis->delete('z');
18611861
$this->redis->zadd('z', 1, 'one');
18621862
$this->redis->zadd('z', 2, 'two');
1863-
$this->redis->zadd('z', 5, 'five');
1863+
$this->redis->zadd('z', 5, 'five');
18641864

18651865
$this->assertTrue(0 === $this->redis->zRank('z', 'one'));
18661866
$this->assertTrue(1 === $this->redis->zRank('z', 'two'));
@@ -2921,29 +2921,29 @@ public function testGetLastError() {
29212921
$this->assertTrue(strlen($this->redis->getLastError()) > 0);
29222922
}
29232923

2924-
// Helper function to compare nested results -- from the php.net array_diff page, I believe
2925-
private function array_diff_recursive($aArray1, $aArray2) {
2926-
$aReturn = array();
2927-
2928-
foreach ($aArray1 as $mKey => $mValue) {
2929-
if (array_key_exists($mKey, $aArray2)) {
2930-
if (is_array($mValue)) {
2931-
$aRecursiveDiff = $this->array_diff_recursive($mValue, $aArray2[$mKey]);
2932-
if (count($aRecursiveDiff)) {
2933-
$aReturn[$mKey] = $aRecursiveDiff;
2934-
}
2935-
} else {
2936-
if ($mValue != $aArray2[$mKey]) {
2937-
$aReturn[$mKey] = $mValue;
2938-
}
2939-
}
2940-
} else {
2941-
$aReturn[$mKey] = $mValue;
2942-
}
2943-
}
2944-
2945-
return $aReturn;
2946-
}
2924+
// Helper function to compare nested results -- from the php.net array_diff page, I believe
2925+
private function array_diff_recursive($aArray1, $aArray2) {
2926+
$aReturn = array();
2927+
2928+
foreach ($aArray1 as $mKey => $mValue) {
2929+
if (array_key_exists($mKey, $aArray2)) {
2930+
if (is_array($mValue)) {
2931+
$aRecursiveDiff = $this->array_diff_recursive($mValue, $aArray2[$mKey]);
2932+
if (count($aRecursiveDiff)) {
2933+
$aReturn[$mKey] = $aRecursiveDiff;
2934+
}
2935+
} else {
2936+
if ($mValue != $aArray2[$mKey]) {
2937+
$aReturn[$mKey] = $mValue;
2938+
}
2939+
}
2940+
} else {
2941+
$aReturn[$mKey] = $mValue;
2942+
}
2943+
}
2944+
2945+
return $aReturn;
2946+
}
29472947

29482948
public function testScript() {
29492949
// Flush any scripts we have
@@ -3114,9 +3114,9 @@ public function testUnserialize() {
31143114

31153115
// Pass them through redis so they're serialized
31163116
foreach($vals as $key => $val) {
3117-
$this->redis->setOption(Redis::OPT_SERIALIZER, $mode);
3117+
$this->redis->setOption(Redis::OPT_SERIALIZER, $mode);
31183118

3119-
$key = "key" . ++$key;
3119+
$key = "key" . ++$key;
31203120
$this->redis->del($key);
31213121
$this->redis->set($key, $val);
31223122

0 commit comments

Comments
 (0)