| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 4 | protected function prepareAdd($field, $isLast = false) |
|
| 18 | { |
||
| 19 | 4 | $field = trim($field); |
|
| 20 | $textArr = [ |
||
| 21 | 4 | " ->add('", |
|
| 22 | 4 | $field, |
|
| 23 | 4 | "', null", |
|
| 24 | 4 | ", trans('datatable." . strtolower($field) . "')", |
|
| 25 | 4 | ")", |
|
| 26 | 4 | ($isLast) ? "" : "\n" |
|
| 27 | ]; |
||
| 28 | |||
| 29 | 4 | return join('', $textArr); |
|
| 30 | } |
||
| 32 |