Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 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/option/option.php

    r46586 r47122  
    1919        $this->assertTrue( add_option( $key, $value ) );
    2020        $this->assertEquals( $value, get_option( $key ) );
    21         $this->assertFalse( add_option( $key, $value ) );  // Already exists
    22         $this->assertFalse( update_option( $key, $value ) );  // Value is the same
     21        $this->assertFalse( add_option( $key, $value ) );    // Already exists.
     22        $this->assertFalse( update_option( $key, $value ) ); // Value is the same.
    2323        $this->assertTrue( update_option( $key, $value2 ) );
    2424        $this->assertEquals( $value2, get_option( $key ) );
     
    5555        remove_filter( 'default_option_doesnotexist', array( $this, '__return_foo' ) );
    5656
    57         // Cleanup
     57        // Cleanup.
    5858        $this->assertTrue( delete_option( 'doesnotexist' ) );
    5959        $this->assertFalse( get_option( 'doesnotexist' ) );
Note: See TracChangeset for help on using the changeset viewer.