| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function sync($gatewayName, callable $closure) |
||
| 17 | { |
||
| 18 | $gateway = $this->getGateway($gatewayName); |
||
|
|
|||
| 19 | $storage = $this->getStorage(); |
||
| 20 | $payment = $storage->create(); |
||
| 21 | $closure($payment, $gatewayName, $storage, $this->getPayum()); |
||
| 22 | |||
| 23 | $request = new Sync($payment); |
||
| 24 | $convert = new Convert($payment, 'array', $request->getToken()); |
||
| 25 | $gateway->execute($convert); |
||
| 26 | $payment->setDetails($convert->getResult()); |
||
| 27 | $gateway->execute($request); |
||
| 28 | |||
| 29 | return $request->getModel(); |
||
| 30 | } |
||
| 31 | } |
||
| 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.