@@ -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(); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * @since 2.4 |
84 | 84 | * |
85 | - * @param integer|boolean $queryFeatures |
|
85 | + * @param integer $queryFeatures |
|
86 | 86 | * |
87 | 87 | * @return QueryParser |
88 | 88 | */ |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param DIProperty $property |
|
127 | + */ |
|
125 | 128 | public function createQueryForSamplePagesThatContain( $property, array &$expectedSubjects ) { |
126 | 129 | |
127 | 130 | foreach ( $expectedSubjects as $key => $expectedSubject ) { |
@@ -159,6 +162,9 @@ discard block |
||
159 | 162 | return $query; |
160 | 163 | } |
161 | 164 | |
165 | + /** |
|
166 | + * @param \SMWDIWikiPage[] $results |
|
167 | + */ |
|
162 | 168 | private function assertResultOrder( $expected, $results ) { |
163 | 169 | |
164 | 170 | $hasSameOrder = true; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @since 1.9 |
36 | 36 | * |
37 | - * @param array $diType |
|
37 | + * @param array $diTypes |
|
38 | 38 | * @param array $specialProperties |
39 | 39 | * @param array $userDefinedFixedProperties |
40 | 40 | */ |
@@ -148,6 +148,9 @@ discard block |
||
148 | 148 | } |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param string $fixedPropertyTablePrefix |
|
153 | + */ |
|
151 | 154 | private function addTableDefinitionForFixedProperties( array $properties, $fixedPropertyTablePrefix ) { |
152 | 155 | foreach( $properties as $propertyKey => $propetyTableSuffix ) { |
153 | 156 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Hooks; |
6 | 6 | use SMW\DataTypeRegistry; |
7 | 7 | use SMW\DIProperty; |
8 | -use SMWDataItem as DataItem; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * @private |