@@ -592,6 +592,9 @@ |
||
592 | 592 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
593 | 593 | } |
594 | 594 | |
595 | + /** |
|
596 | + * @param string $expected |
|
597 | + */ |
|
595 | 598 | protected function generateOutput($expected) |
596 | 599 | { |
597 | 600 | $count = substr_count($expected, "\n"); |
@@ -101,6 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | /** |
103 | 103 | * {@inheritdoc} |
104 | + * @param string $eventName |
|
104 | 105 | */ |
105 | 106 | public function getListenerPriority($eventName, $listener) |
106 | 107 | { |
@@ -232,6 +233,9 @@ discard block |
||
232 | 233 | { |
233 | 234 | } |
234 | 235 | |
236 | + /** |
|
237 | + * @param string $eventName |
|
238 | + */ |
|
235 | 239 | private function preProcess($eventName) |
236 | 240 | { |
237 | 241 | foreach ($this->dispatcher->getListeners($eventName) as $listener) { |
@@ -244,6 +248,9 @@ discard block |
||
244 | 248 | } |
245 | 249 | } |
246 | 250 | |
251 | + /** |
|
252 | + * @param string $eventName |
|
253 | + */ |
|
247 | 254 | private function postProcess($eventName) |
248 | 255 | { |
249 | 256 | unset($this->wrappedListeners[$eventName]); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | /** |
205 | 205 | * Change the owner of an array of files or directories. |
206 | 206 | * |
207 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change owner |
|
207 | + * @param string $files A filename, an array of files, or a \Traversable instance to change owner |
|
208 | 208 | * @param string $user The new owner user name |
209 | 209 | * @param bool $recursive Whether change the owner recursively or not |
210 | 210 | * |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Change the group of an array of files or directories. |
233 | 233 | * |
234 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change group |
|
234 | + * @param string $files A filename, an array of files, or a \Traversable instance to change group |
|
235 | 235 | * @param string $group The group name |
236 | 236 | * @param bool $recursive Whether change the group recursively or not |
237 | 237 | * |
@@ -16,10 +16,23 @@ discard block |
||
16 | 16 | define('MB_CASE_LOWER', 1); |
17 | 17 | define('MB_CASE_TITLE', 2); |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $to |
|
21 | + */ |
|
19 | 22 | function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); } |
20 | 23 | function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); } |
24 | + |
|
25 | + /** |
|
26 | + * @param string $s |
|
27 | + * @param string $charset |
|
28 | + * @param string $transferEnc |
|
29 | + */ |
|
21 | 30 | function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); } |
22 | 31 | function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); } |
32 | + |
|
33 | + /** |
|
34 | + * @param string|boolean $enc |
|
35 | + */ |
|
23 | 36 | function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); } |
24 | 37 | function mb_language($lang = null) { return p\Mbstring::mb_language($lang); } |
25 | 38 | function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); } |
@@ -28,17 +41,33 @@ discard block |
||
28 | 41 | function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); } |
29 | 42 | function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); } |
30 | 43 | function mb_parse_str($s, &$result = array()) { parse_str($s, $result); } |
44 | + |
|
45 | + /** |
|
46 | + * @param string $enc |
|
47 | + */ |
|
31 | 48 | function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); } |
32 | 49 | function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); } |
33 | 50 | function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); } |
51 | + |
|
52 | + /** |
|
53 | + * @param string $s |
|
54 | + */ |
|
34 | 55 | function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); } |
35 | 56 | function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); } |
57 | + |
|
58 | + /** |
|
59 | + * @param string $enc |
|
60 | + */ |
|
36 | 61 | function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); } |
37 | 62 | function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); } |
38 | 63 | function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); } |
39 | 64 | function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); } |
40 | 65 | function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); } |
41 | 66 | function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); } |
67 | + |
|
68 | + /** |
|
69 | + * @param string $s |
|
70 | + */ |
|
42 | 71 | function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); } |
43 | 72 | function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); } |
44 | 73 | function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); } |
@@ -47,5 +76,9 @@ discard block |
||
47 | 76 | function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); } |
48 | 77 | function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); } |
49 | 78 | function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); } |
79 | + |
|
80 | + /** |
|
81 | + * @param string $fromEncoding |
|
82 | + */ |
|
50 | 83 | function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $v0, $a, $b, $c, $d, $e, $f); } |
51 | 84 | } |
@@ -267,6 +267,9 @@ discard block |
||
267 | 267 | return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); |
268 | 268 | } |
269 | 269 | |
270 | + /** |
|
271 | + * @return string |
|
272 | + */ |
|
270 | 273 | public static function mb_detect_encoding($str, $encodingList = null, $strict = false) |
271 | 274 | { |
272 | 275 | if (null === $encodingList) { |
@@ -528,6 +531,9 @@ discard block |
||
528 | 531 | return $contents; |
529 | 532 | } |
530 | 533 | |
534 | + /** |
|
535 | + * @param boolean $part |
|
536 | + */ |
|
531 | 537 | private static function getSubpart($pos, $part, $haystack, $encoding) |
532 | 538 | { |
533 | 539 | if (false === $pos) { |
@@ -575,6 +581,9 @@ discard block |
||
575 | 581 | return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8'); |
576 | 582 | } |
577 | 583 | |
584 | + /** |
|
585 | + * @param string $file |
|
586 | + */ |
|
578 | 587 | private static function getData($file) |
579 | 588 | { |
580 | 589 | if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.ser')) { |
@@ -132,6 +132,9 @@ discard block |
||
132 | 132 | return $a; |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param boolean $isNested |
|
137 | + */ |
|
135 | 138 | public static function castFrameStub(FrameStub $frame, array $a, Stub $stub, $isNested) |
136 | 139 | { |
137 | 140 | if (!$isNested) { |
@@ -183,6 +186,11 @@ discard block |
||
183 | 186 | return $a; |
184 | 187 | } |
185 | 188 | |
189 | + /** |
|
190 | + * @param string $xClass |
|
191 | + * @param string $xPrefix |
|
192 | + * @param integer $filter |
|
193 | + */ |
|
186 | 194 | private static function filterExceptionArray($xClass, array $a, $xPrefix, $filter) |
187 | 195 | { |
188 | 196 | if (isset($a[$xPrefix.'trace'])) { |
@@ -208,6 +216,9 @@ discard block |
||
208 | 216 | return $a; |
209 | 217 | } |
210 | 218 | |
219 | + /** |
|
220 | + * @param integer $srcContext |
|
221 | + */ |
|
211 | 222 | private static function extractSource(array $srcArray, $line, $srcContext) |
212 | 223 | { |
213 | 224 | $src = array(); |
@@ -47,6 +47,8 @@ discard block |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * {@inheritdoc} |
50 | + * @param string $output |
|
51 | + * @param string $charset |
|
50 | 52 | */ |
51 | 53 | public function __construct($output = null, $charset = null) |
52 | 54 | { |
@@ -99,6 +101,7 @@ discard block |
||
99 | 101 | |
100 | 102 | /** |
101 | 103 | * {@inheritdoc} |
104 | + * @param resource $output |
|
102 | 105 | */ |
103 | 106 | public function dump(Data $data, $output = null) |
104 | 107 | { |
@@ -427,6 +430,7 @@ discard block |
||
427 | 430 | |
428 | 431 | /** |
429 | 432 | * {@inheritdoc} |
433 | + * @param integer $depth |
|
430 | 434 | */ |
431 | 435 | protected function dumpLine($depth, $endOfValue = false) |
432 | 436 | { |
@@ -19,6 +19,9 @@ |
||
19 | 19 | */ |
20 | 20 | trait VarDumperTestTrait |
21 | 21 | { |
22 | + /** |
|
23 | + * @param string $dump |
|
24 | + */ |
|
22 | 25 | public function assertDumpEquals($dump, $data, $message = '') |
23 | 26 | { |
24 | 27 | $this->assertSame(rtrim($dump), $this->getDump($data), $message); |