@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function filter(Builder $builder, $value) |
| 16 | 16 | { |
| 17 | - if (! self::isValid($value)) { |
|
| 17 | + if (!self::isValid($value)) { |
|
| 18 | 18 | return $builder; |
| 19 | 19 | } |
| 20 | 20 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $logic = array_get($descriptors, 'logic', 'and'); |
| 19 | 19 | $filters = array_get($descriptors, 'filters', []); |
| 20 | 20 | |
| 21 | - if (! is_array($filters)) { |
|
| 21 | + if (!is_array($filters)) { |
|
| 22 | 22 | return $builder; |
| 23 | 23 | } |
| 24 | 24 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | protected function handle(Builder $builder, $descriptor, $logic) |
| 37 | 37 | { |
| 38 | - if (! is_array($descriptor) || ! array_key_exists('field', $descriptor)) { |
|
| 38 | + if (!is_array($descriptor) || !array_key_exists('field', $descriptor)) { |
|
| 39 | 39 | return $builder; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | protected function resolveField($descriptor) |
| 67 | 67 | { |
| 68 | - return $this->isBinary($descriptor) ? DB::raw('BINARY '.$descriptor['field']) : $descriptor['field']; |
|
| 68 | + return $this->isBinary($descriptor) ? DB::raw('BINARY ' . $descriptor['field']) : $descriptor['field']; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function resolveOperator($descriptor) |
| 76 | 76 | { |
| 77 | - if (! array_key_exists('operator', $descriptor)) { |
|
| 77 | + if (!array_key_exists('operator', $descriptor)) { |
|
| 78 | 78 | return '='; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -128,14 +128,14 @@ discard block |
||
| 128 | 128 | return $value; |
| 129 | 129 | |
| 130 | 130 | case 'startswith': |
| 131 | - return $value.'%'; |
|
| 131 | + return $value . '%'; |
|
| 132 | 132 | |
| 133 | 133 | case 'endswith': |
| 134 | - return '%'.$value; |
|
| 134 | + return '%' . $value; |
|
| 135 | 135 | |
| 136 | 136 | case 'contains': |
| 137 | 137 | case 'doesnotcontain': |
| 138 | - return '%'.$value.'%'; |
|
| 138 | + return '%' . $value . '%'; |
|
| 139 | 139 | |
| 140 | 140 | case 'isempty': |
| 141 | 141 | case 'isnotempty': |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function filter(Builder $builder, $descriptors) |
| 16 | 16 | { |
| 17 | - if (! is_array($descriptors)) { |
|
| 17 | + if (!is_array($descriptors)) { |
|
| 18 | 18 | return $builder; |
| 19 | 19 | } |
| 20 | 20 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function handle(Builder $builder, $descriptor) |
| 32 | 32 | { |
| 33 | - if (! is_array($descriptor) || is_null($descriptor['field'])) { |
|
| 33 | + if (!is_array($descriptor) || is_null($descriptor['field'])) { |
|
| 34 | 34 | return $builder; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function filter(Builder $builder, $descriptors) |
| 16 | 16 | { |
| 17 | - if (! is_array($descriptors)) { |
|
| 17 | + if (!is_array($descriptors)) { |
|
| 18 | 18 | return $builder; |
| 19 | 19 | } |
| 20 | 20 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | */ |
| 31 | 31 | protected function handle(Builder $builder, $descriptor) |
| 32 | 32 | { |
| 33 | - if (! is_array($descriptor) || ! array_key_exists('field', $descriptor)) { |
|
| 33 | + if (!is_array($descriptor) || !array_key_exists('field', $descriptor)) { |
|
| 34 | 34 | return $builder; |
| 35 | 35 | } |
| 36 | 36 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function filter(Builder $builder, $value) |
| 16 | 16 | { |
| 17 | - if (! self::isValid($value)) { |
|
| 17 | + if (!self::isValid($value)) { |
|
| 18 | 18 | return $builder; |
| 19 | 19 | } |
| 20 | 20 | |