| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function get_payment_details(array $transaction) |
||
| 18 | { |
||
| 19 | if (empty($transaction['payKey']) AND empty($transaction['trackingId'])) |
||
| 20 | throw new Exception('You must provide either "payKey" or "trackingId" to PaymentDetails API operation.'); |
||
| 21 | |||
| 22 | return $this->payment_details($transaction); |
||
| 23 | } |
||
| 24 | |||
| 44 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.