@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | protected function resolve($column, $key, $last, callable $callback) |
122 | 122 | { |
123 | - if (! strpos($column, '.')) { |
|
123 | + if (!strpos($column, '.')) { |
|
124 | 124 | return $callback("{$last}.{$column}", $key); |
125 | 125 | } |
126 | 126 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $singular = str_singular($scope); |
129 | 129 | $next = substr(strstr($column, '.'), 1); |
130 | 130 | |
131 | - if (! in_array($scope, $this->loaded)) { |
|
131 | + if (!in_array($scope, $this->loaded)) { |
|
132 | 132 | $this->loaded[] = $scope; |
133 | 133 | |
134 | 134 | $this->builder->join($scope, "{$last}.{$singular}_id", "{$scope}.id"); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function search($pattern = null) |
14 | 14 | { |
15 | - if (! $pattern) { |
|
15 | + if (!$pattern) { |
|
16 | 16 | return; |
17 | 17 | } |
18 | 18 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function resolveSearch($column, $key) |
32 | 32 | { |
33 | - $this->resolve($column, $key, $this->getTableName(), function ($query, $pattern) { |
|
33 | + $this->resolve($column, $key, $this->getTableName(), function($query, $pattern) { |
|
34 | 34 | $this->builder->orWhere($query, 'LIKE', "%{$pattern}%"); |
35 | 35 | }); |
36 | 36 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function __call($method, $args) |
15 | 15 | { |
16 | - if (! array_key_exists($method, $this->orderable)) { |
|
16 | + if (!array_key_exists($method, $this->orderable)) { |
|
17 | 17 | return; |
18 | 18 | } |
19 | 19 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | protected function resolveOrder($column, $key) |
31 | 31 | { |
32 | - $this->resolve($column, $key, $this->getTableName(), function ($query, $pattern) { |
|
32 | + $this->resolve($column, $key, $this->getTableName(), function($query, $pattern) { |
|
33 | 33 | $this->builder->orderBy($query, $pattern); |
34 | 34 | }); |
35 | 35 | } |