We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 815-823 (lines=9) @@ | ||
812 | * |
|
813 | * @return [array] |
|
814 | */ |
|
815 | public function getDbColumnTypes() |
|
816 | { |
|
817 | foreach (\DB::select(\DB::raw('SHOW COLUMNS FROM '.$this->model->getTable())) as $column) |
|
818 | { |
|
819 | $this->field_types[$column->Field] = ['type' => trim(preg_replace('/\(\d+\)(.*)/i', '', $column->Type)), 'default' => $column->Default]; |
|
820 | } |
|
821 | ||
822 | return $this->field_types; |
|
823 | } |
|
824 | ||
825 | ||
826 | /** |
@@ 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 | { |