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/image/resize.php

    r46586 r47122  
    4242                $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.png', 25, 25 );
    4343
    44                 if ( ! is_string( $image ) ) {  // WP_Error, stop GLib-GObject-CRITICAL assertion
     44                if ( ! is_string( $image ) ) {  // WP_Error, stop GLib-GObject-CRITICAL assertion.
    4545                        $this->fail( sprintf( 'No PNG support in the editor engine %s on this system', $this->editor_engine ) );
    4646                }
     
    5858                $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.gif', 25, 25 );
    5959
    60                 if ( ! is_string( $image ) ) {  // WP_Error, stop GLib-GObject-CRITICAL assertion
     60                if ( ! is_string( $image ) ) {  // WP_Error, stop GLib-GObject-CRITICAL assertion.
    6161                        $this->fail( sprintf( 'No GIF support in the editor engine %s on this system', $this->editor_engine ) );
    6262                }
     
    7272
    7373        function test_resize_larger() {
    74                 // image_resize() should refuse to make an image larger
     74                // image_resize() should refuse to make an image larger.
    7575                $image = $this->resize_helper( DIR_TESTDATA . '/images/test-image.jpg', 100, 100 );
    7676
Note: See TracChangeset for help on using the changeset viewer.