@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | return $output; |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $value |
|
140 | + */ |
|
138 | 141 | protected function fillDeliveryArray( $array = [], $value = null ) { |
139 | 142 | if( ! is_null( $value ) ) { //don't create any empty entries |
140 | 143 | $array[] = $value; |
@@ -166,11 +169,21 @@ discard block |
||
166 | 169 | /** @ToDo: System for Default values?... **/ |
167 | 170 | } |
168 | 171 | //represented by an array of record fields or just a single array value: |
172 | + |
|
173 | + /** |
|
174 | + * @param boolean $containsRecord |
|
175 | + * @param boolean $isPageTitle |
|
176 | + */ |
|
169 | 177 | protected function deliverSingleManyValuesData( $value_items, $containsRecord, $isPageTitle ) { |
170 | 178 | if( empty( $value_items ) ) //happens when one of the higher functions delivers null |
171 | 179 | return null; |
172 | 180 | return implode( $this->mRecordSep, $value_items ); |
173 | 181 | } |
182 | + |
|
183 | + /** |
|
184 | + * @param boolean $isMissingProperty |
|
185 | + * @param boolean $isPageTitle |
|
186 | + */ |
|
174 | 187 | protected function deliverPropertiesManyValues( $manyValue_items, $isMissingProperty, $isPageTitle, SMWResultArray $data ) { |
175 | 188 | if( empty( $manyValue_items ) ) |
176 | 189 | return null; |
@@ -236,6 +249,9 @@ discard block |
||
236 | 249 | return true; |
237 | 250 | } |
238 | 251 | |
252 | + /** |
|
253 | + * @param string $dfltCacheKey |
|
254 | + */ |
|
239 | 255 | protected function initializeCfgValue( $dfltVal, $dfltCacheKey ) { |
240 | 256 | $cache = &self::$mDefaultSeps[ $dfltCacheKey ]; |
241 | 257 | if( ! isset( $cache ) ) { |
@@ -77,6 +77,7 @@ |
||
77 | 77 | * @see SMWResultPrinter::getResultText() |
78 | 78 | * |
79 | 79 | * @todo Split up megamoth |
80 | + * @param integer $outputmode |
|
80 | 81 | */ |
81 | 82 | protected function getResultText( SMWQueryResult $res, $outputmode ) { |
82 | 83 | $events = []; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Returns the description string for this module |
90 | - * @return mixed string or array of strings |
|
90 | + * @return string[] string or array of strings |
|
91 | 91 | */ |
92 | 92 | protected function getDescription() { |
93 | 93 | return [ |
@@ -3,13 +3,11 @@ |
||
3 | 3 | namespace SRF; |
4 | 4 | |
5 | 5 | use SMW\ResultPrinter; |
6 | - |
|
7 | 6 | use SMWQueryResult; |
8 | 7 | use SMWPrintRequest; |
9 | 8 | use SMWDataItem; |
10 | 9 | use SMWOutputs; |
11 | 10 | use SRFUtils; |
12 | - |
|
13 | 11 | use Html; |
14 | 12 | use Title; |
15 | 13 |
@@ -164,6 +164,7 @@ |
||
164 | 164 | |
165 | 165 | /** |
166 | 166 | * @param \SMWResultArray $cell |
167 | + * @param integer $columnNumber |
|
167 | 168 | * @return string |
168 | 169 | */ |
169 | 170 | protected function getLabelForCell( $cell, $columnNumber ) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * @param NodeInterface $child |
50 | - * @return NodeTrait |
|
50 | + * @return TreeNode |
|
51 | 51 | * @throws Exception |
52 | 52 | */ |
53 | 53 | public function addChild( NodeInterface $child ) { |
@@ -56,6 +56,7 @@ |
||
56 | 56 | |
57 | 57 | /** |
58 | 58 | * @param SMWQueryResult | null $queryResult |
59 | + * @param SMWQueryResult|null $queryResult |
|
59 | 60 | */ |
60 | 61 | public function setQueryResult( $queryResult ) { |
61 | 62 | $this->queryResult = $queryResult; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @param &$vars Array of variables to be added into the output of the startup module. |
148 | 148 | * |
149 | - * @return true |
|
149 | + * @return boolean |
|
150 | 150 | */ |
151 | 151 | public static function onResourceLoaderGetConfigVars( &$vars ) { |
152 | 152 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * @param OutputPage $outputPage |
168 | 168 | * @param Skin $skin |
169 | 169 | * |
170 | - * @return true |
|
170 | + * @return boolean |
|
171 | 171 | */ |
172 | 172 | public static function onBeforePageDisplay ( &$outputPage, &$skin ) { |
173 | 173 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @param User $user |
184 | 184 | * @param array $preferences |
185 | 185 | * |
186 | - * @return true |
|
186 | + * @return boolean |
|
187 | 187 | */ |
188 | 188 | public static function onGetPreferences( $user, &$preferences ) { |
189 | 189 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @since 3.0 |
19 | 19 | * |
20 | 20 | * @param array $modules |
21 | - * @param array $styleModules |
|
21 | + * @param string[] $styleModules |
|
22 | 22 | */ |
23 | 23 | public static function registerResources( array $modules = [], array $styleModules = [] ) { |
24 | 24 |