@@ -28,7 +28,7 @@ |
||
28 | 28 | public function get() |
29 | 29 | { |
30 | 30 | $format = "[%datetime%] %level_name%: %message% %context%\n"; |
31 | - $stream = new StreamHandler($this->appMeta->logDir . '/app.log', Logger::DEBUG); |
|
31 | + $stream = new StreamHandler($this->appMeta->logDir.'/app.log', Logger::DEBUG); |
|
32 | 32 | $stream->setFormatter(new LineFormatter($format)); |
33 | 33 | |
34 | 34 | return new Logger($this->appMeta->name, [$stream]); |
@@ -22,10 +22,10 @@ |
||
22 | 22 | |
23 | 23 | public function __invoke(string $path) |
24 | 24 | { |
25 | - if ($this->isOptional && file_exists($path . '/.do_not_clear')) { |
|
25 | + if ($this->isOptional && file_exists($path.'/.do_not_clear')) { |
|
26 | 26 | return; |
27 | 27 | } |
28 | - foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . '*') as $file) { |
|
28 | + foreach ((array) glob(rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'*') as $file) { |
|
29 | 29 | is_dir((string) $file) ? $this->__invoke((string) $file) : unlink((string) $file); |
30 | 30 | @rmdir((string) $file); |
31 | 31 | } |