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_enqueue_script( 'abt-editor' );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

add_filter( 'plugin_row_meta', __NAMESPACE__ . '\add_donate_link', 10, 2 );

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Opening brace should be on a new line
Open

function get_website_meta() {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

    libxml_use_internal_errors( true );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    libxml_use_internal_errors( true );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $html->loadHTML( $raw );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

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

add_filter( 'plugin_row_meta', __NAMESPACE__ . '\add_donate_link', 10, 2 );

Space after opening parenthesis of function call prohibited
Open

    register_script( 'frontend' );

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

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

defined( 'ABSPATH' ) || exit;
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

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

    $html->loadHTML( $raw );
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
Severity
Category
Status
Source
Language