dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
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

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

Expected 0 spaces after opening bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

function enqueue_scripts() {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Opening brace should be on a new line
Open

function register_options_page() {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
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

                <meta property="abt:author" content="<?php echo esc_attr( $parsed ); ?>" />
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

    if ( 'settings_page_abt-options' !== $hook ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            get_coauthors( $post->ID )
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $bib_index = array_search( 'abt/bibliography', array_column( $blocks, 'blockName' ), true );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
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 Options", '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( 'codepen' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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