@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * |
170 | 170 | * @param string $identifer |
171 | 171 | * |
172 | - * @return false|integer |
|
172 | + * @return string |
|
173 | 173 | */ |
174 | 174 | public static function getIdByAbbreviation( $identifer ) { |
175 | 175 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * |
194 | 194 | * @param integer $identifer |
195 | 195 | * |
196 | - * @return false|string |
|
196 | + * @return string |
|
197 | 197 | */ |
198 | 198 | public static function getAbbreviationById( $identifer ) { |
199 | 199 | |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * |
313 | 313 | * @param string $abbreviation |
314 | 314 | * |
315 | - * @return false|DateTimeZone |
|
315 | + * @return DateTimeZone |
|
316 | 316 | */ |
317 | 317 | public static function newDateTimeZone( $abbreviation ) { |
318 | 318 | |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | * @since 2.5 |
354 | 354 | * |
355 | 355 | * @param DateTime &$dateTime |
356 | - * @param string|integer $identifer |
|
356 | + * @param integer $identifer |
|
357 | 357 | * |
358 | 358 | * @return string |
359 | 359 | */ |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Tests\Libs\Time; |
4 | 4 | |
5 | -use SMW\DataItemFactory; |
|
6 | 5 | use SMW\Libs\Time\Timezone; |
7 | 6 | |
8 | 7 | /** |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\SPARQLStore\Exception\BadHttpDatabaseResponseException; |
6 | 6 | use SMW\SPARQLStore\QueryEngine\RepositoryResult; |
7 | 7 | use SMW\SPARQLStore\QueryEngine\XmlResponseParser; |
8 | -use SMWSparqlResultParser as SparqlResultParser; |
|
9 | 8 | use SMWTurtleSerializer as TurtleSerializer; |
10 | 9 | |
11 | 10 | /** |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * rdfs, property, xsd, so these do not have to be included in |
133 | 133 | * $extraNamespaces. |
134 | 134 | * |
135 | - * @param $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
135 | + * @param string $vars mixed array or string, field name(s) to be retrieved, can be '*' |
|
136 | 136 | * @param $where string WHERE part of the query, without surrounding { } |
137 | 137 | * @param $options array (associative) of options, e.g. array( 'LIMIT' => '10' ) |
138 | 138 | * @param $extraNamespaces array (associative) of namespaceId => namespaceUri |
@@ -549,8 +549,8 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | /** |
552 | - * @param $endpoint string URL of endpoint that was used |
|
553 | - * @param $sparql string query that caused the problem |
|
552 | + * @param string $endpoint string URL of endpoint that was used |
|
553 | + * @param string $sparql string query that caused the problem |
|
554 | 554 | */ |
555 | 555 | protected function mapHttpRequestError( $endpoint, $sparql ) { |
556 | 556 | |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | * |
567 | 567 | * @param integer $timeout |
568 | 568 | * |
569 | - * @return SparqlDatabase |
|
569 | + * @return GenericHttpRepositoryConnector |
|
570 | 570 | */ |
571 | 571 | public function setConnectionTimeoutInSeconds( $timeout = 10 ) { |
572 | 572 | $this->httpRequest->setOption( CURLOPT_CONNECTTIMEOUT, $timeout ); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Query; |
4 | 4 | |
5 | -use SMW\DataValues\MonolingualTextValue; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMW\DIWikiPage; |
8 | 7 | use SMW\Query\Language\ClassDescription; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @since 1.9 |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return DIProperty |
|
45 | 45 | */ |
46 | 46 | public function getProperty() { |
47 | 47 | return new DIProperty( '_ASK' ); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @since 1.9 |
65 | 65 | * |
66 | - * @return SemanticData |
|
66 | + * @return \SMWSemanticData |
|
67 | 67 | */ |
68 | 68 | public function getSemanticData() { |
69 | 69 | return $this->container->getSemanticData(); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @param string $text |
157 | 157 | * |
158 | - * @return text |
|
158 | + * @return string |
|
159 | 159 | */ |
160 | 160 | public static function decodeSquareBracket( $text ) { |
161 | 161 | return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text ); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * |
167 | 167 | * @param string $text |
168 | 168 | * |
169 | - * @return text |
|
169 | + * @return string |
|
170 | 170 | */ |
171 | 171 | public static function obscureAnnotation( $text ) { |
172 | 172 | return preg_replace_callback( |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @param string $text |
185 | 185 | * |
186 | - * @return text |
|
186 | + * @return string |
|
187 | 187 | */ |
188 | 188 | public static function removeAnnotation( $text ) { |
189 | 189 | return preg_replace_callback( |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * |
258 | 258 | * @since 1.9 |
259 | 259 | * |
260 | - * @return array |
|
260 | + * @return string[] |
|
261 | 261 | */ |
262 | 262 | protected function getModules() { |
263 | 263 | return array( |
@@ -482,6 +482,9 @@ discard block |
||
482 | 482 | $this->isEnabledNamespace = $this->applicationFactory->getNamespaceExaminer()->isSemanticEnabled( $title->getNamespace() ); |
483 | 483 | } |
484 | 484 | |
485 | + /** |
|
486 | + * @param DIWikiPage $subject |
|
487 | + */ |
|
485 | 488 | private function getPropertyLink( $subject, $properties, $value, $valueCaption ) { |
486 | 489 | |
487 | 490 | // #... |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @param string $text |
17 | 17 | * |
18 | - * @return text |
|
18 | + * @return string |
|
19 | 19 | */ |
20 | 20 | public static function decodeSquareBracket( $text ) { |
21 | 21 | return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text ); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * |
27 | 27 | * @param string $text |
28 | 28 | * |
29 | - * @return text |
|
29 | + * @return string |
|
30 | 30 | */ |
31 | 31 | public static function obscureAnnotation( $text ) { |
32 | 32 | return preg_replace_callback( |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param string $text |
45 | 45 | * |
46 | - * @return text |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public static function removeAnnotation( $text ) { |
49 | 49 | return preg_replace_callback( |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * @since 2.4 |
126 | 126 | * |
127 | - * @return string |
|
127 | + * @return ExtraneousLanguage |
|
128 | 128 | */ |
129 | 129 | public function fetchByLanguageCode( $languageCode ) { |
130 | 130 | |
@@ -380,6 +380,7 @@ discard block |
||
380 | 380 | * |
381 | 381 | * @since 2.4 |
382 | 382 | * |
383 | + * @param string $propertyLabel |
|
383 | 384 | * @return string|null |
384 | 385 | */ |
385 | 386 | public function getPropertyIdByLabel( $propertyLabel ) { |
@@ -487,6 +488,7 @@ discard block |
||
487 | 488 | |
488 | 489 | /** |
489 | 490 | * @deprecated use getMonthLabelByNumber |
491 | + * @param integer $number |
|
490 | 492 | */ |
491 | 493 | public function getMonthLabel( $number ) { |
492 | 494 | return $this->getMonthLabelByNumber( $number ); |
@@ -517,6 +519,9 @@ discard block |
||
517 | 519 | return ''; |
518 | 520 | } |
519 | 521 | |
522 | + /** |
|
523 | + * @param string $languageCode |
|
524 | + */ |
|
520 | 525 | private function getDateFormatsByLanguageCode( $languageCode ) { |
521 | 526 | |
522 | 527 | $dateformats = array(); |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\ExtraneousLanguage; |
4 | 4 | |
5 | -use RuntimeException; |
|
6 | - |
|
7 | 5 | /** |
8 | 6 | * This class provides "extraneous" language functions independent from MediaWiki |
9 | 7 | * serving a special need to handle certain language options in a way required by |