Skip to content

Commit

Permalink
Eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisBoundlessWorpdress committed Feb 9, 2024
1 parent f38e747 commit ceb1327
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions php/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,24 +560,23 @@ public function admin_page() {
}

/**
* Function check_options_and_implement to check options and integrate its purpose
* Function check_options_and_implement to check options and integrate its purpose.
*/

public function check_options_and_implement() {
$options = Options::get_options();
if ( $options['loadCustomizerCSSBlockEditor'] ) {
add_action('enqueue_block_assets', array( $this, 'enqueue_custom_css_admin' ), PHP_INT_MAX );
add_action( 'enqueue_block_assets', array( $this, 'enqueue_custom_css_admin' ), PHP_INT_MAX );
}
}
}

/**
* Function enqueue on wp-edit-blocks
* Function enqueue on wp-edit-blocks.
*/

public function enqueue_custom_css_admin() {
$custom_css = wp_get_custom_css();
if ( ! empty( $custom_css )) {
if ( ! empty( $custom_css )) {

Check failure on line 577 in php/Admin.php

View workflow job for this annotation

GitHub Actions / WPCS

No space before closing parenthesis is prohibited
wp_add_inline_style( 'wp-edit-blocks', $custom_css );
}
}
}

}

0 comments on commit ceb1327

Please sign in to comment.