| @@ -13,13 +13,14 @@ | ||
| 13 | 13 | * The payments submodule calls this function. |
| 14 | 14 | * This function exists so payments can be refunded when Authorize.Net is active. |
| 15 | 15 | * |
| 16 | 16 | * @param int $payment_id |
| 17 | + * | |
| 17 | 18 | * @return bool |
| 18 | 19 | */ |
| 19 | 20 | public static function refund_payment( $payment_id ) { |
| 20 | 21 | if ( ! class_exists( 'FrmStrpLiteConnectApiAdapter' ) ) { |
| 21 | - require dirname( __FILE__ ) . '/FrmStrpLiteConnectApiAdapter.php'; | |
| 22 | + require __DIR__ . '/FrmStrpLiteConnectApiAdapter.php'; | |
| 22 | 23 | } |
| 23 | 24 | return FrmStrpLiteConnectApiAdapter::refund_payment( $payment_id ); |
| 24 | 25 | } |
| 25 | 26 | |
| @@ -27,13 +28,14 @@ | ||
| 27 | 28 | * The payments submodule calls this function. |
| 28 | 29 | * This function exists so subscriptions can be cancelled when Authorize.Net is active. |
| 29 | 30 | * |
| 30 | 31 | * @param string $sub_id |
| 32 | + * | |
| 31 | 33 | * @return bool |
| 32 | 34 | */ |
| 33 | 35 | public static function cancel_subscription( $sub_id ) { |
| 34 | 36 | if ( ! class_exists( 'FrmStrpLiteConnectApiAdapter' ) ) { |
| 35 | - require dirname( __FILE__ ) . '/FrmStrpLiteConnectApiAdapter.php'; | |
| 37 | + require __DIR__ . '/FrmStrpLiteConnectApiAdapter.php'; | |
| 36 | 38 | } |
| 37 | 39 | return FrmStrpLiteConnectApiAdapter::cancel_subscription( $sub_id ); |
| 38 | 40 | } |
| 39 | 41 | } |