| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 51 | protected function handleFieldsGroups($fields) { |
||
| 52 | foreach ($this->fieldsGroups as $group => $groupFields) { |
||
| 53 | $fields[$group] = json_encode(Arr::where(Arr::only($fields, $groupFields), function ($value, $key) { |
||
| 54 | return !empty($value); |
||
| 55 | })); |
||
| 56 | Arr::forget($fields, $groupFields); |
||
| 57 | } |
||
| 58 | |||
| 59 | return $fields; |
||
| 60 | } |
||
| 62 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.