Completed
Push — V3 ( c9215a...5cd01a )
by Georges
01:47
created
src/Response/CacheableResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
          */
58 58
         if (!($cacheResponse instanceof Response)) {
59 59
             $response = $callback();
60
-            if($response instanceof Response){
60
+            if ($response instanceof Response) {
61 61
                 $cacheItem->expiresAfter($expiresAfter);
62 62
 
63 63
                 $response->setExpires($cacheItem->getExpirationDate());
@@ -69,10 +69,10 @@  discard block
 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.