dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Space after opening parenthesis of function call prohibited
Open

add_action( 'admin_menu', __NAMESPACE__ . '\register_options_page' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Opening brace should be on a new line
Open

function render_options_page() {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

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

        if ( is_int( $bib_index ) ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Space after opening parenthesis of function call prohibited
Open

    if ( function_exists( 'get_coauthors' ) ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $author_ids   = array_merge( $author_ids, $coauthor_ids );
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

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

function enqueue_scripts( string $hook ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

    foreach ( $authors as $author ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces after opening bracket; 1 found
Open

        if ( $author->first_name && $author->last_name ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    if ( is_singular() && has_block( 'abt/bibliography', $post ) ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

    wp_enqueue_script( 'codepen' );
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( function_exists( 'get_coauthors' ) ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

add_action( 'wp_head', __NAMESPACE__ . '\inject_author_meta' );
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Opening brace should be on a new line
Open

function collect_bibliography( WP_Post $post ) {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Opening brace should be on a new line
Open

function inject_author_meta() {
Severity: Minor
Found in src/php/frontend.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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