Completed
Push — master ( 58336c...b70419 )
by Lars
02:36 queued 45s
created
src/voku/cache/AdapterFileSimple.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function setExpired(string $key, $value, int $ttl = 0): bool
76 76
     {
77
-        return (bool) \file_put_contents(
77
+        return (bool)\file_put_contents(
78 78
             $this->getFileName($key),
79 79
             $this->serializer->serialize(
80 80
                 [
Please login to merge, or discard this patch.
src/voku/cache/Cache.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -302,10 +302,10 @@  discard block
 block discarded – undo
302 302
     protected function getTheDefaultPrefix(): string
303 303
     {
304 304
         return ($_SERVER['SERVER_NAME'] ?? '') . '_' .
305
-               ($_SERVER['THEME'] ?? '') . '_' .
306
-               ($_SERVER['STAGE'] ?? '') . '_' .
307
-               ($_SESSION['language'] ?? '') . '_' .
308
-               ($_SESSION['language_extra'] ?? '');
305
+                ($_SERVER['THEME'] ?? '') . '_' .
306
+                ($_SERVER['STAGE'] ?? '') . '_' .
307
+                ($_SESSION['language'] ?? '') . '_' .
308
+                ($_SESSION['language_extra'] ?? '');
309 309
     }
310 310
 
311 311
     /**
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
             &&
700 700
             \array_key_exists($storeKey, self::$STATIC_CACHE) === true
701 701
         ) {
702
-             unset(self::$STATIC_CACHE[$storeKey], self::$STATIC_CACHE_COUNTER[$storeKey], self::$STATIC_CACHE_EXPIRE[$storeKey]
702
+              unset(self::$STATIC_CACHE[$storeKey], self::$STATIC_CACHE_COUNTER[$storeKey], self::$STATIC_CACHE_EXPIRE[$storeKey]
703 703
             );
704 704
         }
705 705
 
Please login to merge, or discard this patch.
src/voku/cache/AdapterOpCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function getFileName(string $key): string
71 71
     {
72
-        return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . '.php';
72
+        return $this->cacheDir.\DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.'.php';
73 73
     }
74 74
 
75 75
     /**
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
         ];
84 84
         $content = \var_export($item, true);
85 85
 
86
-        $content = '<?php return ' . $content . ';';
86
+        $content = '<?php return '.$content.';';
87 87
 
88 88
         $cacheFile = $this->getFileName($key);
89 89
 
90
-        $result = (bool) \file_put_contents(
90
+        $result = (bool)\file_put_contents(
91 91
             $cacheFile,
92 92
             $content,
93 93
             0,
Please login to merge, or discard this patch.