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) { |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | $request = \Request::instance(); |
72 | 72 | $fetchConfig = []; |
73 | 73 | |
74 | - if (! is_array($arg)) { |
|
75 | - if (! class_exists($arg)) { |
|
74 | + if (!is_array($arg)) { |
|
75 | + if (!class_exists($arg)) { |
|
76 | 76 | return response()->json(['error' => 'Class: '.$arg.' does not exists'], 500); |
77 | 77 | } |
78 | 78 | $fetchConfig['model'] = $arg; |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | foreach ($whereToSearch as $searchColumn) { |
116 | 116 | $columnType = $conn->getSchemaBuilder()->getColumnType($table, $searchColumn); |
117 | 117 | |
118 | - $operation = ! isset($isFirst) ? 'where' : 'orWhere'; |
|
118 | + $operation = !isset($isFirst) ? 'where' : 'orWhere'; |
|
119 | 119 | |
120 | 120 | if ($columnType == 'string') { |
121 | 121 | $instance->{$operation}($searchColumn, 'LIKE', '%'.$search_term.'%'); |