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

    r32800 r32964  
    4444     *
    4545     * @param array $args
    46      * @return boolean
     46     * @return bool
    4747     */
    4848    public static function test( $args = array() ) {
     
    9494     *
    9595     * @param string $mime_type
    96      * @return boolean
     96     * @return bool
    9797     */
    9898    public static function supports_mime_type( $mime_type ) {
     
    234234     * @param  int|null $max_w Image width.
    235235     * @param  int|null $max_h Image height.
    236      * @param  boolean  $crop
    237      * @return boolean|WP_Error
     236     * @param  bool     $crop
     237     * @return bool|WP_Error
    238238     */
    239239    public function resize( $max_w, $max_h, $crop = false ) {
     
    339339     * @access public
    340340     *
    341      * @param int $src_x The start x position to crop from.
    342      * @param int $src_y The start y position to crop from.
    343      * @param int $src_w The width to crop.
    344      * @param int $src_h The height to crop.
    345      * @param int $dst_w Optional. The destination width.
    346      * @param int $dst_h Optional. The destination height.
    347      * @param boolean $src_abs Optional. If the source crop points are absolute.
    348      * @return boolean|WP_Error
     341     * @param int  $src_x The start x position to crop from.
     342     * @param int  $src_y The start y position to crop from.
     343     * @param int  $src_w The width to crop.
     344     * @param int  $src_h The height to crop.
     345     * @param int  $dst_w Optional. The destination width.
     346     * @param int  $dst_h Optional. The destination height.
     347     * @param bool $src_abs Optional. If the source crop points are absolute.
     348     * @return bool|WP_Error
    349349     */
    350350    public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) {
     
    412412     * @access public
    413413     *
    414      * @param boolean $horz Flip along Horizontal Axis
    415      * @param boolean $vert Flip along Vertical Axis
     414     * @param bool $horz Flip along Horizontal Axis
     415     * @param bool $vert Flip along Vertical Axis
    416416     * @returns true|WP_Error
    417417     */
Note: See TracChangeset for help on using the changeset viewer.