dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Opening brace should be on a new line
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

    if ( 'custom' === $current_style['kind'] ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

            'style'      => get_option( ABT_OPTIONS_KEY )['citation_style'],
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

add_action( 'wp_ajax_get_style_json', __NAMESPACE__ . '\get_style_json' );
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

Expected 0 spaces after opening bracket; 1 found
Open

    if ( $issued ) {
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

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

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

Expected 0 spaces after opening bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

            if ( strlen( $value ) > 50 ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

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

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

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

    if ( $issued ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer
Severity
Category
Status
Source
Language