Completed
Push — master ( a02e70...b54fee )
by Mikael
02:47
created
src/Cache/FileCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function clear()
129 129
     {
130
-        $files = glob($this->config['basepath'] . '/*');
130
+        $files = glob($this->config['basepath'].'/*');
131 131
         $items = count($files);
132 132
         array_map('unlink', $files);
133 133
         return true;
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     private function createKey($class, $id)
237 237
     {
238
-        return str_replace('\\', '-', $class) . '#' . $id;
238
+        return str_replace('\\', '-', $class).'#'.$id;
239 239
     }
240 240
 
241 241
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     private function filename($key)
251 251
     {
252
-        return $cachePath . '/' . $key;
252
+        return $cachePath.'/'.$key;
253 253
     }
254 254
 
255 255
 
Please login to merge, or discard this patch.
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 age until item expires
11 11
     "age" => 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
                 $cache->setDI($this);
14 14
 
Please login to merge, or discard this patch.