| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | public function hydrate($model, $data) { |
||
| 60 | // attributes |
||
| 61 | $attribs = isset($data['attributes']) ? $data['attributes'] : []; |
||
| 62 | |||
| 63 | $model = HydrateUtils::hydrate($attribs, $model, ['key', 'value', 'module_id']); |
||
| 64 | |||
| 65 | // relationships |
||
| 66 | $this->hydrateRelationships($model, $data); |
||
| 67 | |||
| 68 | return $model; |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.