@@ -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 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $directory, $convertToSeconds, $separateConsoleLog); |
50 | 50 | |
51 | 51 | // listen to database queries |
52 | - $this->app['db']->listen(function ( |
|
52 | + $this->app['db']->listen(function( |
|
53 | 53 | $query, |
54 | 54 | $bindings = null, |
55 | 55 | $time = null |
@@ -69,8 +69,7 @@ discard block |
||
69 | 69 | return [ |
70 | 70 | realpath(__DIR__ . |
71 | 71 | '/../../publish/config/sql_logger.php') => (function_exists('config_path') ? |
72 | - config_path('sql_logger.php') : |
|
73 | - base_path('config/sql_logger.php')), |
|
72 | + config_path('sql_logger.php') : base_path('config/sql_logger.php')), |
|
74 | 73 | ]; |
75 | 74 | } |
76 | 75 | } |