Make WordPress Core


Ignore:
Timestamp:
11/30/2014 09:40:53 PM (10 years ago)
Author:
wonderboymusic
Message:

Add missing @params to src/wp-includes/pomo files.

See #30224.

File:
1 edited

Legend:

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

    r22349 r30663  
    5959    }
    6060
    61 
     61    /**
     62     * @param string $string
     63     * @param int    $start
     64     * @param int    $length
     65     * @return string
     66     */
    6267    function substr($string, $start, $length) {
    6368        if ($this->is_overloaded) {
     
    6873    }
    6974
     75    /**
     76     * @param string $string
     77     * @return int
     78     */
    7079    function strlen($string) {
    7180        if ($this->is_overloaded) {
     
    7685    }
    7786
     87    /**
     88     * @param string $string
     89     * @param int    $chunk_size
     90     * @return array
     91     */
    7892    function str_split($string, $chunk_size) {
    7993        if (!function_exists('str_split')) {
     
    105119if ( !class_exists( 'POMO_FileReader' ) ):
    106120class POMO_FileReader extends POMO_Reader {
     121
     122    /**
     123     * @param string $filename
     124     */
    107125    function POMO_FileReader($filename) {
    108126        parent::POMO_Reader();
     
    110128    }
    111129
     130    /**
     131     * @param int $bytes
     132     */
    112133    function read($bytes) {
    113134        return fread($this->_f, $bytes);
    114135    }
    115136
     137    /**
     138     * @param int $pos
     139     * @return boolean
     140     */
    116141    function seekto($pos) {
    117142        if ( -1 == fseek($this->_f, $pos, SEEK_SET)) {
     
    158183    }
    159184
    160 
     185    /**
     186     * @param string $bytes
     187     * @return string
     188     */
    161189    function read($bytes) {
    162190        $data = $this->substr($this->_str, $this->_pos, $bytes);
     
    166194    }
    167195
     196    /**
     197     * @param int $pos
     198     * @return int
     199     */
    168200    function seekto($pos) {
    169201        $this->_pos = $pos;
Note: See TracChangeset for help on using the changeset viewer.