| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | View Code Duplication | public function jsonSerialize() |
|
| 38 | { |
||
| 39 | $return = (array) $this; |
||
| 40 | $return = array_filter($return, function ($value, $key) { |
||
|
|
|||
| 41 | return !is_null($value); |
||
| 42 | }, ARRAY_FILTER_USE_BOTH); |
||
| 43 | return $return; |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.