Completed
Push — V3 ( 0314dd...1c3985 )
by Georges
01:57
created
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.