Completed
Push — master ( 6a7f55...29301f )
by Lars
02:40
created
src/voku/cache/SerializerIgbinary.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 /**
6 6
  * SerializerIgbinary: serialize / unserialize
7 7
  *
8
-
9 8
  * @package   voku\cache
10 9
  */
11 10
 class SerializerIgbinary implements iSerializer
Please login to merge, or discard this patch.
src/voku/cache/AdapterFile.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
   }
211 211
 
212 212
   /**
213
-   * @param $cacheFile
213
+   * @param string $cacheFile
214 214
    *
215 215
    * @return bool
216 216
    */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
    */
224 224
   protected function getFileName($key)
225 225
   {
226
-    return $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . self::CACHE_FILE_SUBFIX;
226
+    return $this->cacheDir.DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.self::CACHE_FILE_SUBFIX;
227 227
   }
228 228
 
229 229
   /**
Please login to merge, or discard this patch.
src/voku/cache/Cache.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,10 +215,10 @@
 block discarded – undo
215 215
   protected function getTheDefaultPrefix()
216 216
   {
217 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
-           (isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
218
+            (isset($_SERVER['THEME']) ? $_SERVER['THEME'] : '') . '_' .
219
+            (isset($_SERVER['STAGE']) ? $_SERVER['STAGE'] : '') . '_' .
220
+            (isset($_SESSION['language']) ? $_SESSION['language'] : '') . '_' .
221
+            (isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
222 222
   }
223 223
 
224 224
   /**
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
    */
230 230
   protected function getTheDefaultPrefix()
231 231
   {
232
-    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '') . '_' .
233
-           (isset($_SERVER['THEME']) ? $_SERVER['THEME'] : '') . '_' .
234
-           (isset($_SERVER['STAGE']) ? $_SERVER['STAGE'] : '') . '_' .
235
-           (isset($_SESSION['language']) ? $_SESSION['language'] : '') . '_' .
232
+    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '').'_'.
233
+           (isset($_SERVER['THEME']) ? $_SERVER['THEME'] : '').'_'.
234
+           (isset($_SERVER['STAGE']) ? $_SERVER['STAGE'] : '').'_'.
235
+           (isset($_SESSION['language']) ? $_SESSION['language'] : '').'_'.
236 236
            (isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
237 237
   }
238 238
 
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
     $staticCacheHitCounter = (int)$staticCacheHitCounter;
426 426
 
427 427
     static $STATIC_CACHE = array();
428
-    static $STATIC_CACHE_COUNTER = array();;
428
+    static $STATIC_CACHE_COUNTER = array(); ;
429 429
 
430 430
     if ($this->adapter instanceof iAdapter) {
431 431
       $storeKey = $this->calculateStoreKey($key);
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
    */
479 479
   private function calculateStoreKey($rawKey)
480 480
   {
481
-    $str = $this->getPrefix() . $rawKey;
481
+    $str = $this->getPrefix().$rawKey;
482 482
 
483 483
     if ($this->adapter instanceof AdapterFile) {
484 484
       $str = $this->cleanStoreKey($str);
Please login to merge, or discard this patch.