Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor.php

    r49230 r49927  
    6565         * @abstract
    6666         *
    67          * @return bool|WP_Error True if loaded; WP_Error on failure.
     67         * @return true|WP_Error True if loaded; WP_Error on failure.
    6868         */
    6969        abstract public function load();
     
    9494         * @param int|null $max_h Image height.
    9595         * @param bool     $crop
    96          * @return bool|WP_Error
     96         * @return true|WP_Error
    9797         */
    9898        abstract public function resize( $max_w, $max_h, $crop = false );
     
    130130         * @param int  $dst_h   Optional. The destination height.
    131131         * @param bool $src_abs Optional. If the source crop points are absolute.
    132          * @return bool|WP_Error
     132         * @return true|WP_Error
    133133         */
    134134        abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
     
    141141         *
    142142         * @param float $angle
    143          * @return bool|WP_Error
     143         * @return true|WP_Error
    144144         */
    145145        abstract public function rotate( $angle );
     
    153153         * @param bool $horz Flip along Horizontal Axis
    154154         * @param bool $vert Flip along Vertical Axis
    155          * @return bool|WP_Error
     155         * @return true|WP_Error
    156156         */
    157157        abstract public function flip( $horz, $vert );
     
    164164         *
    165165         * @param string $mime_type The mime type of the image.
    166          * @return bool|WP_Error True on success, WP_Error object or false on failure.
     166         * @return true|WP_Error True on success, WP_Error object on failure.
    167167         */
    168168        abstract public function stream( $mime_type = null );
Note: See TracChangeset for help on using the changeset viewer.