WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (17 months ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.

See #47632.

File:
1 edited

Legend:

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

    r44973 r45590  
    145145
    146146        // If the node already exists, keep any data that isn't provided.
    147         if ( $maybe_defaults = $this->get_node( $args['id'] ) ) {
     147        $maybe_defaults = $this->get_node( $args['id'] );
     148        if ( $maybe_defaults ) {
    148149            $defaults = get_object_vars( $maybe_defaults );
    149150        }
     
    184185     */
    185186    final public function get_node( $id ) {
    186         if ( $node = $this->_get_node( $id ) ) {
     187        $node = $this->_get_node( $id );
     188        if ( $node ) {
    187189            return clone $node;
    188190        }
     
    211213     */
    212214    final public function get_nodes() {
    213         if ( ! $nodes = $this->_get_nodes() ) {
     215        $nodes = $this->_get_nodes();
     216        if ( ! $nodes ) {
    214217            return;
    215218        }
     
    313316
    314317            // Fetch the parent node. If it isn't registered, ignore the node.
    315             if ( ! $parent = $this->_get_node( $node->parent ) ) {
     318            $parent = $this->_get_node( $node->parent );
     319            if ( ! $parent ) {
    316320                continue;
    317321            }
Note: See TracChangeset for help on using the changeset viewer.