| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public static function unserialize(Serializer $serializer, $className, array $value) |
||
| 44 | { |
||
| 45 | $ref = new ReflectionClass($className); |
||
| 46 | |||
| 47 | foreach ($value as &$v) { |
||
| 48 | if (\is_array($v)) { |
||
| 49 | $v = $serializer->unserialize($v); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 | return $ref->newInstanceArgs($value); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.