dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

        $key                   = sanitize_key( str_replace( ':', '_', $expl[1] ) );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

    foreach ( $sailthru as $node ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        if ( 'author' === $key ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( $issued->hasAttribute( 'datetime' ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

    $authors = $xpath->query( '//*[ @itemprop="author" ][ not( ancestor::*[ @itemtype="http://schema.org/Comment" ] ) ]' );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

    $abt = $xpath->query( '//meta[ starts-with( @property, "abt:" ) ]' );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

        wp_send_json_error( 'required fields not sent', 400 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

    $title = $xpath->query( '//*[ @itemprop="headline" ]' )->item( 0 );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $key   = sanitize_key( $expl[1] );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer
Severity
Category
Status
Source
Language