@@ -88,7 +88,7 @@ |
||
88 | 88 | |
89 | 89 | if(!$cacheItem->isHit()){ |
90 | 90 | $io->note(\sprintf('Cache item "%s" does not exists in the cache', $cacheKey)); |
91 | - }else{ |
|
91 | + } else{ |
|
92 | 92 | $driverInstance->deleteItem($cacheItem->getKey()); |
93 | 93 | $io->success(\sprintf('Cache item "%s" has been deleted from cache', $cacheKey)); |
94 | 94 | } |
@@ -92,11 +92,11 @@ |
||
92 | 92 | $content = ob_get_contents(); |
93 | 93 | ob_end_clean(); |
94 | 94 | $io->write('<bg=green;fg=black>[HIT]</> ' . $content); |
95 | - }else{ |
|
95 | + } else{ |
|
96 | 96 | $io->write('<bg=green;fg=black>[HIT]</> (object) ' . \get_class($cacheItemValue)); |
97 | 97 | } |
98 | 98 | $io->write('This item will expires in <fg=green>' . $cacheItem->getTtl() .'</> second(s)'); |
99 | - }else{ |
|
99 | + } else{ |
|
100 | 100 | $io->write('<bg=yellow;fg=red>[MISS]</> The cache item "' . $cacheKey . '" does not (yet) exists !'); |
101 | 101 | } |
102 | 102 | } else { |
@@ -101,7 +101,7 @@ |
||
101 | 101 | if($cacheTtl){ |
102 | 102 | if(\is_numeric($cacheTtl)){ |
103 | 103 | $cacheItem->expiresAfter($cacheTtl); |
104 | - }else{ |
|
104 | + } else{ |
|
105 | 105 | $io->error(\sprintf('Invalid ttl value format "%s", must be a valid integer, aborting...', $cacheTtl)); |
106 | 106 | return; |
107 | 107 | } |