This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
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
26
/**
27
* Sets the response content.
28
*
29
* We need to allow all sorts of content, not just the ones the regular Response setContent() allows
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.