Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct(ResponseInterface $response) |
||
22 | { |
||
23 | parent::__construct((integer) $response->getStatusCode()); |
||
24 | |||
25 | $this->set('headers', $response->getHeaders()); |
||
|
|||
26 | |||
27 | $this->set('stream', new Stream($response->getBody())); |
||
28 | |||
29 | $this->set('version', $response->getProtocolVersion()); |
||
30 | } |
||
32 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.