diff --git a/src/wp-includes/block-patterns.php b/src/wp-includes/block-patterns.php index a2d90a261e43b..5c7fc59f89c00 100644 --- a/src/wp-includes/block-patterns.php +++ b/src/wp-includes/block-patterns.php @@ -468,10 +468,10 @@ function _register_theme_block_patterns() { // Translate the pattern metadata. $text_domain = $theme->get( 'TextDomain' ); - //phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction $pattern_data['title'] = translate_with_gettext_context( $pattern_data['title'], 'Pattern title', $text_domain ); if ( ! empty( $pattern_data['description'] ) ) { - //phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction $pattern_data['description'] = translate_with_gettext_context( $pattern_data['description'], 'Pattern description', $text_domain ); } diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index d76628c36b500..aa214eb4e5954 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -5144,7 +5144,7 @@ function _wp_to_kebab_case( $input_string ) { preg_match_all( $regexp, str_replace( "'", '', $input_string ), $matches ); return strtolower( implode( '-', $matches[0] ) ); - //phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase + // phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase } /** diff --git a/tests/phpunit/includes/functions.php b/tests/phpunit/includes/functions.php index 0c9dbd019f6f1..81d4339db1bf8 100644 --- a/tests/phpunit/includes/functions.php +++ b/tests/phpunit/includes/functions.php @@ -118,7 +118,7 @@ function _delete_all_data() { $wpdb->term_relationships, $wpdb->termmeta, ) as $table ) { - //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DELETE FROM {$table}" ); } @@ -126,7 +126,7 @@ function _delete_all_data() { $wpdb->terms, $wpdb->term_taxonomy, ) as $table ) { - //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DELETE FROM {$table} WHERE term_id != 1" ); } diff --git a/tests/phpunit/includes/install.php b/tests/phpunit/includes/install.php index 3157fd9384495..8a595903c78b6 100644 --- a/tests/phpunit/includes/install.php +++ b/tests/phpunit/includes/install.php @@ -64,12 +64,12 @@ $wpdb->query( 'SET foreign_key_checks = 0' ); foreach ( $wpdb->tables() as $table => $prefixed_table ) { - //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" ); } foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) { - //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" ); // We need to create references to ms global tables. diff --git a/tests/phpunit/includes/testcase-xml.php b/tests/phpunit/includes/testcase-xml.php index 253ac2c7fcd2e..9fc36ec60d968 100644 --- a/tests/phpunit/includes/testcase-xml.php +++ b/tests/phpunit/includes/testcase-xml.php @@ -69,7 +69,7 @@ public function normalizeXML( $xml, $options = 0 ) { * @param string $message Optional. Message to display when the assertion fails. */ public function assertXMLEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase - $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase + $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase } /** @@ -86,7 +86,7 @@ public function assertXMLEquals( $expectedXml, $actualXml, $message = '' ) { // * @param string $actualXml * @param string $message Optional. Message to display when the assertion fails. */ - public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase - $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase + public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase + $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase } }