| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function getFormFieldsHandleFieldsGroups($object, $fields) |
||
| 36 | { |
||
| 37 | foreach ($this->fieldsGroups as $group => $groupFields) { |
||
| 38 | if ($object->$group) { |
||
| 39 | $decoded_fields = json_decode($object->$group, true); |
||
| 40 | // In case that some field read the value through $item->$name |
||
| 41 | foreach($decoded_fields as $field_name => $field_value) { |
||
| 42 | $object->setAttribute($field_name, $field_value); |
||
| 43 | } |
||
| 44 | $fields = array_merge($fields, $decoded_fields); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | return $fields; |
||
| 49 | } |
||
| 62 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.