Completed
Push — master ( a8d3e1...8005db )
by Marcin
05:51
created
src/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Providers/ServiceProvider.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/FileName.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Formatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $entry = str_replace(array_keys($replace), array_values($replace), $this->config->entryFormat());
56 56
 
57
-        return preg_replace_callback('(\[user_(\w*)\])', function ($matches) {
57
+        return preg_replace_callback('(\[user_(\w*)\])', function($matches) {
58 58
             return ($user = $this->app['auth']->user()) ? $user->{$matches[1]} : '-';
59 59
         }, $entry);
60 60
     }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     protected function removeNewLines($sql)
154 154
     {
155
-        if (! $this->config->newLinesToSpaces()) {
155
+        if (!$this->config->newLinesToSpaces()) {
156 156
             return $sql;
157 157
         }
158 158
 
Please login to merge, or discard this patch.