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; |
@@ -66,8 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | if ($search_string === false) { |
68 | 68 | return ($config['paginate'] !== false) ? |
69 | - $config['query']->paginate($config['paginate']) : |
|
70 | - $config['query']->get(); |
|
69 | + $config['query']->paginate($config['paginate']) : $config['query']->get(); |
|
71 | 70 | } |
72 | 71 | |
73 | 72 | $textColumnTypes = ['string', 'json_string', 'text']; |
@@ -85,7 +84,6 @@ discard block |
||
85 | 84 | |
86 | 85 | // return the results with or without pagination |
87 | 86 | return ($config['paginate'] !== false) ? |
88 | - $config['query']->paginate($config['paginate']) : |
|
89 | - $config['query']->get(); |
|
87 | + $config['query']->paginate($config['paginate']) : $config['query']->get(); |
|
90 | 88 | } |
91 | 89 | } |