We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | //if non of the sensible defaults exists we get the first column from database that is not indexed (usually primary, foreign keys). |
49 | 49 | foreach ($columns as $columnName => $columnProperties) { |
50 | - if (! in_array($columnName, $indexedColumns)) { |
|
50 | + if (!in_array($columnName, $indexedColumns)) { |
|
51 | 51 | |
52 | 52 | //check for convention "field<_id>" in case developer didn't add foreign key constraints. |
53 | 53 | if (strpos($columnName, '_id') !== false) { |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | { |
42 | 42 | $fetchConfig = []; |
43 | 43 | |
44 | - if (! is_array($arg)) { |
|
45 | - if (! class_exists($arg)) { |
|
44 | + if (!is_array($arg)) { |
|
45 | + if (!class_exists($arg)) { |
|
46 | 46 | return response()->json(['error' => 'Class: '.$arg.' does not exists'], 500); |
47 | 47 | } |
48 | 48 | $fetchConfig['model'] = $arg; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | //we grab the column type |
88 | 88 | $columnType = $conn->getSchemaBuilder()->getColumnType($table, $searchColumn); |
89 | 89 | |
90 | - $operation = ! isset($isFirst) ? 'where' : 'orWhere'; |
|
90 | + $operation = !isset($isFirst) ? 'where' : 'orWhere'; |
|
91 | 91 | if ($columnType == 'string') { |
92 | 92 | $instance = $instance->{$operation}($searchColumn, 'LIKE', '%'.$search_term.'%'); |
93 | 93 | } else { |