@@ -261,7 +261,7 @@ |
||
| 261 | 261 | */ |
| 262 | 262 | protected function createLogDirectoryIfNeeded($queryNr, $execTime) |
| 263 | 263 | { |
| 264 | - if ($queryNr == 1 && ! file_exists($this->directory) && |
|
| 264 | + if ($queryNr == 1 && !file_exists($this->directory) && |
|
| 265 | 265 | ($this->shouldLogQuery() || $this->shouldLogSlowQuery($execTime))) { |
| 266 | 266 | mkdir($this->directory, 0777, true); |
| 267 | 267 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $directory, $convertToSeconds, $separateConsoleLog); |
| 35 | 35 | |
| 36 | 36 | // listen to database queries |
| 37 | - $this->app['db']->listen(function ( |
|
| 37 | + $this->app['db']->listen(function( |
|
| 38 | 38 | $query, |
| 39 | 39 | $bindings = null, |
| 40 | 40 | $time = null |
@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | return [ |
| 55 | 55 | realpath(__DIR__ . |
| 56 | 56 | '/../../publish/config/sql_logger.php') => (function_exists('config_path') ? |
| 57 | - config_path('sql_logger.php') : |
|
| 58 | - base_path('config/sql_logger.php')), |
|
| 57 | + config_path('sql_logger.php') : base_path('config/sql_logger.php')), |
|
| 59 | 58 | ]; |
| 60 | 59 | } |
| 61 | 60 | |