@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | private $file; |
| 34 | 34 | private $line; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param integer $statusCode |
|
| 38 | + */ |
|
| 36 | 39 | public static function create(\Exception $exception, $statusCode = null, array $headers = array()) |
| 37 | 40 | { |
| 38 | 41 | $e = new static(); |
@@ -107,6 +110,9 @@ discard block |
||
| 107 | 110 | return $this->class; |
| 108 | 111 | } |
| 109 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $class |
|
| 115 | + */ |
|
| 110 | 116 | public function setClass($class) |
| 111 | 117 | { |
| 112 | 118 | $this->class = $class; |
@@ -117,6 +123,9 @@ discard block |
||
| 117 | 123 | return $this->file; |
| 118 | 124 | } |
| 119 | 125 | |
| 126 | + /** |
|
| 127 | + * @param string $file |
|
| 128 | + */ |
|
| 120 | 129 | public function setFile($file) |
| 121 | 130 | { |
| 122 | 131 | $this->file = $file; |
@@ -127,6 +136,9 @@ discard block |
||
| 127 | 136 | return $this->line; |
| 128 | 137 | } |
| 129 | 138 | |
| 139 | + /** |
|
| 140 | + * @param integer $line |
|
| 141 | + */ |
|
| 130 | 142 | public function setLine($line) |
| 131 | 143 | { |
| 132 | 144 | $this->line = $line; |
@@ -137,6 +149,9 @@ discard block |
||
| 137 | 149 | return $this->message; |
| 138 | 150 | } |
| 139 | 151 | |
| 152 | + /** |
|
| 153 | + * @param string $message |
|
| 154 | + */ |
|
| 140 | 155 | public function setMessage($message) |
| 141 | 156 | { |
| 142 | 157 | $this->message = $message; |
@@ -183,6 +198,10 @@ discard block |
||
| 183 | 198 | $this->setTrace($exception->getTrace(), $exception->getFile(), $exception->getLine()); |
| 184 | 199 | } |
| 185 | 200 | |
| 201 | + /** |
|
| 202 | + * @param string $file |
|
| 203 | + * @param integer $line |
|
| 204 | + */ |
|
| 186 | 205 | public function setTrace($trace, $file, $line) |
| 187 | 206 | { |
| 188 | 207 | $this->trace = array(); |
@@ -36,6 +36,10 @@ discard block |
||
| 36 | 36 | private $caughtLength; |
| 37 | 37 | private $fileLinkFormat; |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $charset |
|
| 41 | + * @param string $fileLinkFormat |
|
| 42 | + */ |
|
| 39 | 43 | public function __construct($debug = true, $charset = null, $fileLinkFormat = null) |
| 40 | 44 | { |
| 41 | 45 | $this->debug = $debug; |
@@ -332,6 +336,10 @@ discard block |
||
| 332 | 336 | EOF; |
| 333 | 337 | } |
| 334 | 338 | |
| 339 | + /** |
|
| 340 | + * @param string $content |
|
| 341 | + * @param string $css |
|
| 342 | + */ |
|
| 335 | 343 | private function decorate($content, $css) |
| 336 | 344 | { |
| 337 | 345 | return <<<EOF |
@@ -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) { |