Completed
Push — master ( fb6693...12c1f4 )
by Lars
02:01
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/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   +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 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
   }
111 111
 
112 112
   /**
113
-   * @param $cacheFile
113
+   * @param string $cacheFile
114 114
    *
115 115
    * @return bool
116 116
    */
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
   /**
127 127
    * @param string $key
128 128
    *
129
-   * @return mixed <p>Will return null if the was no value, otherwise it will return the cache value.</p>
129
+   * @return string|null <p>Will return null if the was no value, otherwise it will return the cache value.</p>
130 130
    */
131 131
   protected function getInternalFileValueCache($key)
132 132
   {
Please login to merge, or discard this patch.