| @@ -26,10 +26,10 @@ | ||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | // Register the actions if the cookie notice message is turned on. |
| 29 | 29 | if ( $this->get_option( 'patchstack_enable_cookie_notice_message', false ) == true ) { |
| 30 | - add_action( 'wp_footer', array( $this, 'add_cookie_notice' ), 1000 ); | |
| 31 | - add_action( 'wp_enqueue_scripts', array( $this, 'public_styles' ) ); | |
| 30 | + add_action( 'wp_footer', [ $this, 'add_cookie_notice' ], 1000 ); | |
| 31 | + add_action( 'wp_enqueue_scripts', [ $this, 'public_styles' ] ); | |
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| @@ -46,8 +46,8 @@ | ||
| 46 | 46 | * |
| 47 | 47 | * @return void |
| 48 | 48 | */ |
| 49 | 49 | public function public_styles() { |
| 50 | - wp_enqueue_style( 'patchstack', $this->plugin->url . 'assets/css/public.min.css', array(), $this->plugin->version ); | |
| 51 | - wp_enqueue_script( 'patchstack', $this->plugin->url . 'assets/js/public.min.js', array(), $this->plugin->version ); | |
| 50 | + wp_enqueue_style( 'patchstack', $this->plugin->url . 'assets/css/public.min.css', [], $this->plugin->version ); | |
| 51 | + wp_enqueue_script( 'patchstack', $this->plugin->url . 'assets/js/public.min.js', [], $this->plugin->version ); | |
| 52 | 52 | } |
| 53 | 53 | } |