We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | // otherwise assume the arguments are actually the configuration array |
46 | 46 | $config = []; |
47 | 47 | |
48 | - if (! is_array($arg)) { |
|
49 | - if (! class_exists($arg)) { |
|
48 | + if (!is_array($arg)) { |
|
49 | + if (!class_exists($arg)) { |
|
50 | 50 | return response()->json(['error' => 'Class: '.$arg.' does not exists'], 500); |
51 | 51 | } |
52 | 52 | $config['model'] = $arg; |
@@ -76,8 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | if ($search_string === false) { |
78 | 78 | return ($config['paginate'] !== false) ? |
79 | - $config['query']->paginate($config['paginate']) : |
|
80 | - $config['query']->get(); |
|
79 | + $config['query']->paginate($config['paginate']) : $config['query']->get(); |
|
81 | 80 | } |
82 | 81 | |
83 | 82 | $textColumnTypes = ['string', 'json_string', 'text', 'longText', 'json_array']; |
@@ -95,7 +94,6 @@ discard block |
||
95 | 94 | |
96 | 95 | // return the results with or without pagination |
97 | 96 | return ($config['paginate'] !== false) ? |
98 | - $config['query']->paginate($config['paginate']) : |
|
99 | - $config['query']->get(); |
|
97 | + $config['query']->paginate($config['paginate']) : $config['query']->get(); |
|
100 | 98 | } |
101 | 99 | } |