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_verify_nonce( sanitize_key( $_POST[ ABT_NONCE ] ), ABT_ACTIONS['SET_CITATION_STYLE'] )
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

            filemtime( ABT_ROOT_PATH . $style_suffix )
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

defined( 'ABSPATH' ) || exit;

Expected 0 spaces after opening bracket; 1 found
Open

    if ( ! $post || ! is_singular() ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( ! current_user_can( 'manage_options' ) ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $options['citation_style'] = json_decode( wp_unslash( $_POST['citation_style'] ), true );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $options = json_decode( wp_json_encode( $options ) );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                    ><?php echo wp_json_encode( $data ); ?></script>
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( file_exists( ABT_ROOT_PATH . $script_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Space after opening parenthesis of function call prohibited
Open

    wp_enqueue_style( 'abt-options-page' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        <span><?php esc_html_e( "Academic Blogger's Toolkit Options", 'academic-bloggers-toolkit' ); ?></span>

Space after opening parenthesis of function call prohibited
Open

                <meta property="abt:author" content="<?php echo esc_attr( $parsed ); ?>" />
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        $bib_index = array_search( 'abt/bibliography', array_column( $blocks, 'blockName' ), true );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

        __( "Academic Blogger's Toolkit", 'academic-bloggers-toolkit' ),
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        update_option( ABT_OPTIONS_KEY, $options );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $options = json_decode( wp_json_encode( $options ) );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                    ><?php echo wp_json_encode( $data ); ?></script>
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( file_exists( ABT_ROOT_PATH . $script_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer
Severity
Category
Status
Source
Language