dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

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

Opening brace should be on a new line
Open

function add_json_script( string $id, $data ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        if ( in_array( 'wp-i18n', $script_asset['dependencies'], true ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

                            return array_key_exists( $id, $registered_styles );
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces after opening bracket; 1 found
Open

        if ( in_array( 'wp-i18n', $script_asset['dependencies'], true ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        if ( in_array( 'wp-i18n', $script_asset['dependencies'], true ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

        update_option( ABT_OPTIONS_KEY, $options );
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

Expected 0 spaces after opening bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
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['dependencies'] = array_merge( $script_asset['dependencies'], $extra_deps );
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 . $script_suffix ) ) {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Opening brace should be on a new line
Open

function get_citation_styles() {
Severity: Minor
Found in src/php/utils.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

                            return array_key_exists( $id, $registered_styles );
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

        $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

        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

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