PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | src/Admin/Notices.php +3 -3 2.18.0 → 3.1.0 View file →
@@ -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'] : '';