dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

add_action( 'the_post', __NAMESPACE__ . '\collect_bibliography' );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    if ( is_singular() ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'admin_menu', __NAMESPACE__ . '\register_options_page' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    if ( ! current_user_can( 'manage_options' ) ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( ! current_user_can( 'manage_options' ) ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces after opening bracket; newline found
Open

    if (
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( is_singular() && has_block( 'abt/bibliography', $post ) ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $blocks    = parse_blocks( $post->post_content );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'the_post', __NAMESPACE__ . '\collect_bibliography' );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        wp_enqueue_script( 'abt-frontend' );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_scripts' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_scripts' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $options = get_option( ABT_OPTIONS_KEY );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        isset( $_POST[ ABT_NONCE ], $_POST['citation_style'] ) &&
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_scripts' );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        __( "Academic Blogger's Toolkit", 'academic-bloggers-toolkit' ),
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    wp_enqueue_script( 'abt-options-page' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $author_ids   = array_merge( $author_ids, $coauthor_ids );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            add_json_script( 'abt-bibliography-json', $blocks[ $bib_index ]['innerHTML'] );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    wp_enqueue_style( 'abt-options-page' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer
Severity
Category
Status
Source
Language