Passed
Push — master ( b54fee...9b5210 )
by Mikael
01:27
created
config/cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 return [
6 6
     // Use for styling the menu
7 7
     //"basePath" => ANAX_APP_PATH . "/cache",
8
-    "basePath" => ANAX_INSTALL_PATH . "/cache",
8
+    "basePath" => ANAX_INSTALL_PATH."/cache",
9 9
 
10 10
     // Default time to live until item expires
11 11
     "timeToLive" => 7 * 24 * 60 * 60,
Please login to merge, or discard this patch.
config/di/cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "cache" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $cache = new \Anax\Cache\FileCache();
13 13
 
14 14
                 // Load the configuration files
Please login to merge, or discard this patch.
src/Cache/FileCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function clear()
147 147
     {
148
-        $files = glob($this->cachePath . "/*");
148
+        $files = glob($this->cachePath."/*");
149 149
         $items = count($files);
150 150
         array_map('unlink', $files);
151 151
         return true;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      */
254 254
     public function createKey($class, $id)
255 255
     {
256
-        return str_replace('\\', '-', $class) . '#' . $id;
256
+        return str_replace('\\', '-', $class).'#'.$id;
257 257
     }
258 258
 
259 259
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     private function filename($key)
269 269
     {
270
-        return $this->cachePath . "/" . $key;
270
+        return $this->cachePath."/".$key;
271 271
     }
272 272
 
273 273
 
Please login to merge, or discard this patch.