@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | |
33 | 33 | $cacheResult = $cacheInstance->getItem($cacheKey)->get(); |
34 | 34 | |
35 | -if($cacheResult === $randomStr){ |
|
35 | +if ($cacheResult === $randomStr) { |
|
36 | 36 | echo "[PASS] The cache key value match, got expected value '{$cacheResult}'\n"; |
37 | -}else{ |
|
37 | +} else { |
|
38 | 38 | echo "[FAIL] The cache key value match expected value '{$randomStr}', got '{$cacheResult}'\n"; |
39 | 39 | $status = 1; |
40 | 40 | } |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | $cacheInstance->clear(); |
43 | 43 | $cacheResult = ($cacheInstance->getItem($cacheKey)->isHit() === false && $cacheInstance->getItem($cacheKey)->get() === null); |
44 | 44 | |
45 | -if($cacheResult === true){ |
|
45 | +if ($cacheResult === true) { |
|
46 | 46 | echo "[PASS] The cache item is null as expected\n"; |
47 | -}else{ |
|
47 | +} else { |
|
48 | 48 | echo "[FAIL] The cache is not null'\n"; |
49 | 49 | $status = 1; |
50 | 50 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | protected function driverRead(CacheItemInterface $item) |
85 | 85 | { |
86 | 86 | $key = md5($item->getKey()); |
87 | - if(isset($this->staticStack[$key])){ |
|
87 | + if (isset($this->staticStack[$key])) { |
|
88 | 88 | return $this->staticStack[$key]; |
89 | 89 | } |
90 | 90 | return null; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | if ($item instanceof Item) { |
104 | 104 | $key = md5($item->getKey()); |
105 | - if(isset($this->staticStack[$key])){ |
|
105 | + if (isset($this->staticStack[$key])) { |
|
106 | 106 | unset($this->staticStack[$key]); |
107 | 107 | return true; |
108 | 108 | } |