@@ -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(); |
@@ -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 | * to handle certain language options in a way required by Semantic MediaWiki and |
@@ -5,8 +5,6 @@ |
||
5 | 5 | use SMW\DataTypeRegistry; |
6 | 6 | use SMW\DataValueFactory; |
7 | 7 | use SMW\DIProperty; |
8 | -use SMW\PropertyAnnotator; |
|
9 | -use SMW\Store; |
|
10 | 8 | |
11 | 9 | /** |
12 | 10 | * @license GNU GPL v2+ |
@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | $this->addTypeFromImportVocabulary( $property, current( $dataItems ) ); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param DIProperty $property |
|
55 | + */ |
|
53 | 56 | private function addTypeFromImportVocabulary( $property, $dataItem ) { |
54 | 57 | |
55 | 58 | $importValue = DataValueFactory::getInstance()->newDataValueByItem( |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | $this->replaceAnyTypeByImportType( $property, $dataValue ); |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param \SMWDataValue $dataValue |
|
87 | + */ |
|
82 | 88 | private function replaceAnyTypeByImportType( DIProperty $property, $dataValue ) { |
83 | 89 | |
84 | 90 | foreach ( $this->getSemanticData()->getPropertyValues( $property ) as $dataItem ) { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Exporter\ResourceBuilders; |
4 | 4 | |
5 | -use SMW\Exporter\ResourceBuilder; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMWExporter as Exporter; |
8 | 7 | use SMW\DataValueFactory; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | * with these examples would be |
41 | 41 | * http://[email protected]/path?q=Search+term#section-one |
42 | 42 | * @param $scheme string for the scheme |
43 | - * @param $hierpart string for the "hierpart" |
|
43 | + * @param string $hierpart string for the "hierpart" |
|
44 | 44 | * @param $query string for the query |
45 | 45 | * @param $fragment string for the fragment |
46 | 46 | * |
@@ -67,7 +67,6 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * @see AbstractMultiValue::getProperties |
69 | 69 | * |
70 | - * @param DIProperty[] $properties |
|
71 | 70 | */ |
72 | 71 | public function getProperties() { |
73 | 72 | self::$properties; |
@@ -78,6 +77,7 @@ discard block |
||
78 | 77 | * |
79 | 78 | * @param $userValue |
80 | 79 | * @param string $languageCode |
80 | + * @param string $text |
|
81 | 81 | * |
82 | 82 | * @return string |
83 | 83 | */ |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @since 2.5 |
279 | 279 | * |
280 | - * @return array |
|
280 | + * @return string |
|
281 | 281 | */ |
282 | 282 | public function toArray() { |
283 | 283 | |
@@ -325,6 +325,9 @@ discard block |
||
325 | 325 | return $list['_TEXT'] . '@' . $list['_LCODE']; |
326 | 326 | } |
327 | 327 | |
328 | + /** |
|
329 | + * @param string $value |
|
330 | + */ |
|
328 | 331 | private function newContainerSemanticData( $value ) { |
329 | 332 | |
330 | 333 | if ( $this->m_contextPage === null ) { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use SMW\DIProperty; |
10 | 10 | use SMW\DIWikiPage; |
11 | 11 | use SMW\Localizer; |
12 | -use SMW\StringCondition; |
|
13 | 12 | use SMWContainerSemanticData as ContainerSemanticData; |
14 | 13 | use SMWDataItem as DataItem; |
15 | 14 | use SMWDataValue as DataValue; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Exporter\ResourceBuilders; |
4 | 4 | |
5 | -use SMW\Exporter\ResourceBuilder; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMWExporter as Exporter; |
8 | 7 | use SMW\DataValueFactory; |
@@ -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; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @param string $name |
73 | 73 | * |
74 | - * @return Callable|false |
|
74 | + * @return \Closure |
|
75 | 75 | */ |
76 | 76 | public function getHandlerFor( $name ) { |
77 | 77 | return isset( $this->handlers[$name] ) ? $this->handlers[$name] : false; |
@@ -96,6 +96,9 @@ discard block |
||
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
99 | + /** |
|
100 | + * @param string $basePath |
|
101 | + */ |
|
99 | 102 | private function addCallbackHandlers( $basePath, $globalVars ) { |
100 | 103 | |
101 | 104 | $applicationFactory = ApplicationFactory::getInstance(); |