@@ -305,9 +305,9 @@ |
||
305 | 305 | if($item instanceof CacheItemInterface){ |
306 | 306 | unset($this->itemInstances[ $item->getKey() ]); |
307 | 307 | |
308 | - }else if(is_string($item)){ |
|
308 | + } else if(is_string($item)){ |
|
309 | 309 | unset($this->itemInstances[ $item ]); |
310 | - }else{ |
|
310 | + } else{ |
|
311 | 311 | throw new \InvalidArgumentException('Invalid type for $item variable'); |
312 | 312 | } |
313 | 313 | if(gc_enabled()){ |
@@ -42,10 +42,10 @@ |
||
42 | 42 | if (!is_object($driverInstance->getItem('test'))) { |
43 | 43 | echo '[FAIL] $driverInstance->getItem() returned an invalid var type:' . gettype($driverInstance) . "\n"; |
44 | 44 | $status = 1; |
45 | -}else if(!($driverInstance->getItem('test') instanceof ExtendedCacheItemInterface)){ |
|
45 | +} else if(!($driverInstance->getItem('test') instanceof ExtendedCacheItemInterface)){ |
|
46 | 46 | echo '[FAIL] $driverInstance->getItem() returned an invalid class that does not implements ExtendedCacheItemInterface: ' . get_class($driverInstance) . "\n"; |
47 | 47 | $status = 1; |
48 | -}else{ |
|
48 | +} else{ |
|
49 | 49 | echo '[PASS] $driverInstance->getItem() returned a valid class that implements ExtendedCacheItemInterface: ' . get_class($driverInstance) . "\n"; |
50 | 50 | } |
51 | 51 |