@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * Include plugin file if function is_plugin_active does not exist |
23 | 23 | */ |
24 | 24 | if (! function_exists('is_plugin_active')) { |
25 | - require_once(ABSPATH . '/wp-admin/includes/plugin.php'); |
|
25 | + require_once(ABSPATH . '/wp-admin/includes/plugin.php'); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public static function setup_settings_sections() { |
92 | 92 | /** |
93 | - * Setup arguments for settings sections and fields |
|
94 | - * |
|
95 | - * @see https://developer.wordpress.org/reference/functions/register_setting/ |
|
96 | - */ |
|
93 | + * Setup arguments for settings sections and fields |
|
94 | + * |
|
95 | + * @see https://developer.wordpress.org/reference/functions/register_setting/ |
|
96 | + */ |
|
97 | 97 | if ( is_admin() ) { |
98 | 98 | $arguments = array( |
99 | 99 | 'type' => 'string', |
@@ -465,8 +465,8 @@ discard block |
||
465 | 465 | ); |
466 | 466 | |
467 | 467 | /** |
468 | - * Setup arguments for sending only a single product |
|
469 | - */ |
|
468 | + * Setup arguments for sending only a single product |
|
469 | + */ |
|
470 | 470 | if ( isset( $id ) && '' !== $id ) { |
471 | 471 | $arguments = array( |
472 | 472 | 'status' => 'publish', |
@@ -483,8 +483,8 @@ discard block |
||
483 | 483 | $products = /** @scrutinizer ignore-call */ wc_get_products( $arguments ); |
484 | 484 | |
485 | 485 | if ( ! $products ) { |
486 | - return; |
|
487 | - } |
|
486 | + return; |
|
487 | + } |
|
488 | 488 | $records = array(); |
489 | 489 | $record = array(); |
490 | 490 | |
@@ -585,8 +585,8 @@ discard block |
||
585 | 585 | */ |
586 | 586 | public static function algolia_woo_indexer_settings() { |
587 | 587 | /** |
588 | - * Verify that the user can access the settings page |
|
589 | - */ |
|
588 | + * Verify that the user can access the settings page |
|
589 | + */ |
|
590 | 590 | if ( ! current_user_can( 'manage_options' ) ) { |
591 | 591 | wp_die( esc_html__( 'Action not allowed.', 'algolia_woo_indexer_settings' ) ); |
592 | 592 | } |