dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

    $text = __( 'Plugin Settings', 'academic-bloggers-toolkit' );

Expected 0 spaces before closing bracket; 1 found
Open

    $url  = admin_url( 'options-general.php?page=abt-options' );

Expected 0 spaces before closing bracket; 1 found
Open

add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), __NAMESPACE__ . '\add_options_link' );

Expected 0 spaces after opening bracket; 1 found
Open

    if ( plugin_basename( __FILE__ ) === $file ) {

Expected 0 spaces before closing bracket; 1 found
Open

    if ( plugin_basename( __FILE__ ) === $file ) {

Expected 0 spaces before closing bracket; 1 found
Open

defined( 'ABSPATH' ) || exit;

Expected 0 spaces before closing bracket; 1 found
Open

define( 'ABT_ROOT_URI', plugins_url( '', __FILE__ ) );

Space after opening parenthesis of function call prohibited
Open

    if ( version_compare( ABT_VERSION, $options['VERSION'] ?? '0', '>' ) ) {

Space after opening parenthesis of function call prohibited
Open

define( 'ABT_ROOT_URI', plugins_url( '', __FILE__ ) );

Opening brace should be on a new line
Open

function uninstall() {

Expected 0 spaces after opening bracket; 1 found
Open

    if ( version_compare( ABT_VERSION, $options['VERSION'] ?? '0', '>' ) ) {

Expected 0 spaces before closing bracket; 1 found
Open

        update_option( ABT_OPTIONS_KEY, $new_options );

Opening brace should be on a new line
Open

function add_donate_link( array $links, string $file ): array {

Space after opening parenthesis of function call prohibited
Open

define( 'ABT_NONCE', 'abt_nonce' );

Space after opening parenthesis of function call prohibited
Open

define( 'ABT_VERSION', '{{VERSION}}' );

Space after opening parenthesis of function call prohibited
Open

    return array_merge( $links, [ "<a href='$url'>$text</a>" ] );

Space after opening parenthesis of function call prohibited
Open

add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), __NAMESPACE__ . '\add_options_link' );

Space after opening parenthesis of function call prohibited
Open

add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), __NAMESPACE__ . '\add_options_link' );

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'wp_loaded', __NAMESPACE__ . '\register_scripts' );

Expected 0 spaces before closing bracket; 1 found
Open

defined( 'ABSPATH' ) || exit;
Severity: Minor
Found in src/php/editor.php by phpcodesniffer
Severity
Category
Status
Source
Language