| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public static function make(string $name, string $type) { |
||
| 19 | $column = new ColumnPattern(); |
||
| 20 | $column->name = $name; |
||
| 21 | $column->type = $type; |
||
| 22 | if(!empty(config("scaffold.columnTypes.$type"))) { |
||
| 23 | foreach(config("scaffold.columnTypes.$type") as $key => $value) { |
||
| 24 | $key = str_replace('"', "", $key); |
||
| 25 | $column->{$key} = $value; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | return $column; |
||
| 29 | } |
||
| 30 | } |