@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $this->publishes($this->getPublished()); |
34 | 34 | |
35 | 35 | // if no logging is enabled, we can stop here, nothing more should be done |
36 | - if (! $this->shouldLogAnything()) { |
|
36 | + if (!$this->shouldLogAnything()) { |
|
37 | 37 | return; |
38 | 38 | } |
39 | 39 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $logger = new SqlLogger($this->app, $this->config); |
42 | 42 | |
43 | 43 | // listen to database queries |
44 | - $this->app['db']->listen(function ( |
|
44 | + $this->app['db']->listen(function( |
|
45 | 45 | $query, |
46 | 46 | $bindings = null, |
47 | 47 | $time = null |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | return [ |
61 | 61 | realpath(__DIR__ . |
62 | 62 | '/../../publish/config/sql_logger.php') => (function_exists('config_path') ? |
63 | - config_path('sql_logger.php') : |
|
64 | - base_path('config/sql_logger.php')), |
|
63 | + config_path('sql_logger.php') : base_path('config/sql_logger.php')), |
|
65 | 64 | ]; |
66 | 65 | } |
67 | 66 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | */ |
65 | 65 | protected function createDirectoryIfNotExists($queryNumber) |
66 | 66 | { |
67 | - if ($queryNumber == 1 && ! file_exists($directory = $this->directory())) { |
|
67 | + if ($queryNumber == 1 && !file_exists($directory = $this->directory())) { |
|
68 | 68 | mkdir($directory, 0777, true); |
69 | 69 | } |
70 | 70 | } |