@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -4,14 +4,14 @@ |
||
| 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 | ); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | protected function setCustomResolverForPgsql(): void |
| 18 | 18 | { |
| 19 | - Connection::resolverFor('pgsql', function ($connection, $database, $prefix, $config) { |
|
| 19 | + Connection::resolverFor('pgsql', function($connection, $database, $prefix, $config) { |
|
| 20 | 20 | return new PostgresConnection($connection, $database, $prefix, $config); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -35,11 +35,11 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | Collection::make(glob(__DIR__.'/Macros/*.php'))->mapWithKeys( |
| 38 | - static function ($path) { |
|
| 38 | + static function($path) { |
|
| 39 | 39 | return [$path => pathinfo($path, PATHINFO_FILENAME)]; |
| 40 | 40 | } |
| 41 | 41 | )->each( |
| 42 | - static function ($macro, $path) { |
|
| 42 | + static function($macro, $path) { |
|
| 43 | 43 | require_once $path; |
| 44 | 44 | } |
| 45 | 45 | ); |