Make WordPress Core


Ignore:
Timestamp:
05/31/2015 03:17:50 AM (10 years ago)
Author:
wonderboymusic
Message:

Add doc blocks to functions that are missing them.
If the function has no need for @param or @return, do an archeaological dig to find @since.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/streams.php

    r31829 r32672  
    102102    }
    103103
    104 
     104    /**
     105     * @return int
     106     */
    105107    function pos() {
    106108        return $this->_pos;
    107109    }
    108110
     111    /**
     112     * @return true
     113     */
    109114    function is_resource() {
    110115        return true;
    111116    }
    112117
     118    /**
     119     * @return true
     120     */
    113121    function close() {
    114122        return true;
     
    147155    }
    148156
     157    /**
     158     * @return bool
     159     */
    149160    function is_resource() {
    150161        return is_resource($this->_f);
    151162    }
    152163
     164    /**
     165     * @return bool
     166     */
    153167    function feof() {
    154168        return feof($this->_f);
    155169    }
    156170
     171    /**
     172     * @return bool
     173     */
    157174    function close() {
    158175        return fclose($this->_f);
    159176    }
    160177
     178    /**
     179     * @return string
     180     */
    161181    function read_all() {
    162182        $all = '';
     
    204224    }
    205225
     226    /**
     227     * @return int
     228     */
    206229    function length() {
    207230        return $this->strlen($this->_str);
    208231    }
    209232
     233    /**
     234     * @return string
     235     */
    210236    function read_all() {
    211237        return $this->substr($this->_str, $this->_pos, $this->strlen($this->_str));
Note: See TracChangeset for help on using the changeset viewer.