Passed
Push — develop ( fabd4f...d3878a )
by Jens
02:47
created
src/components/CachableBaseComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $cacheExists = $this->cache !== false;
102 102
             $cacheExpired = false;
103 103
             if ($cacheExists) {
104
-                $cacheCreationStamp = (int)$this->cache->creationStamp;
104
+                $cacheCreationStamp = (int) $this->cache->creationStamp;
105 105
                 $currentTime = time();
106 106
                 $cacheAge = $currentTime - $cacheCreationStamp;
107 107
                 $maxAgeInterval = new \DateInterval($this->maxAge);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     private function setHeadersFromCache()
129 129
     {
130 130
         if (isset($this->cache->headers)) {
131
-            $headers = (array)json_decode($this->cache->headers);
131
+            $headers = (array) json_decode($this->cache->headers);
132 132
             /** @var array $headers */
133 133
             foreach ($headers as $headerName => $headerContent) {
134 134
                 ResponseHeaders::add($headerName, $headerContent);
Please login to merge, or discard this patch.