Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    215215        $this->assertEquals( 0, $this->walker->get_number_of_root_elements( $items ) );
    216216
    217         // It's not clear what the output of this "should" be
    218 
    219         // Currently the item is simply returned
     217        // It's not clear what the output of this "should" be.
     218
     219        // Currently the item is simply returned.
    220220        $this->assertEquals( '<li>1</li>', $output );
    221221
    222222        // But as we've only asked for the first depth maybe nothing should be returned?
    223         //$this->assertEquals( '', $output );
     223        // $this->assertEquals( '', $output );
    224224
    225225    }
     
    270270        $this->assertEquals( 0, $this->walker->get_number_of_root_elements( $items ) );
    271271
    272         // It's not clear what the output of this "should" be
    273 
    274         // Currently the first item is simply returned
     272        // It's not clear what the output of this "should" be.
     273
     274        // Currently the first item is simply returned.
    275275        $this->assertEquals( '<li>4</li>', $output );
    276276
    277277        // But as we've only asked for the first depth maybe nothing should be returned?
    278         //$this->assertEquals( '', $output );
     278        // $this->assertEquals( '', $output );
    279279
    280280        // Or maybe all items which are missing parents should simply be treat top level?
    281         //$this->assertEquals( '<li>4</li><li>5</li><li>6</li>', $output );
     281        // $this->assertEquals( '<li>4</li><li>5</li><li>6</li>', $output );
    282282
    283283    }
Note: See TracChangeset for help on using the changeset viewer.