dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Expected 0 spaces before closing bracket; 1 found
Open

            wp_slash( wp_json_encode( $state ) ),
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_action( 'wp_ajax_get_style_json', __NAMESPACE__ . '\get_style_json' );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    if ( ! extension_loaded( 'dom' ) || ! extension_loaded( 'libxml' ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

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

        $a = explode( ' ', sanitize_text_field( $node->getAttribute( 'content' ) ), 2 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $a = explode( ' ', sanitize_text_field( $node->getAttribute( 'content' ) ), 2 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        if ( ! is_int( array_search( $a, $payload['authors'], true ) ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    register_script( 'options-page' );

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

function register_metadata() {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                return current_user_can( 'edit_posts' );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( array_key_exists( '_abt-reflist-state', $meta ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            wp_slash( wp_json_encode( $state ) ),
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        wp_send_json_error( [], 501 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        wp_send_json_error( [], 400 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $xpath = new \DOMXPath( $html );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    foreach ( $authors as $node ) {
Severity: Minor
Found in src/php/endpoints.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

Expected 0 spaces after opening bracket; 1 found
Open

        if ( array_key_exists( '_abt-reflist-state', $meta ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

            foreach ( $legacy_meta->CSL as $id => $data ) { // phpcs:ignore
Severity: Minor
Found in src/php/editor.php by phpcodesniffer
Severity
Category
Status
Source
Language