Completed
Push — master ( ada6cf...68b891 )
by Marcin
03:34
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.