| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | $this->gateway = $gateway; |
| 27 | 27 | add_action('woocommerce_api_paypluggateway', [$this, 'handle_ipn_response']); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function handle_ipn_response() | |
| 30 | + public function handle_ipn_response(): void | |
| 31 | 31 | { |
| 32 | 32 | $input = file_get_contents('php://input'); |
| 33 | 33 | |
| 34 | 34 | try { |
| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | * @throws \WC_Data_Exception |
| 73 | 73 | * |
| 74 | 74 | * @return void |
| 75 | 75 | */ |
| 76 | - public function process_payment_resource($resource, $save_request = true) | |
| 76 | + public function process_payment_resource($resource, $save_request = true): void | |
| 77 | 77 | { |
| 78 | 78 | $lock_id = \Payplug\PayplugWoocommerce\Helper\Lock::handle_insert($save_request, $resource->id); |
| 79 | 79 | if (!$lock_id) { |
| 80 | 80 | return; |
| @@ -94,9 +94,9 @@ | ||
| 94 | 94 | * Process refund notification. |
| 95 | 95 | * |
| 96 | 96 | * @param $resource |
| 97 | 97 | */ |
| 98 | - public function process_refund_resource($resource) | |
| 98 | + public function process_refund_resource($resource): void | |
| 99 | 99 | { |
| 100 | 100 | $this->gateway->response->process_refund($resource); |
| 101 | 101 | } |
| 102 | 102 | } |