@@ -232,6 +232,9 @@ discard block |
||
232 | 232 | { |
233 | 233 | } |
234 | 234 | |
235 | + /** |
|
236 | + * @param string $eventName |
|
237 | + */ |
|
235 | 238 | private function preProcess($eventName) |
236 | 239 | { |
237 | 240 | foreach ($this->dispatcher->getListeners($eventName) as $listener) { |
@@ -244,6 +247,9 @@ discard block |
||
244 | 247 | } |
245 | 248 | } |
246 | 249 | |
250 | + /** |
|
251 | + * @param string $eventName |
|
252 | + */ |
|
247 | 253 | private function postProcess($eventName) |
248 | 254 | { |
249 | 255 | 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 | * |
@@ -78,6 +78,11 @@ discard block |
||
78 | 78 | ); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $filepath |
|
83 | + * |
|
84 | + * @return string |
|
85 | + */ |
|
81 | 86 | protected function getFileOwner($filepath) |
82 | 87 | { |
83 | 88 | $this->markAsSkippedIfPosixIsMissing(); |
@@ -88,6 +93,11 @@ discard block |
||
88 | 93 | } |
89 | 94 | } |
90 | 95 | |
96 | + /** |
|
97 | + * @param string $filepath |
|
98 | + * |
|
99 | + * @return string |
|
100 | + */ |
|
91 | 101 | protected function getFileGroup($filepath) |
92 | 102 | { |
93 | 103 | $this->markAsSkippedIfPosixIsMissing(); |
@@ -16,10 +16,19 @@ discard block |
||
16 | 16 | define('MB_CASE_LOWER', 1); |
17 | 17 | define('MB_CASE_TITLE', 2); |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $to |
|
21 | + * |
|
22 | + * @return string |
|
23 | + */ |
|
19 | 24 | function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); } |
20 | 25 | function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); } |
21 | 26 | 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 | 27 | function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); } |
28 | + |
|
29 | + /** |
|
30 | + * @param string|boolean $enc |
|
31 | + */ |
|
23 | 32 | function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); } |
24 | 33 | function mb_language($lang = null) { return p\Mbstring::mb_language($lang); } |
25 | 34 | function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); } |
@@ -47,5 +56,9 @@ discard block |
||
47 | 56 | function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); } |
48 | 57 | function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); } |
49 | 58 | function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); } |
59 | + |
|
60 | + /** |
|
61 | + * @param string $fromEncoding |
|
62 | + */ |
|
50 | 63 | 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 | 64 | } |
@@ -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')) { |
@@ -29,6 +29,11 @@ |
||
29 | 29 | /** @var bool */ |
30 | 30 | private $disableOutput; |
31 | 31 | |
32 | + /** |
|
33 | + * @param boolean $ttyMode |
|
34 | + * @param boolean $ptyMode |
|
35 | + * @param boolean $disableOutput |
|
36 | + */ |
|
32 | 37 | public function __construct($ttyMode, $ptyMode, $input, $disableOutput) |
33 | 38 | { |
34 | 39 | $this->ttyMode = (bool) $ttyMode; |
@@ -38,6 +38,9 @@ |
||
38 | 38 | /** @var bool */ |
39 | 39 | private $disableOutput; |
40 | 40 | |
41 | + /** |
|
42 | + * @param boolean $disableOutput |
|
43 | + */ |
|
41 | 44 | public function __construct($disableOutput, $input) |
42 | 45 | { |
43 | 46 | $this->disableOutput = (bool) $disableOutput; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param string|null $cwd The working directory or null to use the working dir of the current PHP process |
134 | 134 | * @param array|null $env The environment variables or null to use the same environment as the current PHP process |
135 | 135 | * @param string|null $input The input |
136 | - * @param int|float|null $timeout The timeout in seconds or null to disable |
|
136 | + * @param integer $timeout The timeout in seconds or null to disable |
|
137 | 137 | * @param array $options An array of options for proc_open |
138 | 138 | * |
139 | 139 | * @throws RuntimeException When proc_open is not installed |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | /** |
747 | 747 | * Stops the process. |
748 | 748 | * |
749 | - * @param int|float $timeout The timeout in seconds |
|
749 | + * @param integer $timeout The timeout in seconds |
|
750 | 750 | * @param int $signal A POSIX signal to send in case the process has not stop at timeout, default is SIGKILL (9) |
751 | 751 | * |
752 | 752 | * @return int The exit-code of the process |
@@ -1272,7 +1272,7 @@ discard block |
||
1272 | 1272 | /** |
1273 | 1273 | * Reads pipes for the freshest output. |
1274 | 1274 | * |
1275 | - * @param $caller The name of the method that needs fresh outputs |
|
1275 | + * @param string $caller The name of the method that needs fresh outputs |
|
1276 | 1276 | * |
1277 | 1277 | * @throws LogicException in case output has been disabled or process is not started |
1278 | 1278 | */ |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $path |
|
33 | + */ |
|
31 | 34 | private function setPath($path) |
32 | 35 | { |
33 | 36 | $this->path = getenv('PATH'); |
@@ -116,6 +119,10 @@ discard block |
||
116 | 119 | $this->assertSamePath(PHP_BINARY, $result); |
117 | 120 | } |
118 | 121 | |
122 | + /** |
|
123 | + * @param string $expected |
|
124 | + * @param string $tested |
|
125 | + */ |
|
119 | 126 | private function assertSamePath($expected, $tested) |
120 | 127 | { |
121 | 128 | if ('\\' === DIRECTORY_SEPARATOR) { |