@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function register() |
| 25 | 25 | { |
| 26 | - $this->app->singleton(RequestLogger::class, function () { |
|
| 26 | + $this->app->singleton(RequestLogger::class, function() { |
|
| 27 | 27 | return new RequestLogger(); |
| 28 | 28 | }); |
| 29 | 29 | $this->app->alias(RequestLogger::class, 'request-logger'); |
@@ -17,10 +17,10 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $folder = storage_path($base_path); |
| 19 | 19 | |
| 20 | - if (! File::exists($folder)) { |
|
| 20 | + if (!File::exists($folder)) { |
|
| 21 | 21 | $result = File::makeDirectory($folder); |
| 22 | 22 | |
| 23 | - if (! $result) { |
|
| 23 | + if (!$result) { |
|
| 24 | 24 | throw new \Exception('Cannot create folder in storage path.'); |
| 25 | 25 | } |
| 26 | 26 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $file = storage_path($base_path.'/'.$date_folder.'/'.$type.'.log'); |
| 30 | 30 | |
| 31 | 31 | $write_check = File::put($file, $data); |
| 32 | - if (! $write_check) { |
|
| 32 | + if (!$write_check) { |
|
| 33 | 33 | throw new \Exception('Cannot write content to file.'); |
| 34 | 34 | } |
| 35 | 35 | |