@@ -325,7 +325,7 @@ |
||
325 | 325 | * Changes the input value before trying to use it, if necessary. |
326 | 326 | * Can be overridden to handle special cases. |
327 | 327 | * |
328 | - * @param mixed $time |
|
328 | + * @param string $time |
|
329 | 329 | * An input value, which could be a timestamp, a string, |
330 | 330 | * or an array of date parts. |
331 | 331 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * |
50 | 50 | * $diff = new Diff($lines1, $lines2); |
51 | 51 | * $rev = $diff->reverse(); |
52 | - * @return object A Diff object representing the inverse of the |
|
52 | + * @return Diff A Diff object representing the inverse of the |
|
53 | 53 | * original diff. |
54 | 54 | */ |
55 | 55 | public function reverse() { |
@@ -156,6 +156,9 @@ |
||
156 | 156 | return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
157 | 157 | } |
158 | 158 | |
159 | + /** |
|
160 | + * @param string $header |
|
161 | + */ |
|
159 | 162 | protected function _start_block($header) { |
160 | 163 | if ($this->show_header) { |
161 | 164 | echo $header . "\n"; |
@@ -164,6 +164,7 @@ discard block |
||
164 | 164 | * of the two files do not match, and likewise that the last lines do not |
165 | 165 | * match. The caller must trim matching lines from the beginning and end |
166 | 166 | * of the portions it is going to specify. |
167 | + * @param double $nchunks |
|
167 | 168 | */ |
168 | 169 | protected function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) { |
169 | 170 | $flip = FALSE; |
@@ -284,6 +285,8 @@ discard block |
||
284 | 285 | * |
285 | 286 | * Note that XLIM, YLIM are exclusive bounds. |
286 | 287 | * All line numbers are origin-0 and discarded lines are not counted. |
288 | + * @param integer $xoff |
|
289 | + * @param integer $yoff |
|
287 | 290 | */ |
288 | 291 | protected function _compareseq($xoff, $xlim, $yoff, $ylim) { |
289 | 292 |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * MSGCTXT (when items closely follow each other). |
244 | 244 | * |
245 | 245 | * @return |
246 | - * FALSE if an error was logged, NULL otherwise. The errors are considered |
|
246 | + null|false FALSE if an error was logged, NULL otherwise. The errors are considered |
|
247 | 247 | * non-blocking, so reading can continue, while the errors are collected |
248 | 248 | * for later presentation. |
249 | 249 | */ |
@@ -546,11 +546,11 @@ discard block |
||
546 | 546 | /** |
547 | 547 | * Parses a string in quotes. |
548 | 548 | * |
549 | - * @param $string |
|
549 | + * @param string $string |
|
550 | 550 | * A string specified with enclosing quotes. |
551 | 551 | * |
552 | 552 | * @return |
553 | - * The string parsed from inside the quotes. |
|
553 | + false|string The string parsed from inside the quotes. |
|
554 | 554 | */ |
555 | 555 | function parseQuoted($string) { |
556 | 556 | if (substr($string, 0, 1) != substr($string, -1, 1)) { |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | * An array of strings containing a comment. |
581 | 581 | * |
582 | 582 | * @return |
583 | - * Short one-string version of the comment. |
|
583 | + string Short one-string version of the comment. |
|
584 | 584 | */ |
585 | 585 | private function shortenComments($comment) { |
586 | 586 | $comm = ''; |
@@ -126,7 +126,7 @@ |
||
126 | 126 | * @param int $mode |
127 | 127 | * The mode, permissions, the directory should have. |
128 | 128 | * |
129 | - * @return bool |
|
129 | + * @return boolean|null |
|
130 | 130 | * TRUE if the directory exists or has been created, FALSE otherwise. |
131 | 131 | */ |
132 | 132 | protected function ensureDirectory($directory, $mode = 0777) { |
@@ -212,6 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | /** |
214 | 214 | * Clears PHP's stat cache and returns the directory's mtime. |
215 | + * @param string $directory |
|
215 | 216 | */ |
216 | 217 | protected function getUncachedMTime($directory) { |
217 | 218 | clearstatcache(TRUE, $directory); |
@@ -221,9 +222,9 @@ discard block |
||
221 | 222 | /** |
222 | 223 | * A brute force tempnam implementation supporting streams. |
223 | 224 | * |
224 | - * @param $directory |
|
225 | + * @param string $directory |
|
225 | 226 | * The directory where the temporary filename will be created. |
226 | - * @param $prefix |
|
227 | + * @param string $prefix |
|
227 | 228 | * The prefix of the generated temporary filename. |
228 | 229 | * @return string |
229 | 230 | * Returns the new temporary filename (with path), or FALSE on failure. |
@@ -240,6 +240,7 @@ discard block |
||
240 | 240 | * Fetches from the cache backend, respecting the use caches flag. |
241 | 241 | * |
242 | 242 | * @see \Drupal\Core\Cache\CacheBackendInterface::get() |
243 | + * @param string $cid |
|
243 | 244 | */ |
244 | 245 | protected function cacheGet($cid) { |
245 | 246 | if ($this->useCaches && $this->cacheBackend) { |
@@ -252,6 +253,7 @@ discard block |
||
252 | 253 | * Stores data in the persistent cache, respecting the use caches flag. |
253 | 254 | * |
254 | 255 | * @see \Drupal\Core\Cache\CacheBackendInterface::set() |
256 | + * @param string $cid |
|
255 | 257 | */ |
256 | 258 | protected function cacheSet($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) { |
257 | 259 | if ($this->cacheBackend && $this->useCaches) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | /** |
207 | 207 | * Look up the generic replacement for a UTF-8 character code. |
208 | 208 | * |
209 | - * @param $code |
|
209 | + * @param integer $code |
|
210 | 210 | * The UTF-8 character code. |
211 | 211 | * @param string $unknown_character |
212 | 212 | * (optional) The character to substitute for characters without entries in |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * transliterations in this language. The character codes can be for any valid |
238 | 238 | * Unicode character, independent of the number of bytes. |
239 | 239 | * |
240 | - * @param $langcode |
|
240 | + * @param string $langcode |
|
241 | 241 | * Code for the language to read. |
242 | 242 | */ |
243 | 243 | protected function readLanguageOverrides($langcode) { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | * transliterations of these characters into US-ASCII. Note that the maximum |
267 | 267 | * Unicode character that can be encoded in this way is 4 bytes. |
268 | 268 | * |
269 | - * @param $bank |
|
269 | + * @param integer $bank |
|
270 | 270 | * First two bytes of the Unicode character, or 0 for the ASCII range. |
271 | 271 | */ |
272 | 272 | protected function readGenericData($bank) { |