Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term.php

    r41162 r42343  
    144144                }
    145145
    146             // If only one match was found, it's the one we want.
     146                // If only one match was found, it's the one we want.
    147147            } elseif ( 1 === count( $terms ) ) {
    148148                $_term = reset( $terms );
    149149
    150             // Otherwise, the term must be shared between taxonomies.
     150                // Otherwise, the term must be shared between taxonomies.
    151151            } else {
    152152                // If the term is shared only with invalid taxonomies, return the one valid term.
     
    233233    public function __get( $key ) {
    234234        switch ( $key ) {
    235             case 'data' :
    236                 $data = new stdClass();
     235            case 'data':
     236                $data    = new stdClass();
    237237                $columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' );
    238238                foreach ( $columns as $column ) {
Note: See TracChangeset for help on using the changeset viewer.