Completed
Push — V3 ( a176c4...c07e57 )
by Georges
01:57
created
src/Service/Phpfastcache.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/DataCollector/CacheCollector.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Resources/Docs/example/Controller/DefaultController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Response/CacheableResponse.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,10 +69,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command/PhpfastcacheDelCommand.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Command/PhpfastcacheGetCommand.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,11 +92,11 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Command/PhpfastcacheSetCommand.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             if($cacheTtl){
114 114
                 if(\is_numeric($cacheTtl)){
115 115
                     $cacheItem->expiresAfter($cacheTtl);
116
-                }else{
116
+                } else{
117 117
                     $io->error(\sprintf('Invalid ttl value format "%s", must be a valid integer, aborting...', $cacheTtl));
118 118
                     return;
119 119
                 }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
             if($autoTypeCast && $castedCacheValue !== $cacheValue){
123 123
                 $io->success(\sprintf('Cache item "%s" set to "%s" for %d seconds (automatically type-casted to %s)', $cacheKey, $cacheValue, $cacheItem->getTtl(), \gettype($castedCacheValue)));
124
-            }else{
124
+            } else{
125 125
                 $io->success(\sprintf('Cache item "%s" set to "%s" for %d seconds', $cacheKey, $cacheValue, $cacheItem->getTtl()));
126 126
             }
127 127
 
Please login to merge, or discard this patch.