dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

        'version'      => filemtime( ABT_ROOT_PATH . $script_suffix ),
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

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

Opening brace should be on a new line
Open

function register_script( string $relpath, array $extra_deps = [] ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $script_asset                 = file_exists( $script_asset_path ) ? require $script_asset_path : [
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 . $style_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                basename( ABT_ROOT_PATH ) . '/languages'
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        throw new \RuntimeException( 'Action already fired for JSON data with ID ' . $id );
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

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

        wp_verify_nonce( sanitize_key( $_POST[ ABT_NONCE ] ), ABT_ACTIONS['SET_CITATION_STYLE'] )
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( did_action( $action ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    $script_asset                 = file_exists( $script_asset_path ) ? require $script_asset_path : [
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    $script_asset['dependencies'] = array_merge( $script_asset['dependencies'], $extra_deps );
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                basename( ABT_ROOT_PATH ) . '/languages'
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

defined( 'ABSPATH' ) || exit;

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

                    id="<?php echo esc_attr( $id ); ?>"
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        'version'      => filemtime( ABT_ROOT_PATH . $script_suffix ),
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                        <h2><?php esc_html_e( 'Please send your feedback!', 'academic-bloggers-toolkit' ); ?></h2>
Severity
Category
Status
Source
Language