@@ -25,21 +25,21 @@ |
||
| 25 | 25 | $actOnAll = new ActOnAll(); |
| 26 | 26 | $statsAry = $actOnAll->getStats(); |
| 27 | 27 | |
| 28 | -if(is_array($statsAry)){ |
|
| 29 | - if(count($statsAry) !== 3){ |
|
| 28 | +if (is_array($statsAry)) { |
|
| 29 | + if (count($statsAry) !== 3) { |
|
| 30 | 30 | $status = 1; |
| 31 | 31 | echo 'Wrong count of driverStatistics objects: Got ' . count($statsAry) . " element(s), expected 3\n"; |
| 32 | 32 | goto endOfTest; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | foreach ($statsAry as $stat) { |
| 36 | - if(!is_object($stat) || !($stat instanceof driverStatistic)){ |
|
| 36 | + if (!is_object($stat) || !($stat instanceof driverStatistic)) { |
|
| 37 | 37 | echo "\$statsAry contains one element that is not an driverStatistic object\n"; |
| 38 | 38 | goto endOfTest; |
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | echo "[PASS] ActOnAll helper passed all tests\n"; |
| 42 | -}else{ |
|
| 42 | +} else { |
|
| 43 | 43 | $status = 1; |
| 44 | 44 | echo "\$statsAry is not an array\n"; |
| 45 | 45 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | if (!class_exists('phpFastCache\CacheManager')) { |
| 16 | 16 | echo "[FAIL] Autoload failed to find the CacheManager\n"; |
| 17 | 17 | $status = 255; |
| 18 | -}else{ |
|
| 18 | +} else{ |
|
| 19 | 19 | echo "[PASS] Autoload successfully found the CacheManager\n"; |
| 20 | 20 | } |
| 21 | 21 | |