Completed
Push — master ( cfd8f4...8d747d )
by Marcin
01:40
created
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
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.