@@ -160,6 +160,11 @@ discard block |
||
160 | 160 | return $this->doFind( '_SUBC', $category->getDBKey(), $category, new RequestOptions() ); |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $id |
|
165 | + * @param string $key |
|
166 | + * @param RequestOptions $requestOptions |
|
167 | + */ |
|
163 | 168 | private function doFind( $id, $key, DIWikiPage $subject, $requestOptions ) { |
164 | 169 | |
165 | 170 | $key = $id . '#' . $key . '#' . md5( $requestOptions->getHash() ); |
@@ -184,6 +189,9 @@ discard block |
||
184 | 189 | return $result; |
185 | 190 | } |
186 | 191 | |
192 | + /** |
|
193 | + * @param string $message |
|
194 | + */ |
|
187 | 195 | private function log( $message, $context = array() ) { |
188 | 196 | |
189 | 197 | if ( $this->logger === null ) { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * @since 1.0 |
90 | 90 | * |
91 | - * @return array |
|
91 | + * @return StringCondition[] |
|
92 | 92 | */ |
93 | 93 | public function getStringConditions() { |
94 | 94 | return $this->stringConditions; |
@@ -46,7 +46,6 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * @since 2.5 |
48 | 48 | * |
49 | - * @param boolean $hasEditLock |
|
50 | 49 | */ |
51 | 50 | public function hasEditProtection( $hasEditProtection ) { |
52 | 51 | $this->hasEditProtection = $hasEditProtection; |
@@ -144,6 +143,7 @@ discard block |
||
144 | 143 | * @note In order to enable a more detailed description for a specific |
145 | 144 | * predefined property a concatenated message key can be used (e.g |
146 | 145 | * 'smw-pa-property-predefined' + <internal property key> => '_asksi' ) |
146 | + * @param DIProperty $property |
|
147 | 147 | */ |
148 | 148 | private function createPredefinedPropertyMessage( $property, $propertyName ) { |
149 | 149 |
@@ -87,6 +87,9 @@ discard block |
||
87 | 87 | return true; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @param string $action |
|
92 | + */ |
|
90 | 93 | private function checkMwNamespaceEditPermission( Title &$title, User $user, $action, &$errors ) { |
91 | 94 | |
92 | 95 | // @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Allows_pattern |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | return false; |
100 | 103 | } |
101 | 104 | |
105 | + /** |
|
106 | + * @param string $action |
|
107 | + */ |
|
102 | 108 | private function checkPermissionOn( Title &$title, User $user, $action, &$errors ) { |
103 | 109 | |
104 | 110 | // @see https://www.semantic-mediawiki.org/wiki/Help:Special_property_Is_edit_protected |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * output, then the Semdata container will at least look as if properly |
180 | 180 | * initialised (though empty). |
181 | 181 | * |
182 | - * @return array |
|
182 | + * @return string[] |
|
183 | 183 | */ |
184 | 184 | public function __sleep() { |
185 | 185 | return array( 'mSubject', 'mPropVals', 'mProperties', 'subSemanticData', 'mHasVisibleProps', 'mHasVisibleSpecs', 'options' ); |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * |
239 | 239 | * @param string $key |
240 | 240 | * |
241 | - * @return mixed |
|
241 | + * @return string|null |
|
242 | 242 | */ |
243 | 243 | public function getOption( $key ) { |
244 | 244 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | * |
314 | 314 | * @since 1.8 |
315 | 315 | * |
316 | - * @return ContainerSemanticData[] |
|
316 | + * @return SemanticData[] |
|
317 | 317 | */ |
318 | 318 | public function getSubSemanticData() { |
319 | 319 | |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * Store a value for a given property identified by its text label |
432 | 432 | * (without namespace prefix). |
433 | 433 | * |
434 | - * @param $propertyName string |
|
434 | + * @param string $propertyName string |
|
435 | 435 | * @param $dataItem SMWDataItem |
436 | 436 | */ |
437 | 437 | public function addPropertyValue( $propertyName, SMWDataItem $dataItem ) { |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * @see SubSemanticData::hasSubSemanticData |
655 | 655 | * @since 1.9 |
656 | 656 | * |
657 | - * @param string $subobjectName|null |
|
657 | + * @param string $subobjectName |
|
658 | 658 | * |
659 | 659 | * @return boolean |
660 | 660 | */ |
@@ -182,7 +182,6 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @since 2.1 |
184 | 184 | * |
185 | - * @param string $description |
|
186 | 185 | * @param array $attributes |
187 | 186 | * |
188 | 187 | * @return HtmlFormRenderer |
@@ -217,8 +216,8 @@ discard block |
||
217 | 216 | /** |
218 | 217 | * @since 2.1 |
219 | 218 | * |
220 | - * @param $level |
|
221 | - * @param $text |
|
219 | + * @param string $level |
|
220 | + * @param string $text |
|
222 | 221 | * |
223 | 222 | * @return HtmlFormRenderer |
224 | 223 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @since 2.5 |
42 | 42 | * |
43 | - * @param RequestOptions $requestOption |
|
43 | + * @param RequestOptions $requestOptions |
|
44 | 44 | */ |
45 | 45 | public function getHtml( RequestOptions $requestOptions ) { |
46 | 46 | |
@@ -85,6 +85,12 @@ discard block |
||
85 | 85 | return $html; |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $limit |
|
90 | + * @param integer $offset |
|
91 | + * @param integer $count |
|
92 | + * @param integer $resultCount |
|
93 | + */ |
|
88 | 94 | private function getForm( $limit, $offset, $count, $resultCount, $threshold, $type ) { |
89 | 95 | |
90 | 96 | $exemptionProperty = $this->propertyLabelSimilarityLookup->getExemptionProperty(); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param integer $threshold |
67 | 67 | * |
68 | - * @return boolean |
|
68 | + * @return boolean|null |
|
69 | 69 | */ |
70 | 70 | public function setThreshold( $threshold ) { |
71 | 71 | $this->threshold = $threshold; |
@@ -229,6 +229,9 @@ discard block |
||
229 | 229 | return md5( implode( '', $hashing ) ); |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param double|null $percent |
|
234 | + */ |
|
232 | 235 | private function getSummary( DIProperty $first, DIProperty $second, $percent, $withType ) { |
233 | 236 | |
234 | 237 | $summary = array(); |
@@ -55,6 +55,9 @@ |
||
55 | 55 | $this->logger = $logger; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $message |
|
60 | + */ |
|
58 | 61 | protected function log( $message, $context = array() ) { |
59 | 62 | |
60 | 63 | if ( $this->logger === null ) { |