@@ -103,7 +103,7 @@ |
||
| 103 | 103 | new $configClass($this->config[ 'drivers' ][ $name ][ 'parameters' ]) |
| 104 | 104 | ) |
| 105 | 105 | ); |
| 106 | - }else{ |
|
| 106 | + } else{ |
|
| 107 | 107 | throw new PhpfastcacheInvalidConfigurationException('Invalid configuration class name: ' . $configClass); |
| 108 | 108 | } |
| 109 | 109 | } |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | { |
| 195 | 195 | if(isset($this->twig_cache_blocks[$blockName])){ |
| 196 | 196 | $this->twig_cache_blocks[$blockName] = \array_merge($this->twig_cache_blocks[$blockName], $cacheBlock); |
| 197 | - }else{ |
|
| 197 | + } else{ |
|
| 198 | 198 | $this->twig_cache_blocks[$blockName] = $cacheBlock; |
| 199 | 199 | } |
| 200 | 200 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | try{ |
| 33 | 33 | $cache9 = $phpfastcache->get('apccache'); |
| 34 | 34 | $cache10 = $phpfastcache->get('apcucache'); |
| 35 | - }catch(PhpfastcacheDriverCheckException $e){ |
|
| 35 | + } catch(PhpfastcacheDriverCheckException $e){ |
|
| 36 | 36 | $cache11 = $phpfastcache->get('xcachecache'); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -69,10 +69,10 @@ |
||
| 69 | 69 | $cacheItem->set($response); |
| 70 | 70 | $this->cacheInstance->save($cacheItem); |
| 71 | 71 | $cacheResponse = $response; |
| 72 | - }else{ |
|
| 72 | + } else{ |
|
| 73 | 73 | throw new PhpfastcacheLogicException('Your callback response MUST return a valid Symfony HTTP Foundation Response object'); |
| 74 | 74 | } |
| 75 | - }else{ |
|
| 75 | + } else{ |
|
| 76 | 76 | $cacheResponse->isNotModified($this->request); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -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 | } |