mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 08:10:04 +00:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user