Make WordPress Core

Changeset 56472


Ignore:
Timestamp:
08/25/2023 05:09:09 AM (3 years ago)
Author:
audrasjb
Message:

Docs: Improve PHPCS comments general consistency.

Props nekojonez.
See #58833.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-patterns.php

    r56063 r56472  
    469469                                        // Translate the pattern metadata.
    470470                                        $text_domain = $theme->get( 'TextDomain' );
    471                                         //phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction
     471                                        // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction
    472472                                        $pattern_data['title'] = translate_with_gettext_context( $pattern_data['title'], 'Pattern title', $text_domain );
    473473                                        if ( ! empty( $pattern_data['description'] ) ) {
    474                                                 //phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction
     474                                                // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText, WordPress.WP.I18n.NonSingularStringLiteralContext, WordPress.WP.I18n.NonSingularStringLiteralDomain, WordPress.WP.I18n.LowLevelTranslationFunction
    475475                                                $pattern_data['description'] = translate_with_gettext_context( $pattern_data['description'], 'Pattern description', $text_domain );
    476476                                        }
  • trunk/src/wp-includes/functions.php

    r56471 r56472  
    51455145        preg_match_all( $regexp, str_replace( "'", '', $input_string ), $matches );
    51465146        return strtolower( implode( '-', $matches[0] ) );
    5147         //phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
     5147        // phpcs:enable WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    51485148}
    51495149
  • trunk/tests/phpunit/includes/functions.php

    r55025 r56472  
    119119                $wpdb->termmeta,
    120120        ) as $table ) {
    121                 //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     121                // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    122122                $wpdb->query( "DELETE FROM {$table}" );
    123123        }
    … …  
    127127                $wpdb->term_taxonomy,
    128128        ) as $table ) {
    129                 //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     129                // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    130130                $wpdb->query( "DELETE FROM {$table} WHERE term_id != 1" );
    131131        }
  • trunk/tests/phpunit/includes/install.php

    r54872 r56472  
    6565$wpdb->query( 'SET foreign_key_checks = 0' );
    6666foreach ( $wpdb->tables() as $table => $prefixed_table ) {
    67         //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     67        // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    6868        $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
    6969}
    7070
    7171foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) {
    72         //phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     72        // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    7373        $wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
    7474
  • trunk/tests/phpunit/includes/testcase-xml.php

    r50283 r56472  
    7070         */
    7171        public function assertXMLEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    72                 $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
     72                $this->assertSame( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    7373        }
    7474
    … …  
    8787         * @param string $message   Optional. Message to display when the assertion fails.
    8888         */
    89         public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    90                 $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); //phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
     89        public function assertXMLNotEquals( $expectedXml, $actualXml, $message = '' ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
     90                $this->assertNotEquals( $this->normalizeXML( $expectedXml ), $this->normalizeXML( $actualXml ), $message ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase
    9191        }
    9292}
Note: See TracChangeset for help on using the changeset viewer.