@@ -96,6 +96,10 @@ |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | // dummy function to test trace in error handler. |
| 99 | + |
|
| 100 | + /** |
|
| 101 | + * @param ErrorHandlerTest $that |
|
| 102 | + */ |
|
| 99 | 103 | private static function triggerNotice($that) |
| 100 | 104 | { |
| 101 | 105 | // dummy variable to check for in error handler. |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * Adds a service as event listener. |
| 59 | 59 | * |
| 60 | 60 | * @param string $eventName Event for which the listener is added |
| 61 | - * @param array $callback The service ID of the listener service & the method |
|
| 61 | + * @param string[] $callback The service ID of the listener service & the method |
|
| 62 | 62 | * name that has to be called |
| 63 | 63 | * @param int $priority The higher this value, the earlier an event listener |
| 64 | 64 | * will be triggered in the chain. |
@@ -240,6 +240,9 @@ discard block |
||
| 240 | 240 | { |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | + /** |
|
| 244 | + * @param string $eventName |
|
| 245 | + */ |
|
| 243 | 246 | private function preProcess($eventName) |
| 244 | 247 | { |
| 245 | 248 | foreach ($this->dispatcher->getListeners($eventName) as $listener) { |
@@ -252,6 +255,9 @@ discard block |
||
| 252 | 255 | } |
| 253 | 256 | } |
| 254 | 257 | |
| 258 | + /** |
|
| 259 | + * @param string $eventName |
|
| 260 | + */ |
|
| 255 | 261 | private function postProcess($eventName) |
| 256 | 262 | { |
| 257 | 263 | unset($this->wrappedListeners[$eventName]); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | /** |
| 208 | 208 | * Change the owner of an array of files or directories. |
| 209 | 209 | * |
| 210 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change owner |
|
| 210 | + * @param string $files A filename, an array of files, or a \Traversable instance to change owner |
|
| 211 | 211 | * @param string $user The new owner user name |
| 212 | 212 | * @param bool $recursive Whether change the owner recursively or not |
| 213 | 213 | * |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | /** |
| 235 | 235 | * Change the group of an array of files or directories. |
| 236 | 236 | * |
| 237 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change group |
|
| 237 | + * @param string $files A filename, an array of files, or a \Traversable instance to change group |
|
| 238 | 238 | * @param string $group The group name |
| 239 | 239 | * @param bool $recursive Whether change the group recursively or not |
| 240 | 240 | * |
@@ -105,6 +105,9 @@ discard block |
||
| 105 | 105 | ); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param string $filepath |
|
| 110 | + */ |
|
| 108 | 111 | protected function getFileOwner($filepath) |
| 109 | 112 | { |
| 110 | 113 | $this->markAsSkippedIfPosixIsMissing(); |
@@ -115,6 +118,9 @@ discard block |
||
| 115 | 118 | } |
| 116 | 119 | } |
| 117 | 120 | |
| 121 | + /** |
|
| 122 | + * @param string $filepath |
|
| 123 | + */ |
|
| 118 | 124 | protected function getFileGroup($filepath) |
| 119 | 125 | { |
| 120 | 126 | $this->markAsSkippedIfPosixIsMissing(); |
@@ -273,6 +273,9 @@ discard block |
||
| 273 | 273 | return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | + /** |
|
| 277 | + * @return string |
|
| 278 | + */ |
|
| 276 | 279 | public static function mb_detect_encoding($str, $encodingList = null, $strict = false) |
| 277 | 280 | { |
| 278 | 281 | if (null === $encodingList) { |
@@ -588,6 +591,9 @@ discard block |
||
| 588 | 591 | return $code; |
| 589 | 592 | } |
| 590 | 593 | |
| 594 | + /** |
|
| 595 | + * @param boolean $part |
|
| 596 | + */ |
|
| 591 | 597 | private static function getSubpart($pos, $part, $haystack, $encoding) |
| 592 | 598 | { |
| 593 | 599 | if (false === $pos) { |
@@ -635,6 +641,9 @@ discard block |
||
| 635 | 641 | return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8'); |
| 636 | 642 | } |
| 637 | 643 | |
| 644 | + /** |
|
| 645 | + * @param string $file |
|
| 646 | + */ |
|
| 638 | 647 | private static function getData($file) |
| 639 | 648 | { |
| 640 | 649 | if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { |
@@ -100,6 +100,9 @@ |
||
| 100 | 100 | return $this->display($io, $filesInfo); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string $content |
|
| 105 | + */ |
|
| 103 | 106 | private function validate($content, $file = null) |
| 104 | 107 | { |
| 105 | 108 | $prevErrorHandler = set_error_handler(function ($level, $message, $file, $line) use (&$prevErrorHandler) { |
@@ -351,6 +351,7 @@ discard block |
||
| 351 | 351 | * |
| 352 | 352 | * @param string $scalar |
| 353 | 353 | * @param int &$i |
| 354 | + * @param integer $i |
|
| 354 | 355 | * |
| 355 | 356 | * @return string |
| 356 | 357 | * |
@@ -710,6 +711,7 @@ discard block |
||
| 710 | 711 | * @param string $value |
| 711 | 712 | * @param int &$i |
| 712 | 713 | * @param int $flags |
| 714 | + * @param integer $i |
|
| 713 | 715 | * |
| 714 | 716 | * @return null|string |
| 715 | 717 | */ |
@@ -429,6 +429,9 @@ discard block |
||
| 429 | 429 | return empty($data) ? null : $data; |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | + /** |
|
| 433 | + * @param integer $offset |
|
| 434 | + */ |
|
| 432 | 435 | private function parseBlock($offset, $yaml, $flags) |
| 433 | 436 | { |
| 434 | 437 | $skippedLineNumbers = $this->skippedLineNumbers; |
@@ -979,6 +982,7 @@ discard block |
||
| 979 | 982 | * @see preg_last_error() |
| 980 | 983 | * |
| 981 | 984 | * @internal |
| 985 | + * @param string $pattern |
|
| 982 | 986 | */ |
| 983 | 987 | public static function preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0) |
| 984 | 988 | { |