From bc936748c323ee837ba6e9d020d721101f79a382 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Fri, 9 Nov 2012 20:10:33 +0000 Subject: [PATCH] Minor WP_Image_Editor documentation fixes. See #6821. git-svn-id: https://develop.svn.wordpress.org/trunk@22511 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-image-editor.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-includes/class-wp-image-editor.php b/wp-includes/class-wp-image-editor.php index 05665b63fd..4c227a2686 100644 --- a/wp-includes/class-wp-image-editor.php +++ b/wp-includes/class-wp-image-editor.php @@ -30,7 +30,7 @@ abstract class WP_Image_Editor { * * @param string $path Path to File to Load * @param array $required_methods Methods to require in implementation - * @return WP_Image_Editor|WP_Error|boolean + * @return WP_Image_Editor|WP_Error */ public final static function get_instance( $path = null, $required_methods = null ) { $implementation = apply_filters( 'wp_image_editor_class', self::choose_implementation( $required_methods ), $path ); @@ -54,8 +54,7 @@ abstract class WP_Image_Editor { * @since 3.5.0 * @access private * - * @param $required_methods Array String array of all methods required for implementation returned. - * + * @param array $required_methods String array of all methods required for implementation returned. * @return string|bool Class name for the first editor that claims to support the request. False if no editor claims to support the request. */ private final static function choose_implementation( $required_methods = null ) { @@ -103,7 +102,7 @@ abstract class WP_Image_Editor { * @access public * @abstract * - * @param $args array + * @param array $args * @return boolean */ public static function test( $args = null ) { @@ -181,7 +180,7 @@ abstract class WP_Image_Editor { * @access protected * * @param string $filename - * @param type $mime_type + * @param string $mime_type * @return array { filename|null, extension, mime-type } */ protected function get_output_format( $filename = null, $mime_type = null ) { @@ -359,4 +358,4 @@ abstract class WP_Image_Editor { return $extensions[0]; } -} \ No newline at end of file +}