| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Chargeback extends ApiResource |
||
| 8 | { |
||
| 9 | const OBJECT_NAME = 'chargebacks'; |
||
| 10 | |||
| 11 | use ApiOperations\All; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $reference |
||
| 15 | * @param array $params |
||
| 16 | * @return array|object |
||
| 17 | * @link https://developer.flutterwave.com/reference#validate-otp-1 |
||
| 18 | */ |
||
| 19 | public static function fetch(string $reference, array $params) |
||
|
|
|||
| 20 | { |
||
| 21 | $url = static::buildQueryString("", $params); |
||
| 22 | |||
| 23 | return static::staticRequest('GET', $url); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $chargeBackId |
||
| 28 | * @return array|object |
||
| 29 | * @link https://developer.flutterwave.com/reference#acceptdecline-a-chargeback |
||
| 30 | */ |
||
| 31 | public static function accept(string $chargeBackId) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $chargeBackId |
||
| 43 | * @return array|object |
||
| 44 | * @link https://developer.flutterwave.com/reference#acceptdecline-a-chargeback |
||
| 45 | */ |
||
| 46 | public static function decline(string $chargeBackId) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.