We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 371-379 (lines=9) @@ | ||
| 368 | return $this->buttons; |
|
| 369 | } |
|
| 370 | ||
| 371 | private function getColumns() // DONE |
|
| 372 | { |
|
| 373 | $columns = \Schema::getColumnListing($this->model->getTable()); |
|
| 374 | $fillable = $this->model->getFillable(); |
|
| 375 | ||
| 376 | if (!empty($fillable)) $columns = array_intersect($columns, $fillable); |
|
| 377 | ||
| 378 | return array_values(array_diff($columns, [$this->model->getKeyName(), 'updated_at', 'deleted_at'])); |
|
| 379 | } |
|
| 380 | ||
| 381 | private function syncColumn($column) |
|
| 382 | { |
|
| @@ 951-961 (lines=11) @@ | ||
| 948 | * |
|
| 949 | * @return [array] Database column names as an array. |
|
| 950 | */ |
|
| 951 | public function getDbColumnsNames() |
|
| 952 | { |
|
| 953 | // Automatically-set columns should be both in the database, and in the $fillable variable on the Eloquent Model |
|
| 954 | $columns = \Schema::getColumnListing($this->model->getTable()); |
|
| 955 | $fillable = $this->model->getFillable(); |
|
| 956 | ||
| 957 | if (!empty($fillable)) $columns = array_intersect($columns, $fillable); |
|
| 958 | ||
| 959 | // but not updated_at, deleted_at |
|
| 960 | return array_values(array_diff($columns, [$this->model->getKeyName(), 'updated_at', 'deleted_at'])); |
|
| 961 | } |
|
| 962 | ||
| 963 | ||
| 964 | ||