@@ -37,7 +37,7 @@ public function builder(): Builder
37
37
*/
38
38
static $ builder = null ;
39
39
40
- if (! is_null ($ builder ) && ! app ()->environment ('testing ' )) {
40
+ if (!is_null ($ builder ) && !app ()->environment ('testing ' )) {
41
41
return $ builder ;
42
42
}
43
43
$ builder = $ this ->query ()->newQuery ();
@@ -52,7 +52,7 @@ public function getColumnsWithoutPrimaryKey($columns)
52
52
{
53
53
$ primaryKey = $ this ->getModel ()->getKeyName ();
54
54
55
- return array_filter ($ columns , function ($ column ) use ($ primaryKey ) {
55
+ return array_filter ($ columns , function ($ column ) use ($ primaryKey ) {
56
56
return $ primaryKey !== $ column ;
57
57
});
58
58
}
@@ -68,7 +68,7 @@ public function getCustomColumnNames(): array
68
68
return $ model ->getCustomColumnNames ();
69
69
}
70
70
71
- return [];
71
+ return [ ];
72
72
}
73
73
74
74
/**
@@ -97,7 +97,7 @@ public function getModel(): Model
97
97
* @var mixed
98
98
*/
99
99
static $ model = null ;
100
- if (! is_null ($ model )) {
100
+ if (!is_null ($ model )) {
101
101
return $ model ;
102
102
}
103
103
@@ -135,7 +135,7 @@ public function getRecords(Request $request = null, callable $callback = null):
135
135
$ request ->limit ?? -1
136
136
)->get ();
137
137
} catch (QueryException $ e ) {
138
- return collect ([]);
138
+ return collect ([ ]);
139
139
}
140
140
}
141
141
@@ -210,7 +210,7 @@ public function response(callable $callback = null): array
210
210
*/
211
211
protected function buildSearchQuery (Builder $ builder , Request $ request ): Builder
212
212
{
213
- ['operator ' => $ operator , 'value ' => $ value ] = $ this ->resolveQueryParts ($ request ->operator , $ request ->value );
213
+ [ 'operator ' => $ operator , 'value ' => $ value ] = $ this ->resolveQueryParts ($ request ->operator , $ request ->value );
214
214
215
215
throw_unless (in_array ($ request ->column , $ this ->getDisplayableColumns ()), InvalidColumnSearchException::class);
216
216
@@ -235,7 +235,7 @@ protected function getDatabaseColumnNames(): array
235
235
*/
236
236
protected function hasSearchQuery (Request $ request ): bool
237
237
{
238
- return count (array_filter ($ request ->only (['column ' , 'operator ' , 'value ' ]))) === 3 ;
238
+ return count (array_filter ($ request ->only ([ 'column ' , 'operator ' , 'value ' ]))) === 3 ;
239
239
}
240
240
241
241
/**
0 commit comments