@@ -5,7 +5,7 @@ |
||
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, |
@@ -8,7 +8,7 @@ |
||
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 |
@@ -145,7 +145,7 @@ discard block |
||
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 |
||
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 |
||
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 |