Completed
Push — master ( 94f5e8...a88b9e )
by Lars
01:57 queued 11s
created
src/voku/cache/Cache.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -617,12 +617,12 @@
 block discarded – undo
617 617
     protected function getTheDefaultPrefix(): string
618 618
     {
619 619
         return ($_SERVER['SERVER_NAME'] ?? '') . '_' .
620
-               ($_SERVER['THEME'] ?? '') . '_' .
621
-               ($_SERVER['STAGE'] ?? '') . '_' .
622
-               ($_SESSION['language'] ?? '') . '_' .
623
-               ($_SESSION['language_extra'] ?? '') . '_' .
624
-               \PHP_VERSION_ID . '_' .
625
-               ($this->serializer ? $this->serializer->getName() : '');
620
+                ($_SERVER['THEME'] ?? '') . '_' .
621
+                ($_SERVER['STAGE'] ?? '') . '_' .
622
+                ($_SESSION['language'] ?? '') . '_' .
623
+                ($_SESSION['language_extra'] ?? '') . '_' .
624
+                \PHP_VERSION_ID . '_' .
625
+                ($this->serializer ? $this->serializer->getName() : '');
626 626
     }
627 627
 
628 628
     /**
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     protected function calculateStoreKey(string $rawKey): string
272 272
     {
273
-        $str = $this->getPrefix() . $rawKey;
273
+        $str = $this->getPrefix().$rawKey;
274 274
 
275 275
         if ($this->adapter instanceof AdapterFileAbstract) {
276 276
             $str = $this->cleanStoreKey($str);
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
         } else {
294 294
 
295 295
             // for testing with dev-address
296
-            $noDev = isset($_GET['noDev']) ? (int) $_GET['noDev'] : 0;
296
+            $noDev = isset($_GET['noDev']) ? (int)$_GET['noDev'] : 0;
297 297
             $remoteAddr = $_SERVER['REMOTE_ADDR'] ?? 'NO_REMOTE_ADDR';
298 298
 
299 299
             if (
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
             }
519 519
 
520 520
             // always cache the TTL time, maybe we need this later ...
521
-            self::$STATIC_CACHE_EXPIRE[$storeKey] = ($ttl ? (int) $ttl + \time() : 0);
521
+            self::$STATIC_CACHE_EXPIRE[$storeKey] = ($ttl ? (int)$ttl + \time() : 0);
522 522
 
523 523
             return $this->adapter->setExpired($storeKey, $serialized, $ttl);
524 524
         }
@@ -616,12 +616,12 @@  discard block
 block discarded – undo
616 616
      */
617 617
     protected function getTheDefaultPrefix(): string
618 618
     {
619
-        return ($_SERVER['SERVER_NAME'] ?? '') . '_' .
620
-               ($_SERVER['THEME'] ?? '') . '_' .
621
-               ($_SERVER['STAGE'] ?? '') . '_' .
622
-               ($_SESSION['language'] ?? '') . '_' .
623
-               ($_SESSION['language_extra'] ?? '') . '_' .
624
-               \PHP_VERSION_ID . '_' .
619
+        return ($_SERVER['SERVER_NAME'] ?? '').'_'.
620
+               ($_SERVER['THEME'] ?? '').'_'.
621
+               ($_SERVER['STAGE'] ?? '').'_'.
622
+               ($_SESSION['language'] ?? '').'_'.
623
+               ($_SESSION['language_extra'] ?? '').'_'.
624
+               \PHP_VERSION_ID.'_'.
625 625
                ($this->serializer ? $this->serializer->getName() : '');
626 626
     }
627 627
 
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
         // test the cache, with this GET-parameter
668 668
         if ($this->disableCacheGetParameter) {
669
-            $testCache = isset($_GET[$this->disableCacheGetParameter]) ? (int) $_GET[$this->disableCacheGetParameter] : 0;
669
+            $testCache = isset($_GET[$this->disableCacheGetParameter]) ? (int)$_GET[$this->disableCacheGetParameter] : 0;
670 670
         } else {
671 671
             $testCache = 0;
672 672
         }
Please login to merge, or discard this patch.
src/voku/cache/AdapterOpCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function getFileName(string $key): string
76 76
     {
77
-        return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . '.php';
77
+        return $this->cacheDir.\DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.'.php';
78 78
     }
79 79
 
80 80
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         ];
89 89
         $content = \var_export($item, true);
90 90
 
91
-        $content = '<?php return ' . $content . ';';
91
+        $content = '<?php return '.$content.';';
92 92
 
93 93
         $cacheFile = $this->getFileName($key);
94 94
 
Please login to merge, or discard this patch.