@@ -127,7 +127,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 249 | 249 | */ |
| 250 | 250 | private function filename($key) |
| 251 | 251 | { |
| 252 | - return $cachePath . '/' . $key; |
|
| 252 | + return $cachePath.'/'.$key; |
|
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | |
@@ -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 age until item expires |
| 11 | 11 | "age" => 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 | $cache->setDI($this); |
| 14 | 14 | |