Make WordPress Core


Ignore:
Timestamp:
06/27/2015 01:02:12 AM (9 years ago)
Author:
wonderboymusic
Message:

For doc block types, favor bool over the few remaining booleans

See #32444.

File:
1 edited

Legend:

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

    r32650 r32964  
    8888     * @access protected
    8989     *
    90      * @return boolean|WP_Error True if loaded successfully; WP_Error on failure.
     90     * @return bool|WP_Error True if loaded successfully; WP_Error on failure.
    9191     */
    9292    public function load() {
     
    161161     * @param  int|null $max_w Image width.
    162162     * @param  int|null $max_h Image height.
    163      * @param  boolean  $crop
     163     * @param  bool     $crop
    164164     * @return true|WP_Error
    165165     */
     
    273273     * @access public
    274274     *
    275      * @param int $src_x The start x position to crop from.
    276      * @param int $src_y The start y position to crop from.
    277      * @param int $src_w The width to crop.
    278      * @param int $src_h The height to crop.
    279      * @param int $dst_w Optional. The destination width.
    280      * @param int $dst_h Optional. The destination height.
    281      * @param boolean $src_abs Optional. If the source crop points are absolute.
    282      * @return boolean|WP_Error
     275     * @param int  $src_x  The start x position to crop from.
     276     * @param int  $src_y  The start y position to crop from.
     277     * @param int  $src_w  The width to crop.
     278     * @param int  $src_h  The height to crop.
     279     * @param int  $dst_w  Optional. The destination width.
     280     * @param int  $dst_h  Optional. The destination height.
     281     * @param bool $src_abs Optional. If the source crop points are absolute.
     282     * @return bool|WP_Error
    283283     */
    284284    public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
     
    345345     * @access public
    346346     *
    347      * @param boolean $horz Flip along Horizontal Axis
    348      * @param boolean $vert Flip along Vertical Axis
     347     * @param bool $horz Flip along Horizontal Axis
     348     * @param bool $vert Flip along Vertical Axis
    349349     * @returns true|WP_Error
    350350     */
     
    477477     * @param callable $function
    478478     * @param array $arguments
    479      * @return boolean
     479     * @return bool
    480480     */
    481481    protected function make_image( $filename, $function, $arguments ) {
Note: See TracChangeset for help on using the changeset viewer.