From 283c82b6b408e8f2e12ea879a9003340fad5db75 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 27 Jul 2020 22:42:15 -0300 Subject: [PATCH] Fixed coding standards --- includes/admin/class-wc-admin-pointers.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/admin/class-wc-admin-pointers.php b/includes/admin/class-wc-admin-pointers.php index c4020b7f928..d73fcc310c7 100644 --- a/includes/admin/class-wc-admin-pointers.php +++ b/includes/admin/class-wc-admin-pointers.php @@ -2,10 +2,8 @@ /** * Adds and controls pointers for contextual help/tutorials * - * @author WooThemes - * @category Admin - * @package WooCommerce/Admin - * @version 2.4.0 + * @package WooCommerce\Admin\Pointers + * @version 2.4.0 */ if ( ! defined( 'ABSPATH' ) ) { @@ -28,7 +26,9 @@ class WC_Admin_Pointers { * Setup pointers for screen. */ public function setup_pointers_for_screen() { - if ( ! $screen = get_current_screen() ) { + $screen = get_current_screen(); + + if ( ! $screen ) { return; } @@ -43,7 +43,7 @@ class WC_Admin_Pointers { * Pointers for creating a product. */ public function create_product_tutorial() { - if ( ! isset( $_GET['tutorial'] ) || ! current_user_can( 'manage_options' ) ) { + if ( ! isset( $_GET['tutorial'] ) || ! current_user_can( 'manage_options' ) ) { // phpcs:ignore return; } // These pointers will chain - they will not be shown at once. @@ -218,7 +218,7 @@ class WC_Admin_Pointers { /** * Enqueue pointers and add script to page. * - * @param array $pointers + * @param array $pointers Pointers data. */ public function enqueue_pointers( $pointers ) { $pointers = rawurlencode( wp_json_encode( $pointers ) );