@@ -93,6 +93,9 @@ |
||
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param integer $propertyIndex |
|
98 | + */ |
|
96 | 99 | private function getDescriptionForProperty( $diProperty, $values, &$valueIndex, $propertyIndex ) { |
97 | 100 | |
98 | 101 | $values[$valueIndex] = str_replace( "-3B", ";", $values[$valueIndex] ); |
@@ -91,6 +91,9 @@ |
||
91 | 91 | return $description; |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param \SMWDataItem $dataItem |
|
96 | + */ |
|
94 | 97 | private function getUpperLimit( $dataItem ) { |
95 | 98 | |
96 | 99 | $prec = $dataItem->getPrecision(); |
@@ -50,6 +50,9 @@ |
||
50 | 50 | return new ExpData( ExpElement::newFromSerialization( $subject ) ); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param ExpData $expData |
|
55 | + */ |
|
53 | 56 | private function doDeserialize( $serialization, $expData ) { |
54 | 57 | |
55 | 58 | foreach ( $serialization['data'] as $data ) { |
@@ -95,6 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | + * @param DIProperty $property |
|
98 | 99 | * @return DataItem |
99 | 100 | */ |
100 | 101 | private function doDeserializeDataItem( $property, $data, $value, $semanticData ) { |
@@ -154,6 +155,7 @@ discard block |
||
154 | 155 | * otherwise the subobject is neglected (of course one could set an error |
155 | 156 | * value to the DIContainer but as of now that seems unnecessary) |
156 | 157 | * |
158 | + * @param SMWContainerSemanticData $semanticData |
|
157 | 159 | * @return DIContainer|null |
158 | 160 | */ |
159 | 161 | private function unserializeSubobject( $data, $id, $semanticData ) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @since 2.2 |
31 | 31 | * |
32 | 32 | * @param integer $dataItemType |
33 | - * @param Closure $dataItemEncoder |
|
33 | + * @param \Closure $dataItemEncoder |
|
34 | 34 | */ |
35 | 35 | public function registerDataItemEncoder( $dataItemType, \Closure $dataItemEncoder ) { |
36 | 36 | $this->dataItemEncoderMap[$dataItemType] = $dataItemEncoder; |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | throw new RuntimeException( 'Encoder did not return a valid element' ); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param DataItem $dataItem |
|
66 | + */ |
|
64 | 67 | private function tryToEncodeDataItem( $dataItem ) { |
65 | 68 | |
66 | 69 | foreach ( $this->dataItemEncoderMap as $dataItemType => $dataItemEncoder ) { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | use SMW\MediaWiki\HtmlTableRenderer; |
12 | 12 | use SMW\MediaWiki\MessageBuilder; |
13 | 13 | use SMW\ParserData; |
14 | -use SMW\Profiler; |
|
15 | 14 | use SMW\SemanticData; |
16 | 15 | use SMW\Store; |
17 | 16 | use SMWInfolink; |
@@ -94,6 +94,7 @@ discard block |
||
94 | 94 | * @since 2.1 |
95 | 95 | * |
96 | 96 | * @param boolean |
97 | + * @param boolean $preview |
|
97 | 98 | */ |
98 | 99 | public function useInPreview( $preview ) { |
99 | 100 | $this->useInPreview = $preview; |
@@ -193,7 +194,7 @@ discard block |
||
193 | 194 | * |
194 | 195 | * @since 1.9 |
195 | 196 | * |
196 | - * @return array |
|
197 | + * @return string[] |
|
197 | 198 | */ |
198 | 199 | protected function getModules() { |
199 | 200 | return array( |
@@ -211,7 +212,8 @@ discard block |
||
211 | 212 | * |
212 | 213 | * @since 1.9 |
213 | 214 | * |
214 | - * @return integer $showFactbox |
|
215 | + * @param string|null $showFactbox |
|
216 | + * @return string|null $showFactbox |
|
215 | 217 | * |
216 | 218 | * @return string|null |
217 | 219 | */ |
@@ -397,6 +399,9 @@ discard block |
||
397 | 399 | } |
398 | 400 | } |
399 | 401 | |
402 | + /** |
|
403 | + * @param \SMWDataValue $dataValue |
|
404 | + */ |
|
400 | 405 | private function getInfolink( $dataValue ) { |
401 | 406 | |
402 | 407 | if ( $dataValue->getProperty()->getKey() !== '_SOBJ' ) { |
@@ -199,6 +199,9 @@ discard block |
||
199 | 199 | return $skip; |
200 | 200 | } |
201 | 201 | |
202 | + /** |
|
203 | + * @return string |
|
204 | + */ |
|
202 | 205 | private function performAction( Title $title, DIConcept $concept ) { |
203 | 206 | $this->reportMessage( "($this->lines) " ); |
204 | 207 | |
@@ -256,6 +259,9 @@ discard block |
||
256 | 259 | return $titleLookup->selectByIdRange( $this->startId, $endId ); |
257 | 260 | } |
258 | 261 | |
262 | + /** |
|
263 | + * @param string $key |
|
264 | + */ |
|
259 | 265 | private function hasOption( $key ) { |
260 | 266 | return isset( $this->options[$key] ); |
261 | 267 | } |
@@ -266,6 +272,9 @@ discard block |
||
266 | 272 | } |
267 | 273 | } |
268 | 274 | |
275 | + /** |
|
276 | + * @param integer $date |
|
277 | + */ |
|
269 | 278 | private function getCacheDateInfo( $date ) { |
270 | 279 | return date( 'Y-m-d H:i:s', $date ) . ' (' . floor( ( strtotime( 'now' ) - $date ) / 60 ) . ' minutes old), '; |
271 | 280 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | * @codeCoverageIgnore |
127 | 127 | * @see ApiBase::getDescription |
128 | 128 | * |
129 | - * @return array |
|
129 | + * @return string[] |
|
130 | 130 | */ |
131 | 131 | public function getDescription() { |
132 | 132 | return array( |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @codeCoverageIgnore |
139 | 139 | * @see ApiBase::getExamples |
140 | 140 | * |
141 | - * @return array |
|
141 | + * @return string[] |
|
142 | 142 | */ |
143 | 143 | protected function getExamples() { |
144 | 144 | return array( |
@@ -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; |