@@ -5,7 +5,6 @@ |
||
5 | 5 | use FeedItem; |
6 | 6 | use ParserOptions; |
7 | 7 | use Sanitizer; |
8 | -use SMWDIWikiPage; |
|
9 | 8 | use SMWQueryResult; |
10 | 9 | use TextContent; |
11 | 10 | use Title; |
@@ -95,7 +95,6 @@ discard block |
||
95 | 95 | * $icon should be one of: 'warning' (default), 'info'. |
96 | 96 | * |
97 | 97 | * @param array $messages |
98 | - * @param string $icon Acts like an enum. Callers must ensure safety, since this value is used directly in the output. |
|
99 | 98 | * @param string $seperator |
100 | 99 | * @param boolean $escape Should the messages be escaped or not (ie when they already are) |
101 | 100 | * |
@@ -201,7 +200,7 @@ discard block |
||
201 | 200 | * @param mixed $namespace |
202 | 201 | * @param boolean $complete |
203 | 202 | * |
204 | - * @return true |
|
203 | + * @return boolean |
|
205 | 204 | * |
206 | 205 | * @codeCoverageIgnore |
207 | 206 | */ |
@@ -47,7 +47,6 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @since 1.9 |
49 | 49 | * |
50 | - * @param array $params |
|
51 | 50 | * |
52 | 51 | * @return string|null |
53 | 52 | */ |
@@ -136,6 +135,9 @@ discard block |
||
136 | 135 | return $query; |
137 | 136 | } |
138 | 137 | |
138 | + /** |
|
139 | + * @param \SMWQuery $query |
|
140 | + */ |
|
139 | 141 | private function addQueryProfile( $query ) { |
140 | 142 | |
141 | 143 | $query->setContextPage( |
@@ -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 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @since 1.8 |
62 | 62 | * @param boolean $verbose |
63 | - * @param DatabaseBase $db used for writing |
|
63 | + * @param SMW\MediaWiki\Database $db used for writing |
|
64 | 64 | */ |
65 | 65 | protected function setupTables( $verbose, $db ) { |
66 | 66 | global $wgDBtype; |
@@ -249,6 +249,7 @@ discard block |
||
249 | 249 | * Create some initial DB entries for important built-in properties. Having the DB contents predefined |
250 | 250 | * allows us to safe DB calls when certain data is needed. At the same time, the entries in the DB |
251 | 251 | * make sure that DB-based functions work as with all other properties. |
252 | + * @param boolean $verbose |
|
252 | 253 | */ |
253 | 254 | protected function setupPredefinedProperties( $verbose, DatabaseBase $db ) { |
254 | 255 | global $wgDBtype; |
@@ -144,7 +144,6 @@ |
||
144 | 144 | /** |
145 | 145 | * Returns RequestContext object |
146 | 146 | * |
147 | - * @param array $params |
|
148 | 147 | * |
149 | 148 | * @return RequestContext |
150 | 149 | */ |
@@ -81,7 +81,6 @@ |
||
81 | 81 | * |
82 | 82 | * @since 1.6 |
83 | 83 | * |
84 | - * @param SMWQueryResult $res |
|
85 | 84 | * |
86 | 85 | * @return string |
87 | 86 | */ |
@@ -168,6 +168,9 @@ |
||
168 | 168 | return $provider; |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param \SMW\ParserOutput|null $parserOutput |
|
173 | + */ |
|
171 | 174 | private function findSemanticataFromOutput( $parserOutput ) { |
172 | 175 | |
173 | 176 | if ( method_exists( $parserOutput, 'getExtensionData' ) ) { |
@@ -147,6 +147,9 @@ |
||
147 | 147 | return $this->fetchFromParser(); |
148 | 148 | } |
149 | 149 | |
150 | + /** |
|
151 | + * @param string $text |
|
152 | + */ |
|
150 | 153 | protected function parseText( $text ) { |
151 | 154 | |
152 | 155 | $this->parserOutput = $this->parser->parse( |