| Total Complexity | 9 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait HandleFieldsGroups |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param \A17\Twill\Models\Model|null $object |
||
| 12 | * @param array $fields |
||
| 13 | * @return array |
||
| 14 | */ |
||
| 15 | 27 | public function prepareFieldsBeforeSaveHandleFieldsGroups($object, $fields) |
|
|
|
|||
| 16 | { |
||
| 17 | 27 | return $this->handleFieldsGroups($fields); |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \A17\Twill\Models\Model|null $object |
||
| 22 | * @param array $fields |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | 22 | public function prepareFieldsBeforeCreateHandleFieldsGroups($fields) |
|
| 26 | { |
||
| 27 | 22 | return $this->handleFieldsGroups($fields); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param \A17\Twill\Models\Model $object |
||
| 32 | * @param array $fields |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | 5 | public function getFormFieldsHandleFieldsGroups($object, $fields) |
|
| 49 | } |
||
| 50 | |||
| 51 | 28 | protected function handleFieldsGroups($fields) { |
|
| 67 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.