@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * @param string $return_value current return value |
| 158 | 158 | * @param array $params hook parameters |
| 159 | 159 | * |
| 160 | - * @return array |
|
| 160 | + * @return string |
|
| 161 | 161 | */ |
| 162 | 162 | function widget_manager_register_widget_menu($hook_name, $entity_type, $return_value, $params) { |
| 163 | 163 | $widget = $params['entity']; |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | * @param string $return_value current return value |
| 249 | 249 | * @param array $params hook parameters |
| 250 | 250 | * |
| 251 | - * @return array |
|
| 251 | + * @return string |
|
| 252 | 252 | */ |
| 253 | 253 | function widget_manager_register_extras_menu($hook_name, $entity_type, $return_value, $params) { |
| 254 | 254 | if (!elgg_is_logged_in()) { |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | * @param string $return_value current return value |
| 340 | 340 | * @param array $params hook parameters |
| 341 | 341 | * |
| 342 | - * @return boolean |
|
| 342 | + * @return boolean|string |
|
| 343 | 343 | */ |
| 344 | 344 | function widget_manager_widget_layout_permissions_check($hook_name, $entity_type, $return_value, $params) { |
| 345 | 345 | $page_owner = elgg_extract("page_owner", $params); |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | * @param string $return_value current return value |
| 578 | 578 | * @param array $params hook parameters |
| 579 | 579 | * |
| 580 | - * @return boolean |
|
| 580 | + * @return string|boolean |
|
| 581 | 581 | */ |
| 582 | 582 | function widget_manager_permissions_check_site_hook_handler($hook_name, $entity_type, $return_value, $params) { |
| 583 | 583 | $user = elgg_extract("user", $params); |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | * @param string $return_value current return value |
| 603 | 603 | * @param array $params hook parameters |
| 604 | 604 | * |
| 605 | - * @return boolean |
|
| 605 | + * @return string|boolean |
|
| 606 | 606 | */ |
| 607 | 607 | function widget_manager_permissions_check_object_hook_handler($hook_name, $entity_type, $return_value, $params) { |
| 608 | 608 | $user = elgg_extract("user", $params); |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | * @param bool $return_value current return value |
| 726 | 726 | * @param array $params hook parameters |
| 727 | 727 | * |
| 728 | - * @return bool |
|
| 728 | + * @return boolean|null |
|
| 729 | 729 | */ |
| 730 | 730 | function widget_manager_all_widget_settings_hook_handler($hook_name, $entity_type, $return_value, $params) { |
| 731 | 731 | if (empty($params) || !is_array($params)) { |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | * interface is passed as alias then every time that interface is requested the provided service will be returned. |
| 52 | 52 | * |
| 53 | 53 | * @param object $service |
| 54 | - * @param string $alias |
|
| 55 | 54 | * |
| 56 | 55 | * @return void |
| 57 | 56 | */ |
@@ -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); |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace phpDocumentor\Reflection\DocBlock\Tags; |
| 14 | 14 | |
| 15 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
| 16 | - |
|
| 17 | 15 | /** |
| 18 | 16 | * Reflection class for a {@}example tag in a Docblock. |
| 19 | 17 | */ |
@@ -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) |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace My\Example; |
| 4 | 4 | |
| 5 | -use Mockery as m; |
|
| 6 | 5 | use phpDocumentor\Reflection\Types; |
| 7 | 6 | |
| 8 | 7 | class Classy |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Prophecy\Comparator; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | use Prophecy\Prophet; |
| 8 | 7 | |
| 9 | 8 | class ProphecyComparatorSpec extends ObjectBehavior |