| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | View Code Duplication | public function __construct($data = null, int $status = 200, array $headers = [], bool $json = false) |
|
| 16 | { |
||
| 17 | parent::__construct('', $status, $headers); |
||
| 18 | 13 | ||
| 19 | if (null === $data) { |
||
| 20 | 13 | $data = new \ArrayObject(); |
|
| 21 | } |
||
| 22 | 13 | ||
| 23 | $this->setContent($data); |
||
| 24 | } |
||
| 25 | |||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.