| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function sendData($data): ResponseInterface |
|
| 29 | { |
||
| 30 | 1 | $this->sendRequest( |
|
| 31 | 1 | Request::METHOD_POST, |
|
| 32 | 1 | sprintf( |
|
| 33 | 1 | '/transaction/%s', |
|
| 34 | 1 | $this->getTransactionReference() |
|
| 35 | ), |
||
| 36 | 1 | $data |
|
| 37 | ); |
||
| 38 | |||
| 39 | 1 | $response = array_merge( |
|
| 40 | 1 | $this->getResponseBody(), |
|
| 41 | [ |
||
| 42 | 1 | 'statusCode' => $this->getResponse()->getStatusCode(), |
|
|
|
|||
| 43 | ] |
||
| 44 | ); |
||
| 45 | |||
| 46 | 1 | return new CompleteAuthoriseAndCaptureResponse( |
|
| 47 | 1 | $this, |
|
| 48 | 1 | $response |
|
| 49 | ); |
||
| 52 |
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.