Completed
Push — master ( 18312a...f64dc4 )
by Lars
03:45
created
src/voku/cache/AdapterFile.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@  discard block
 block discarded – undo
151 151
     return true;
152 152
   }
153 153
 
154
+  /**
155
+   * @param string $path
156
+   */
154 157
   protected function createCacheDirectory($path)
155 158
   {
156 159
     if (!@mkdir($path, 0777, true) || !is_dir($path)) {
@@ -165,7 +168,7 @@  discard block
 block discarded – undo
165 168
   }
166 169
 
167 170
   /**
168
-   * @param $cacheFile
171
+   * @param string $cacheFile
169 172
    *
170 173
    * @return bool
171 174
    */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     $this->serializer = new SerializerIgbinary();
36 36
 
37 37
     if (!$cacheDir) {
38
-      $cacheDir = realpath(sys_get_temp_dir()) . '/cache';
38
+      $cacheDir = realpath(sys_get_temp_dir()).'/cache';
39 39
     }
40 40
 
41 41
     $this->cacheDir = (string)$cacheDir;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
    */
186 186
   protected function getFileName($key)
187 187
   {
188
-    return $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . self::CACHE_FILE_SUBFIX;
188
+    return $this->cacheDir.DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.self::CACHE_FILE_SUBFIX;
189 189
   }
190 190
 
191 191
   /**
Please login to merge, or discard this patch.
src/voku/cache/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
    */
223 223
   protected function getTheDefaultPrefix()
224 224
   {
225
-    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '') . '_' . (isset($_SESSION['language']) ? $_SESSION['language'] : '') . '_' . (isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
225
+    return (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '').'_'.(isset($_SESSION['language']) ? $_SESSION['language'] : '').'_'.(isset($_SESSION['language_extra']) ? $_SESSION['language_extra'] : '');
226 226
   }
227 227
 
228 228
   /**
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
    */
400 400
   private function calculateStoreKey($rawKey)
401 401
   {
402
-    return $this->getPrefix() . $rawKey;
402
+    return $this->getPrefix().$rawKey;
403 403
   }
404 404
 
405 405
   /**
Please login to merge, or discard this patch.