We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -59,7 +59,6 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Register aditional types in doctrine schema manager for the current connection. |
61 | 61 | * |
62 | - * @param Model $instance |
|
63 | 62 | * @return DB |
64 | 63 | */ |
65 | 64 | public static function getConnectionWithExtraTypeMappings() |
@@ -168,7 +167,7 @@ discard block |
||
168 | 167 | * |
169 | 168 | * @param array $columns - the database columns that contain the JSONs |
170 | 169 | * |
171 | - * @return Model |
|
170 | + * @return CrudTrait |
|
172 | 171 | */ |
173 | 172 | public function withFakes($columns = []) |
174 | 173 | { |
@@ -62,7 +62,7 @@ |
||
62 | 62 | // we get the first column from database |
63 | 63 | // that is NOT indexed (usually primary, foreign keys) |
64 | 64 | foreach ($columns as $columnName => $columnProperties) { |
65 | - if (! in_array($columnName, $indexedColumns)) { |
|
65 | + if (!in_array($columnName, $indexedColumns)) { |
|
66 | 66 | |
67 | 67 | //check for convention "field<_id>" in case developer didn't add foreign key constraints. |
68 | 68 | if (strpos($columnName, '_id') !== false) { |
@@ -45,8 +45,8 @@ |
||
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; |