dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

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

    $xpath = new \DOMXPath( $html );
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

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

Expected 0 spaces before closing bracket; 1 found
Open

        if ( ! is_int( array_search( $a, $payload['authors'], true ) ) ) {
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

            __( 'Donate', 'academic-bloggers-toolkit' )

Expected 0 spaces before closing bracket; 1 found
Open

    register_script( 'editor-stores' );

Expected 0 spaces before closing bracket; 1 found
Open

    register_script( 'frontend' );

Space after opening parenthesis of function call prohibited
Open

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

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

    $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

    $raw  = wp_remote_retrieve_body( wp_safe_remote_get( $url ) );
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

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

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

Expected 0 spaces after opening bracket; 1 found
Open

if ( is_admin() ) {

Space after opening parenthesis of function call prohibited
Open

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

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

        $state = json_decode( $meta['_abt_state'][0] );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer
Severity
Category
Status
Source
Language