Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function __construct(RequestInterface $request, $data) |
||
24 | { |
||
25 | $this->request = $request; |
||
26 | $this->data = $data; |
||
27 | |||
28 | if ($this->getHash() !== $this->calculateHash()) { |
||
29 | throw new InvalidResponseException('Invalid hash'); |
||
30 | } |
||
31 | |||
32 | if ($this->request->getTestMode() !== $this->getTestMode()) { |
||
33 | throw new InvalidResponseException('Invalid test mode'); |
||
34 | } |
||
35 | } |
||
36 | |||
42 |
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.