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/formatting/StripSlashesDeep.php

    r46586 r47122  
    2020            'd' => 'foo',
    2121        );
    22         $arr['e'] = $arr; // Add a sub-array
    23         $this->assertEquals( $arr, stripslashes_deep( $arr ) ); // Keyed array
    24         $this->assertEquals( array_values( $arr ), stripslashes_deep( array_values( $arr ) ) ); // Non-keyed
     22        $arr['e'] = $arr; // Add a sub-array.
     23        $this->assertEquals( $arr, stripslashes_deep( $arr ) ); // Keyed array.
     24        $this->assertEquals( array_values( $arr ), stripslashes_deep( array_values( $arr ) ) ); // Non-keyed.
    2525
    2626        $obj = new stdClass;
     
    3636        $this->assertEquals( $new, stripslashes_deep( $old ) );
    3737        $this->assertEquals( $new, stripslashes_deep( "I can\\'t see, isn\\'t that it?" ) );
    38         $this->assertEquals( array( 'a' => $new ), stripslashes_deep( array( 'a' => $old ) ) ); // Keyed array
    39         $this->assertEquals( array( $new ), stripslashes_deep( array( $old ) ) ); // Non-keyed
     38        $this->assertEquals( array( 'a' => $new ), stripslashes_deep( array( 'a' => $old ) ) ); // Keyed array.
     39        $this->assertEquals( array( $new ), stripslashes_deep( array( $old ) ) ); // Non-keyed.
    4040
    4141        $obj_old    = new stdClass;
Note: See TracChangeset for help on using the changeset viewer.