| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | * Enqueue PayPlug notice style. |
| 32 | 32 | * |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function admin_enqueue_scripts() | |
| 35 | + public function admin_enqueue_scripts(): void | |
| 36 | 36 | { |
| 37 | 37 | $api_key = json_decode($this->options, true); |
| 38 | 38 | $test_key = !empty($api_key['test']) ? $api_key['test'] : ''; |
| 39 | 39 | $live_key = !empty($api_key['live']) ? $api_key['live'] : ''; |
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | * Display admin notices. |
| 52 | 52 | * |
| 53 | 53 | * @return void |
| 54 | 54 | */ |
| 55 | - public function admin_notices() | |
| 55 | + public function admin_notices(): void | |
| 56 | 56 | { |
| 57 | 57 | if (!current_user_can('manage_woocommerce')) { |
| 58 | 58 | return; |
| 59 | 59 | } |
| @@ -83,9 +83,9 @@ | ||
| 83 | 83 | |
| 84 | 84 | $this->display_notice(); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - public function display_notice() | |
| 87 | + public function display_notice(): void | |
| 88 | 88 | { |
| 89 | 89 | $testmode = isset($this->options['mode']) && !(bool) $this->options['mode']; |
| 90 | 90 | $api_key = json_decode($this->options, true); |
| 91 | 91 | $test_key = !empty($api_key['test']) ? $api_key['test'] : ''; |