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-imagick.php

    r49926 r49927  
    253253         * @param int|null $max_h Image height.
    254254         * @param bool     $crop
    255          * @return bool|WP_Error
     255         * @return true|WP_Error
    256256         */
    257257        public function resize( $max_w, $max_h, $crop = false ) {
    … …  
    525525         * @param int  $dst_h   Optional. The destination height.
    526526         * @param bool $src_abs Optional. If the source crop points are absolute.
    527          * @return bool|WP_Error
     527         * @return true|WP_Error
    528528         */
    529529        public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
    … …  
    776776         *
    777777         * @param string $mime_type The mime type of the image.
    778          * @return bool|WP_Error True on success, WP_Error object on failure.
     778         * @return true|WP_Error True on success, WP_Error object on failure.
    779779         */
    780780        public function stream( $mime_type = null ) {
Note: See TracChangeset for help on using the changeset viewer.