Passed
Pull Request — master (#5)
by belamov
05:10 queued 02:28
created
src/Macros/whereRangeStrictlyRightOf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeStrictlyRightOf',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? >> ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeStrictlyRightOf',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? >> ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeDoesNotExtendToTheRightOf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeDoesNotExtendToTheRightOf',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? &< ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeDoesNotExtendToTheRightOf',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? &< ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeStrictlyLeftOf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeStrictlyLeftOf',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? << ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeStrictlyLeftOf',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? << ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeIsContainedBy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeIsContainedBy',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? <@ ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeIsContainedBy',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? <@ ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeIsAdjacentTo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeAdjacentTo',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? -|- ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeAdjacentTo',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? -|- ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeOverlaps.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeOverlaps',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? && ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeOverlaps',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? && ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeContains.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeContains',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? @> ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeContains',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? @> ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/Macros/whereRangeDoesNotExtendToTheLeftOf.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
 
5 5
 Builder::macro(
6 6
     'whereRangeDoesNotExtendToTheLeftOf',
7
-    function ($column, $value) {
7
+    function($column, $value) {
8 8
         return $this->whereRaw('? &> ?', [$column, $value]);
9 9
     }
10 10
 );
11 11
 
12 12
 Builder::macro(
13 13
     'orWhereRangeDoesNotExtendToTheLeftOf',
14
-    function ($column, $value) {
14
+    function($column, $value) {
15 15
         return $this->whereRaw('? &> ?', [$column, $value], 'or');
16 16
     }
17 17
 );
Please login to merge, or discard this patch.
src/PostgresRangeServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     protected function setCustomResolverForPgsql(): void
17 17
     {
18
-        Connection::resolverFor('pgsql', function ($connection, $database, $prefix, $config) {
18
+        Connection::resolverFor('pgsql', function($connection, $database, $prefix, $config) {
19 19
             return new PostgresConnection($connection, $database, $prefix, $config);
20 20
         });
21 21
     }
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
     public function boot(): void
27 27
     {
28 28
         Collection::make(glob(__DIR__.'/Macros/*.php'))->mapWithKeys(
29
-            static function ($path) {
29
+            static function($path) {
30 30
                 return [$path => pathinfo($path, PATHINFO_FILENAME)];
31 31
             }
32 32
         )->each(
33
-            static function ($macro, $path) {
33
+            static function($macro, $path) {
34 34
                 require_once $path;
35 35
             }
36 36
         );
Please login to merge, or discard this patch.