We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 395-403 (lines=9) @@ | ||
392 | return false; |
|
393 | } |
|
394 | ||
395 | private function getColumnTypes() // DONE |
|
396 | { |
|
397 | foreach (\DB::select(\DB::raw('SHOW COLUMNS FROM '.$this->model->getTable())) as $column) |
|
398 | { |
|
399 | $this->fieldTypes[$column->Field] = ['type' => trim(preg_replace('/\(\d+\)(.*)/i', '', $column->Type)), 'default' => $column->Default]; |
|
400 | } |
|
401 | ||
402 | return $this->fieldTypes; |
|
403 | } |
|
404 | ||
405 | private function getType($field) // DONE |
|
406 | { |
@@ 861-869 (lines=9) @@ | ||
858 | * |
|
859 | * @return [array] |
|
860 | */ |
|
861 | public function getDbColumnTypes() |
|
862 | { |
|
863 | foreach (\DB::select(\DB::raw('SHOW COLUMNS FROM '.$this->model->getTable())) as $column) |
|
864 | { |
|
865 | $this->field_types[$column->Field] = ['type' => trim(preg_replace('/\(\d+\)(.*)/i', '', $column->Type)), 'default' => $column->Default]; |
|
866 | } |
|
867 | ||
868 | return $this->field_types; |
|
869 | } |
|
870 | ||
871 | ||
872 | /** |