@@ -43,6 +43,9 @@ |
||
| 43 | 43 | /** @var string The version vector. */ |
| 44 | 44 | private $version = ''; |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $version |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct($version = null, Description $description = null) |
| 47 | 50 | { |
| 48 | 51 | Assert::nullOrStringNotEmpty($version); |
@@ -219,6 +219,9 @@ |
||
| 219 | 219 | return $arguments; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | + /** |
|
| 223 | + * @return string |
|
| 224 | + */ |
|
| 222 | 225 | private static function stripRestArg($argument) |
| 223 | 226 | { |
| 224 | 227 | if (strpos($argument, '...') === 0) { |
@@ -31,6 +31,10 @@ |
||
| 31 | 31 | /** @var int|null The number of lines, relative to the starting line. NULL means "to the end". */ |
| 32 | 32 | private $lineCount = null; |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param integer $startingLine |
|
| 36 | + * @param integer $lineCount |
|
| 37 | + */ |
|
| 34 | 38 | public function __construct($startingLine, $lineCount = null, Description $description = null) |
| 35 | 39 | { |
| 36 | 40 | Assert::integerish($startingLine); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @param object|string $docblock A string containing the DocBlock to parse or an object supporting the |
|
| 66 | + * @param \ReflectionClass $docblock A string containing the DocBlock to parse or an object supporting the |
|
| 67 | 67 | * getDocComment method (such as a ReflectionClass object). |
| 68 | 68 | * @param Types\Context $context |
| 69 | 69 | * @param Location $location |
@@ -103,6 +103,10 @@ discard block |
||
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param integer $tagName |
|
| 108 | + * @param string $handler |
|
| 109 | + */ |
|
| 106 | 110 | public function registerTagHandler($tagName, $handler) |
| 107 | 111 | { |
| 108 | 112 | $this->tagFactory->registerTagHandler($tagName, $handler); |
@@ -254,7 +258,7 @@ discard block |
||
| 254 | 258 | } |
| 255 | 259 | |
| 256 | 260 | /** |
| 257 | - * @param $tags |
|
| 261 | + * @param string $tags |
|
| 258 | 262 | * @return string |
| 259 | 263 | */ |
| 260 | 264 | private function filterTagBlock($tags) |
@@ -270,6 +270,9 @@ discard block |
||
| 270 | 270 | return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | + /** |
|
| 274 | + * @return string |
|
| 275 | + */ |
|
| 273 | 276 | public static function mb_detect_encoding($str, $encodingList = null, $strict = false) |
| 274 | 277 | { |
| 275 | 278 | if (null === $encodingList) { |
@@ -574,6 +577,9 @@ discard block |
||
| 574 | 577 | return $code; |
| 575 | 578 | } |
| 576 | 579 | |
| 580 | + /** |
|
| 581 | + * @param boolean $part |
|
| 582 | + */ |
|
| 577 | 583 | private static function getSubpart($pos, $part, $haystack, $encoding) |
| 578 | 584 | { |
| 579 | 585 | if (false === $pos) { |
@@ -621,6 +627,9 @@ discard block |
||
| 621 | 627 | return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8'); |
| 622 | 628 | } |
| 623 | 629 | |
| 630 | + /** |
|
| 631 | + * @param string $file |
|
| 632 | + */ |
|
| 624 | 633 | private static function getData($file) |
| 625 | 634 | { |
| 626 | 635 | if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { |
@@ -64,6 +64,7 @@ |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | + * @param string $content |
|
| 67 | 68 | * @return string Path to the new file |
| 68 | 69 | */ |
| 69 | 70 | private function createFile($content) |
@@ -561,7 +561,7 @@ |
||
| 561 | 561 | /** |
| 562 | 562 | * Return an array of fields which can be exported. |
| 563 | 563 | * |
| 564 | - * @return array |
|
| 564 | + * @return string[] |
|
| 565 | 565 | * @deprecated 1.9 Use toObject() |
| 566 | 566 | */ |
| 567 | 567 | public function getExportableValues() { |
@@ -561,7 +561,7 @@ |
||
| 561 | 561 | /** |
| 562 | 562 | * Return an array of fields which can be exported. |
| 563 | 563 | * |
| 564 | - * @return array |
|
| 564 | + * @return string[] |
|
| 565 | 565 | * @deprecated 1.9 Use toObject() |
| 566 | 566 | */ |
| 567 | 567 | public function getExportableValues() { |
@@ -724,6 +724,9 @@ |
||
| 724 | 724 | $this->message = $this->StripSlashes($_POST['message']); |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | + /** |
|
| 728 | + * @param string $error |
|
| 729 | + */ |
|
| 727 | 730 | function add_error($error) |
| 728 | 731 | { |
| 729 | 732 | array_push($this->errors,$error); |