| Conditions | 7 |
| Paths | 5 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function makeField(array $field, Column $column): array |
||
| 19 | { |
||
| 20 | if ($field['field'] === ColumnName::REMEMBER_TOKEN && $column->getLength() === 100 && !$column->getFixed()) { |
||
| 21 | $field['type'] = ColumnType::REMEMBER_TOKEN; |
||
| 22 | $field['field'] = null; |
||
| 23 | $field['args'] = []; |
||
| 24 | |||
| 25 | return $field; |
||
| 26 | } |
||
| 27 | |||
| 28 | if ($column->getFixed()) { |
||
| 29 | $field['type'] = ColumnType::CHAR; |
||
| 30 | } |
||
| 31 | |||
| 32 | if ($column->getLength() && $column->getLength() !== Builder::$defaultStringLength) { |
||
| 33 | $field['args'][] = $column->getLength(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return $field; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |