| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public static function toArray(DoctrineColumn $column) |
||
| 36 | { |
||
| 37 | $type = $column->getType(); |
||
| 38 | |||
| 39 | $newColumn = $column->toArray(); |
||
| 40 | $newColumn['oldName'] = $column->getName(); |
||
| 41 | $newColumn['type'] = [ |
||
| 42 | 'name' => $type->getName(), |
||
| 43 | ]; |
||
| 44 | $newColumn['null'] = $column->getNotnull() ? 'NO' : 'YES'; |
||
| 45 | $newColumn['extra'] = $column->getAutoincrement() ? 'auto_increment' : ''; |
||
| 46 | $newColumn['composite'] = false; |
||
| 47 | |||
| 48 | return $newColumn; |
||
| 49 | } |
||
| 51 |