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 ( ! array_key_exists( '_abt_state', $meta ) || ! has_blocks( $post_id ) ) {
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

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

            $legacy_meta = json_decode( $meta['_abt-reflist-state'][0] );
Severity: Minor
Found in src/php/editor.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    wp_send_json( $styles );
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

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 after opening bracket; 1 found
Open

    if ( ! isset( $_POST['url'] ) ) {
Severity: Minor
Found in src/php/endpoints.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

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

function register_scripts() {

Opening brace should be on a new line
Open

function init_editor_state( int $post_id ) {
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

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

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

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

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

        $payload['issued'] = sanitize_text_field( $issued->getAttribute( 'content' ) );
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

        $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

add_action( 'wp_loaded', __NAMESPACE__ . '\register_scripts' );

Expected 0 spaces before closing bracket; 1 found
Open

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