Make WordPress Core


Ignore:
Timestamp:
09/28/2023 12:02:47 AM (21 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant ignore annotations.

This removes ignore annotations which are ignoring an error which would not be thrown for that code.

Includes tidying up the format of the ignore annotation:

  • Customary one space between the // and the start of the comment.
  • There should be no spaces in the comma-separated sniff list.

Follow-up to [45607], [47185], [49200], [53152].

Props jrf.
See #59161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/import/import.php

    r54402 r56738  
    2929        // Crude but effective: make sure there's no residual data in the main tables.
    3030        foreach ( array( 'posts', 'postmeta', 'comments', 'terms', 'term_taxonomy', 'term_relationships', 'users', 'usermeta' ) as $table ) {
    31             // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    3231            $wpdb->query( "DELETE FROM {$wpdb->$table}" );
    3332        }
Note: See TracChangeset for help on using the changeset viewer.