@@ -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 | } |
@@ -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 | |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | return [ |
55 | 55 | $this->configFileLocation() => (function_exists('config_path') ? |
56 | - config_path('sql_logger.php') : |
|
57 | - base_path('config/sql_logger.php')), |
|
56 | + config_path('sql_logger.php') : base_path('config/sql_logger.php')), |
|
58 | 57 | ]; |
59 | 58 | } |
60 | 59 | |
@@ -87,7 +86,7 @@ discard block |
||
87 | 86 | */ |
88 | 87 | protected function getListenClosure(SqlLogger $logger) |
89 | 88 | { |
90 | - return function ($query, $bindings = null, $time = null) use ($logger) { |
|
89 | + return function($query, $bindings = null, $time = null) use ($logger) { |
|
91 | 90 | $logger->log($query, $bindings, $time); |
92 | 91 | }; |
93 | 92 | } |
@@ -86,8 +86,8 @@ |
||
86 | 86 | */ |
87 | 87 | protected function parseFileName($fileName) |
88 | 88 | { |
89 | - return preg_replace_callback('#(\[.*\])#U', function ($matches) { |
|
90 | - $format = str_replace(['[',']'], [], $matches[1]); |
|
89 | + return preg_replace_callback('#(\[.*\])#U', function($matches) { |
|
90 | + $format = str_replace(['[', ']'], [], $matches[1]); |
|
91 | 91 | |
92 | 92 | return $this->now->format($format); |
93 | 93 | }, $fileName); |
@@ -154,7 +154,7 @@ |
||
154 | 154 | */ |
155 | 155 | protected function removeNewLines($sql) |
156 | 156 | { |
157 | - if (! $this->config->newLinesToSpaces()) { |
|
157 | + if (!$this->config->newLinesToSpaces()) { |
|
158 | 158 | return $sql; |
159 | 159 | } |
160 | 160 |