dsifford/academic-bloggers-toolkit

View on GitHub

Showing 1,811 of 1,811 total issues

Expected 0 spaces before closing bracket; 1 found
Open

        if ( 'author' === $key ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

    if ( is_null( $state ) ) {
Severity: Minor
Found in src/php/endpoints.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces between opening bracket and type hint "WP_Post"; 1 found
Open

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

Expected 0 spaces between opening bracket and type hint "string"; 1 found
Open

function enqueue_scripts( string $hook ) {
Severity: Minor
Found in src/php/options.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

Expected 1 space after FUNCTION keyword; 0 found
Open

            function( $coauthor ) {
Severity: Minor
Found in src/php/frontend.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

Expected 0 spaces between opening bracket and argument "$coauthor"; 1 found
Open

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

Expected 0 spaces between argument "$coauthor" and closing bracket; 1 found
Open

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

Space found before closing bracket of FOREACH loop
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

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

Expected 0 spaces between argument "$hook" and closing bracket; 1 found
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

    if ( 'settings_page_abt-options' !== $hook ) {
Severity: Minor
Found in src/php/options.php by phpcodesniffer

Space found after opening bracket of FOREACH loop
Open

    foreach ( $authors as $author ) {
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 between argument "$post" and closing bracket; 1 found
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

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

Expected 0 spaces before closing bracket; 1 found
Open

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