Make WordPress Core

Changeset 32546


Ignore:
Timestamp:
05/22/2015 06:17:16 AM (9 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to wp-image-editor*.php.

See #32444.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-ixr-client.php

    r30681 r32546  
    4747    }
    4848
     49    /**
     50     * @return bool
     51     */
    4952    public function query() {
    5053        $args = func_get_args();
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r31576 r32546  
    3434     * @access public
    3535     *
     36     * @param array $args
    3637     * @return boolean
    3738     */
     
    128129     * @param int $width
    129130     * @param int $height
     131     * @return true
    130132     */
    131133    protected function update_size( $width = false, $height = false ) {
     
    153155     * @param  int|null $max_h Image height.
    154156     * @param  boolean  $crop
    155      * @return boolean|WP_Error
     157     * @return true|WP_Error
    156158     */
    157159    public function resize( $max_w, $max_h, $crop = false ) {
     
    172174    }
    173175
     176    /**
     177     *
     178     * @param int $max_w
     179     * @param int $max_h
     180     * @param bool|array $crop
     181     * @return resource|WP_Error
     182     */
    174183    protected function _resize( $max_w, $max_h, $crop = false ) {
    175184        $dims = image_resize_dimensions( $this->size['width'], $this->size['height'], $max_w, $max_h, $crop );
     
    304313     *
    305314     * @param float $angle
    306      * @return boolean|WP_Error
     315     * @return true|WP_Error
    307316     */
    308317    public function rotate( $angle ) {
     
    331340     * @param boolean $horz Flip along Horizontal Axis
    332341     * @param boolean $vert Flip along Vertical Axis
    333      * @returns boolean|WP_Error
     342     * @returns true|WP_Error
    334343     */
    335344    public function flip( $horz, $vert ) {
     
    434443     *
    435444     * @param string $mime_type
     445     * @return bool
    436446     */
    437447    public function stream( $mime_type = null ) {
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r31576 r32546  
    3838     * @access public
    3939     *
     40     * @param array $args
    4041     * @return boolean
    4142     */
     
    113114     * @access protected
    114115     *
    115      * @return boolean|WP_Error True if loaded; WP_Error on failure.
     116     * @return true|WP_Error True if loaded; WP_Error on failure.
    116117     */
    117118    public function load() {
     
    157158     *
    158159     * @param int $quality Compression Quality. Range: [1,100]
    159      * @return boolean|WP_Error True if set successfully; WP_Error on failure.
     160     * @return true|WP_Error True if set successfully; WP_Error on failure.
    160161     */
    161162    public function set_quality( $quality = null ) {
     
    375376     *
    376377     * @param float $angle
    377      * @return boolean|WP_Error
     378     * @return true|WP_Error
    378379     */
    379380    public function rotate( $angle ) {
     
    406407     * @param boolean $horz Flip along Horizontal Axis
    407408     * @param boolean $vert Flip along Vertical Axis
    408      * @returns boolean|WP_Error
     409     * @returns true|WP_Error
    409410     */
    410411    public function flip( $horz, $vert ) {
     
    450451    }
    451452
     453    /**
     454     *
     455     * @param Imagick $image
     456     * @param string $filename
     457     * @param string $mime_type
     458     * @return array|WP_Error
     459     */
    452460    protected function _save( $image, $filename = null, $mime_type = null ) {
    453461        list( $filename, $extension, $mime_type ) = $this->get_output_format( $filename, $mime_type );
     
    492500     *
    493501     * @param string $mime_type
    494      * @return boolean|WP_Error
     502     * @return true|WP_Error
    495503     */
    496504    public function stream( $mime_type = null ) {
  • trunk/src/wp-includes/class-wp-image-editor.php

    r31127 r32546  
    227227     *
    228228     * @param int $quality Compression Quality. Range: [1,100]
    229      * @return boolean|WP_Error True if set successfully; WP_Error on failure.
     229     * @return true|WP_Error True if set successfully; WP_Error on failure.
    230230     */
    231231    public function set_quality( $quality = null ) {
     
    446446     *
    447447     * @param string $extension
    448      * @return string|boolean
     448     * @return string|false
    449449     */
    450450    protected static function get_mime_type( $extension = null ) {
     
    472472     *
    473473     * @param string $mime_type
    474      * @return string|boolean
     474     * @return string|false
    475475     */
    476476    protected static function get_extension( $mime_type = null ) {
Note: See TracChangeset for help on using the changeset viewer.