Completed
Branch master (7b1dcf)
by Marcin
06:57
created
Category
src/SqlLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Providers/ServiceProvider.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.