mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 14:44:37 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -68,7 +68,6 @@ class Tests_DB_dbDelta extends WP_UnitTestCase {
|
||||
$wpdb->prepare(
|
||||
"
|
||||
CREATE TABLE {$wpdb->prefix}dbdelta_test (" .
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||
'id bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
column_1 varchar(255) NOT NULL,
|
||||
column_2 text,
|
||||
|
||||
@@ -28,7 +28,6 @@ class Tests_Import_Import extends WP_Import_UnitTestCase {
|
||||
global $wpdb;
|
||||
// Crude but effective: make sure there's no residual data in the main tables.
|
||||
foreach ( array( 'posts', 'postmeta', 'comments', 'terms', 'term_taxonomy', 'term_relationships', 'users', 'usermeta' ) as $table ) {
|
||||
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||
$wpdb->query( "DELETE FROM {$wpdb->$table}" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user