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

See #51800


git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-01-03 22:02:13 +00:00
parent 374b41ed13
commit 679ccc35e6
59 changed files with 169 additions and 169 deletions

View File

@@ -64,7 +64,7 @@ abstract class WP_Image_Editor {
* @since 3.5.0
* @abstract
*
* @return bool|WP_Error True if loaded; WP_Error on failure.
* @return true|WP_Error True if loaded; WP_Error on failure.
*/
abstract public function load();
@@ -93,7 +93,7 @@ abstract class WP_Image_Editor {
* @param int|null $max_w Image width.
* @param int|null $max_h Image height.
* @param bool $crop
* @return bool|WP_Error
* @return true|WP_Error
*/
abstract public function resize( $max_w, $max_h, $crop = false );
@@ -129,7 +129,7 @@ abstract class WP_Image_Editor {
* @param int $dst_w Optional. The destination width.
* @param int $dst_h Optional. The destination height.
* @param bool $src_abs Optional. If the source crop points are absolute.
* @return bool|WP_Error
* @return true|WP_Error
*/
abstract public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false );
@@ -140,7 +140,7 @@ abstract class WP_Image_Editor {
* @abstract
*
* @param float $angle
* @return bool|WP_Error
* @return true|WP_Error
*/
abstract public function rotate( $angle );
@@ -152,7 +152,7 @@ abstract class WP_Image_Editor {
*
* @param bool $horz Flip along Horizontal Axis
* @param bool $vert Flip along Vertical Axis
* @return bool|WP_Error
* @return true|WP_Error
*/
abstract public function flip( $horz, $vert );
@@ -163,7 +163,7 @@ abstract class WP_Image_Editor {
* @abstract
*
* @param string $mime_type The mime type of the image.
* @return bool|WP_Error True on success, WP_Error object or false on failure.
* @return true|WP_Error True on success, WP_Error object on failure.
*/
abstract public function stream( $mime_type = null );