Completed
Push — master ( 4938be...cf33ed )
by Lars
02:29
created
src/voku/cache/Cache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
    */
215 215
   protected function getTheDefaultPrefix()
216 216
   {
217
-    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '') . '_' .
218
-           (isset($_SERVER['THEME']) ? $_SERVER['THEME'] : '') . '_' .
219
-           (isset($_SERVER['STAGE']) ? $_SERVER['STAGE'] : '') . '_' .
220
-           (isset($_SESSION['language']) ? $_SESSION['language'] : '') . '_' .
217
+    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '').'_'.
218
+           (isset($_SERVER['THEME']) ? $_SERVER['THEME'] : '').'_'.
219
+           (isset($_SERVER['STAGE']) ? $_SERVER['STAGE'] : '').'_'.
220
+           (isset($_SESSION['language']) ? $_SESSION['language'] : '').'_'.
221 221
            (isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
222 222
   }
223 223
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
    */
396 396
   private function calculateStoreKey($rawKey)
397 397
   {
398
-    $str = $this->getPrefix() . $rawKey;
398
+    $str = $this->getPrefix().$rawKey;
399 399
 
400 400
     if ($this->adapter instanceof AdapterFile) {
401 401
       $str = $this->cleanStoreKey($str);
Please login to merge, or discard this patch.
src/voku/cache/AdapterFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     $this->serializer = new SerializerIgbinary();
41 41
 
42 42
     if (!$cacheDir) {
43
-      $cacheDir = realpath(sys_get_temp_dir()) . '/simple_php_cache';
43
+      $cacheDir = realpath(sys_get_temp_dir()).'/simple_php_cache';
44 44
     }
45 45
 
46 46
     $this->cacheDir = (string)$cacheDir;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     $return = array();
79 79
     foreach (new \DirectoryIterator($this->cacheDir) as $fileInfo) {
80
-      if(!$fileInfo->isDot()) {
80
+      if (!$fileInfo->isDot()) {
81 81
         $return[] = unlink($fileInfo->getPathname());
82 82
       }
83 83
     }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
    */
253 253
   protected function getFileName($key)
254 254
   {
255
-    return $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . self::CACHE_FILE_SUBFIX;
255
+    return $this->cacheDir.DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.self::CACHE_FILE_SUBFIX;
256 256
   }
257 257
 
258 258
   /**
Please login to merge, or discard this patch.