@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * |
74 | 74 | * @param string $name |
75 | 75 | * |
76 | - * @return Callable|false |
|
76 | + * @return \Closure |
|
77 | 77 | */ |
78 | 78 | public function getHandlerFor( $name ) { |
79 | 79 | return isset( $this->handlers[$name] ) ? $this->handlers[$name] : false; |
@@ -98,6 +98,9 @@ discard block |
||
98 | 98 | } |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $basePath |
|
103 | + */ |
|
101 | 104 | private function addCallbackHandlers( $basePath, $globalVars ) { |
102 | 105 | |
103 | 106 | $eventHandler = EventHandler::getInstance(); |
@@ -4,11 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use Hooks; |
6 | 6 | use Onoi\HttpRequest\HttpRequestFactory; |
7 | -use Parser; |
|
8 | 7 | use ParserHooks\HookRegistrant; |
9 | 8 | use SMW\ApplicationFactory; |
10 | 9 | use SMW\DeferredRequestDispatchManager; |
11 | -use SMW\NamespaceManager; |
|
12 | 10 | use SMW\SQLStore\QueryEngine\FulltextSearchTableFactory; |
13 | 11 | use SMW\ParserFunctions\DocumentationParserFunction; |
14 | 12 | use SMW\ParserFunctions\InfoParserFunction; |
@@ -53,8 +53,6 @@ |
||
53 | 53 | /** |
54 | 54 | * @since 1.9 |
55 | 55 | * |
56 | - * @param WikiPage $article the article edited |
|
57 | - * @param Revision $rev the new revision. Revision object |
|
58 | 56 | * @param $baseId the revision ID this was based off, if any |
59 | 57 | * @param User $user the revision author. User object |
60 | 58 | */ |
@@ -66,7 +66,7 @@ |
||
66 | 66 | /** |
67 | 67 | * @since 1.9 |
68 | 68 | * |
69 | - * @return true |
|
69 | + * @return boolean |
|
70 | 70 | */ |
71 | 71 | public function process() { |
72 | 72 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\MediaWiki\Hooks; |
4 | 4 | |
5 | 5 | use SMW\ApplicationFactory; |
6 | -use SMW\Factbox\FactboxCache; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * TitleMoveComplete occurs whenever a request to move an article |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * for all at once is not feasible hence the iterative process of creating |
87 | 87 | * batches that run through the job scheduler. |
88 | 88 | * |
89 | - * @param array|string $idList |
|
89 | + * @param boolean $idList |
|
90 | 90 | */ |
91 | 91 | private function findEmbeddedQueryTargetLinksBatches( $idList ) { |
92 | 92 |
@@ -148,6 +148,9 @@ |
||
148 | 148 | return $this->updateStore( $parserData ); |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param \SMW\ParserData $parserData |
|
153 | + */ |
|
151 | 154 | private function updateStore( $parserData ) { |
152 | 155 | |
153 | 156 | $dispatchContext = EventHandler::getInstance()->newDispatchContext(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * @since 2.1 |
63 | 63 | * |
64 | - * @param mixed $number |
|
64 | + * @param integer $number |
|
65 | 65 | * @param boolean $useForSpecialNumbers set to true for numbers like dates |
66 | 66 | * |
67 | 67 | * @return string |
@@ -89,6 +89,8 @@ discard block |
||
89 | 89 | * @param integer $offset, |
90 | 90 | * @param array $query, |
91 | 91 | * @param boolean|null $isAtTheEnd |
92 | + * @param integer $limit |
|
93 | + * @param integer $offset |
|
92 | 94 | * |
93 | 95 | * @return string |
94 | 96 | */ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @param string $text |
25 | 25 | * |
26 | - * @return Title|null |
|
26 | + * @return RedirectTargetFinder |
|
27 | 27 | */ |
28 | 28 | public function findRedirectTargetFromText( $text ) { |
29 | 29 | |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | return $this->redirectTarget instanceof Title; |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $text |
|
66 | + */ |
|
64 | 67 | private function findFromText( $text ) { |
65 | 68 | |
66 | 69 | if ( $this->hasContentHandler() ) { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | /** |
82 | 82 | * @since 2.2 |
83 | 83 | * |
84 | - * @param string $columnListClass |
|
84 | + * @param string $columnClass |
|
85 | 85 | * |
86 | 86 | * @return HtmlColumnListRenderer |
87 | 87 | */ |
@@ -182,7 +182,6 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @since 2.1 |
184 | 184 | * |
185 | - * @param string $description |
|
186 | 185 | * @param array $attributes |
187 | 186 | * |
188 | 187 | * @return HtmlFormRenderer |
@@ -217,8 +216,8 @@ discard block |
||
217 | 216 | /** |
218 | 217 | * @since 2.1 |
219 | 218 | * |
220 | - * @param $level |
|
221 | - * @param $text |
|
219 | + * @param string $level |
|
220 | + * @param string $text |
|
222 | 221 | * |
223 | 222 | * @return HtmlFormRenderer |
224 | 223 | */ |
@@ -403,6 +402,8 @@ discard block |
||
403 | 402 | * @param integer $limit, |
404 | 403 | * @param integer $offset, |
405 | 404 | * @param integer $count, |
405 | + * @param integer $limit |
|
406 | + * @param integer $offset |
|
406 | 407 | * |
407 | 408 | * @return HtmlFormRenderer |
408 | 409 | */ |