@@ -63,7 +63,7 @@ |
||
63 | 63 | private static function getControllerMethods($ctrl) |
64 | 64 | { |
65 | 65 | $controller_methods = (new \ReflectionClass($ctrl))->getMethods(\ReflectionMethod::IS_PUBLIC); |
66 | - $controller_methods = array_filter($controller_methods, function ($method) { |
|
66 | + $controller_methods = array_filter($controller_methods, function($method) { |
|
67 | 67 | return ($method->class !== 'Illuminate\Routing\Controller' && $method->name !== 'getIndex'); |
68 | 68 | }); |
69 | 69 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | $datatableWhere = urldecode(request('datatable_where')); |
16 | 16 | $foreignKeyName = request('fk_name'); |
17 | 17 | $foreignKeyValue = request('fk_value'); |
18 | - if (! $table || ! $label || ! $foreignKeyName || ! $foreignKeyValue) { |
|
18 | + if (!$table || !$label || !$foreignKeyName || !$foreignKeyValue) { |
|
19 | 19 | return response()->json([]); |
20 | 20 | } |
21 | 21 | $query = DB::table($table); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function getDataQuery() |
52 | 52 | { |
53 | 53 | $key = request('query'); |
54 | - if (! Cache::has($key)) { |
|
54 | + if (!Cache::has($key)) { |
|
55 | 55 | return response()->json(['items' => []]); |
56 | 56 | } |
57 | 57 | $query = Cache::get($key); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | if (request('q')) { |
94 | 94 | return; |
95 | 95 | } |
96 | - $result->where(function ($where) use ($columns) { |
|
96 | + $result->where(function($where) use ($columns) { |
|
97 | 97 | foreach ($columns as $c => $col) { |
98 | 98 | if ($c == 0) { |
99 | 99 | $where->where($col, 'like', '%'.request('q').'%'); |