@@ -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 | } |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
| 59 | 59 | $output->writeln("<fg=green>Cache instance {$name} cleared</>"); |
| 60 | 60 | } |
| 61 | - }catch (PhpfastcacheDriverCheckException $e){ |
|
| 61 | + } catch (PhpfastcacheDriverCheckException $e){ |
|
| 62 | 62 | $failedInstances[] = $name; |
| 63 | 63 | if (OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()) { |
| 64 | 64 | $output->writeln("<fg=red>Cache instance {$name} not cleared, got exception: " . "<bg=red;options=bold>" . $e->getMessage() ."</>"); |
| 65 | - }else{ |
|
| 65 | + } else{ |
|
| 66 | 66 | $output->writeln("<fg=red>Cache instance {$name} not cleared (increase verbosity to get more information).</>"); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -74,10 +74,10 @@ discard block |
||
| 74 | 74 | $callback($driver); |
| 75 | 75 | if(!\count($failedInstances)){ |
| 76 | 76 | $io->success("Cache instance {$driver} cleared"); |
| 77 | - }else{ |
|
| 77 | + } else{ |
|
| 78 | 78 | $io->error("Cache instance {$driver} not cleared"); |
| 79 | 79 | } |
| 80 | - }else{ |
|
| 80 | + } else{ |
|
| 81 | 81 | $io->error("Cache instance {$driver} does not exists"); |
| 82 | 82 | } |
| 83 | 83 | } else { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | if(!\count($failedInstances)){ |
| 88 | 88 | $io->success('All caches instances got cleared'); |
| 89 | - }else{ |
|
| 89 | + } else{ |
|
| 90 | 90 | $io->success('Almost all caches instances got cleared, except these: ' . \implode(', ', $failedInstances)); |
| 91 | 91 | } |
| 92 | 92 | } |
@@ -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 | |