dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

    $issued = $xpath->query( '//meta[ @name="pubdate" ]' )->item( 0 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $payload['issued'] = sanitize_text_field( $issued->getAttribute( 'content' ) );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        filemtime( ABT_ROOT_PATH . '/vendor/citeproc.js' ),

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'admin_head-post.php', __NAMESPACE__ . '\ajax_nonce' );

Space after opening parenthesis of function call prohibited
Open

    add_json_script( 'abt-editor-state', $state );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( ! array_key_exists( '_abt_state', $meta ) || ! has_blocks( $post_id ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    check_ajax_referer( 'abt-ajax' );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( ! isset( $_POST['url'] ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( ! isset( $_POST['url'] ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    register_script( 'editor-stores' );

Expected 0 spaces before closing bracket; 1 found
Open

    register_script( 'options-page' );

Space after opening parenthesis of function call prohibited
Open

        window._abt_nonce = '<?php echo esc_html( wp_create_nonce( 'abt-ajax' ) ); ?>'

Space after opening parenthesis of function call prohibited
Open

add_action( 'admin_head-post-new.php', __NAMESPACE__ . '\ajax_nonce' );

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'admin_head-settings_page_abt-options', __NAMESPACE__ . '\ajax_nonce' );

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

    if ( ! array_key_exists( '_abt_state', $meta ) || ! has_blocks( $post_id ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( ! array_key_exists( '_abt_state', $meta ) || ! has_blocks( $post_id ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

            $legacy_meta = json_decode( $meta['_abt-reflist-state'][0] );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $current_style = get_option( ABT_OPTIONS_KEY )['citation_style'];
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    wp_send_json( $styles );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer
Severity
Category
Status
Source
Language