Make WordPress Core


Ignore:
Timestamp:
09/08/2023 10:01:14 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove superfluous blank lines at the end of various functions.

Note: This is enforced by WPCS 3.0.0.

Follow-up to [56536], [56547].

Props jrf.
See #59161, #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/walker.php

    r56547 r56548  
    3232        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    3333        $this->assertSame( '<li>1</li>', $output );
    34 
    3534    }
    3635
     
    4746        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    4847        $this->assertSame( '<li>1</li>', $output );
    49 
    5048    }
    5149
     
    6260        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    6361        $this->assertSame( '<li>1</li>', $output );
    64 
    6562    }
    6663
     
    8279        $this->assertSame( 2, $this->walker->get_number_of_root_elements( $items ) );
    8380        $this->assertSame( '<li>1</li><li>2</li>', $output );
    84 
    8581    }
    8682
     
    10298        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    10399        $this->assertSame( '<li>1<ul><li>2</li></ul></li>', $output );
    104 
    105100    }
    106101
     
    122117        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    123118        $this->assertSame( '<li>1</li><li>2</li>', $output );
    124 
    125119    }
    126120
     
    142136        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    143137        $this->assertSame( '<li>1</li>', $output );
    144 
    145138    }
    146139
     
    166159        $this->assertSame( 1, $this->walker->get_number_of_root_elements( $items ) );
    167160        $this->assertSame( '<li>1<ul><li>2</li></ul></li>', $output );
    168 
    169161    }
    170162
     
    186178        $this->assertSame( 0, $this->walker->get_number_of_root_elements( $items ) );
    187179        $this->assertSame( '<li>1<ul><li>2</li></ul></li>', $output );
    188 
    189180    }
    190181
     
    202193        $this->assertSame( 0, $this->walker->get_number_of_root_elements( $items ) );
    203194        $this->assertSame( '<li>1</li>', $output );
    204 
    205195    }
    206196
     
    225215        // But as we've only asked for the first depth maybe nothing should be returned?
    226216        // $this->assertSame( '', $output );
    227 
    228217    }
    229218
     
    249238        $this->assertSame( 0, $this->walker->get_number_of_root_elements( $items ) );
    250239        $this->assertSame( '<li>4</li><li>5</li><li>6</li>', $output );
    251 
    252240    }
    253241
     
    283271        // Or maybe all items which are missing parents should simply be treat top level?
    284272        // $this->assertSame( '<li>4</li><li>5</li><li>6</li>', $output );
    285 
    286273    }
    287274
     
    313300
    314301        $this->assertSame( '<li>2</li>', $output );
    315 
    316302    }
    317303}
Note: See TracChangeset for help on using the changeset viewer.