| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function template() |
||
| 14 | { |
||
| 15 | $required = $this->column->getNotnull() ? 'required' : ''; |
||
| 16 | |||
| 17 | return str_replace( |
||
| 18 | [ |
||
| 19 | '{{columnName}}', |
||
| 20 | '{{type}}', |
||
| 21 | '{{required}}', |
||
| 22 | '{{label}}', |
||
| 23 | ], |
||
| 24 | [ |
||
| 25 | $this->column->getName(), |
||
| 26 | $this->getType(), |
||
| 27 | $required, |
||
| 28 | ucfirst(str_replace('_', ' ', $this->column->getName())), |
||
| 29 | ], |
||
| 30 | $this->getFormStub('input') |
||
| 31 | ); |
||
| 34 |