We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 905-915 (lines=11) @@ | ||
902 | * |
|
903 | * @return [array] Database column names as an array. |
|
904 | */ |
|
905 | public function getDbColumnsNames() |
|
906 | { |
|
907 | // Automatically-set columns should be both in the database, and in the $fillable variable on the Eloquent Model |
|
908 | $columns = \Schema::getColumnListing($this->model->getTable()); |
|
909 | $fillable = $this->model->getFillable(); |
|
910 | ||
911 | if (!empty($fillable)) $columns = array_intersect($columns, $fillable); |
|
912 | ||
913 | // but not updated_at, deleted_at |
|
914 | return array_values(array_diff($columns, [$this->model->getKeyName(), 'updated_at', 'deleted_at'])); |
|
915 | } |
|
916 | ||
917 | ||
918 |
@@ 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 | { |