dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Opening brace should be on a new line
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

    $url  = esc_url_raw( wp_unslash( $_POST['url'] ) );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $url  = esc_url_raw( wp_unslash( $_POST['url'] ) );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $raw  = wp_remote_retrieve_body( wp_safe_remote_get( $url ) );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

    $meta = get_post_meta( $post_id );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

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

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

Expected 0 spaces before closing 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

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

Opening brace should be on a new line
Open

function ajax_nonce() {

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

    $state = init_editor_state( $post->ID );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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