@@ -29,7 +29,6 @@ |
||
29 | 29 | /** |
30 | 30 | * @see DataValue::parseUserValue |
31 | 31 | * |
32 | - * @param string $value |
|
33 | 32 | */ |
34 | 33 | protected function parseUserValue( $userValue ) { |
35 | 34 |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $text . $languagecode; |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DataValue $dataValue |
|
124 | + */ |
|
122 | 125 | private function findValueOutputFor( $type, $dataValue, $linker ) { |
123 | 126 | switch ( $type ) { |
124 | 127 | case self::VALUE: return $dataValue->getWikiValue(); |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return $abbreviate && $length > 255 ? $this->getAbbreviatedText( $text, $length, $linker ) : $text; |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param integer $length |
|
77 | + */ |
|
75 | 78 | private function getAbbreviatedText( $text, $length, $linker ) { |
76 | 79 | |
77 | 80 | if ( $linker === false || $linker === null ) { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW; |
4 | 4 | |
5 | -use DateTimeZone; |
|
6 | 5 | use SMWDITime as DITime; |
7 | 6 | use Language; |
8 | 7 |
@@ -141,6 +141,7 @@ discard block |
||
141 | 141 | * - M A short textual representation of a month, three letters |
142 | 142 | * - a Lowercase Ante meridiem and Post meridiem am or pm |
143 | 143 | * - A Uppercase Ante meridiem and Post meridiem |
144 | + * @param string $format |
|
144 | 145 | */ |
145 | 146 | private function formatWithLocalizedTextReplacement( $dateTime, $format ) { |
146 | 147 | |
@@ -189,6 +190,9 @@ discard block |
||
189 | 190 | return $output; |
190 | 191 | } |
191 | 192 | |
193 | + /** |
|
194 | + * @param \DateTime $dateTime |
|
195 | + */ |
|
192 | 196 | private function getAbbreviatedTimezoneWithModifiedDateTime( &$dateTime ) { |
193 | 197 | |
194 | 198 | $timezone = 0; |
@@ -176,6 +176,9 @@ discard block |
||
176 | 176 | return $this->getUnitID( $unit ); |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param string|false $unit |
|
181 | + */ |
|
179 | 182 | private function convertToKelvin( $number, $unit ) { |
180 | 183 | |
181 | 184 | switch ( $unit ) { |
@@ -195,6 +198,9 @@ discard block |
||
195 | 198 | return false; // unsupported unit |
196 | 199 | } |
197 | 200 | |
201 | + /** |
|
202 | + * @param string|false $unit |
|
203 | + */ |
|
198 | 204 | private function convertToUnit( $number, $unit ) { |
199 | 205 | |
200 | 206 | switch ( $unit ) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * |
77 | 77 | * @param string $caption The label for the link. |
78 | 78 | * @param string $target The actual link target. |
79 | - * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
79 | + * @param string|false $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
80 | 80 | * @param array $params Array of parameters, format $name => $value, if any. |
81 | 81 | * |
82 | 82 | * @return SMWInfolink |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @param string $caption The label for the link. |
127 | 127 | * @param string $subject |
128 | - * @param string $propertyName |
|
129 | - * @param mixed $style CSS class of a span to embed the link into, or false if no extra style is required. |
|
128 | + * @param string $propertyname |
|
129 | + * @param string $style CSS class of a span to embed the link into, or false if no extra style is required. |
|
130 | 130 | * |
131 | 131 | * @return SMWInfolink |
132 | 132 | */ |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * |
146 | 146 | * @param string $caption The label for the link. |
147 | 147 | * @param string $titleText |
148 | - * @param mixed $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
148 | + * @param string $style CSS class of a span to embedd the link into, or false if no extra style is required. |
|
149 | 149 | * |
150 | 150 | * @return SMWInfolink |
151 | 151 | */ |
@@ -188,6 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | /** |
190 | 190 | * Change the link text. |
191 | + * @param string|false $caption |
|
191 | 192 | */ |
192 | 193 | public function setCaption( $caption ) { |
193 | 194 | $this->mCaption = $caption; |
@@ -195,6 +196,7 @@ discard block |
||
195 | 196 | |
196 | 197 | /** |
197 | 198 | * Change the link's CSS class. |
199 | + * @param string $style |
|
198 | 200 | */ |
199 | 201 | public function setStyle( $style ) { |
200 | 202 | $this->mStyle = $style; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\SQLStoreFactory; |
6 | -use SMW\Store; |
|
7 | 6 | use SMWSQLStore3; |
8 | 7 | |
9 | 8 | /** |
@@ -209,7 +209,7 @@ |
||
209 | 209 | * @since 2.5 |
210 | 210 | * |
211 | 211 | * @param integer $ns |
212 | - * @param string $url |
|
212 | + * @param string $text |
|
213 | 213 | * |
214 | 214 | * @return string |
215 | 215 | */ |
@@ -279,6 +279,9 @@ discard block |
||
279 | 279 | return DebugOutputFormatter::formatOutputFor( 'SQLStore', $entries, $query ); |
280 | 280 | } |
281 | 281 | |
282 | + /** |
|
283 | + * @param QuerySegment $qobj |
|
284 | + */ |
|
282 | 285 | private function doPrepareDebugQueryResult( $qobj, $sqlOptions, &$entries ) { |
283 | 286 | |
284 | 287 | $db = $this->store->getConnection(); |
@@ -503,6 +506,9 @@ discard block |
||
503 | 506 | } |
504 | 507 | } |
505 | 508 | |
509 | + /** |
|
510 | + * @param integer $qid |
|
511 | + */ |
|
506 | 512 | private function applyExtraWhereCondition( $qid ) { |
507 | 513 | |
508 | 514 | $db = $this->store->getConnection(); |
@@ -530,6 +536,9 @@ discard block |
||
530 | 536 | $this->querySegmentList[$qid] = $qobj; |
531 | 537 | } |
532 | 538 | |
539 | + /** |
|
540 | + * @param QuerySegment $qobj |
|
541 | + */ |
|
533 | 542 | private function collectedRequiredExtraPropertyDescriptions( $qobj ) { |
534 | 543 | $extraProperties = array(); |
535 | 544 | |
@@ -555,6 +564,10 @@ discard block |
||
555 | 564 | return $extraProperties; |
556 | 565 | } |
557 | 566 | |
567 | + /** |
|
568 | + * @param QuerySegment $qobj |
|
569 | + * @param integer $qid |
|
570 | + */ |
|
558 | 571 | private function compileAccordingConditionsAndHackThemIntoQobj( array $extraProperties, $qobj, $qid ) { |
559 | 572 | $this->querySegmentListBuilder->setSortKeys( $this->sortKeys ); |
560 | 573 | $this->querySegmentListBuilder->buildQuerySegmentFor( new Conjunction( $extraProperties ) ); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW\Tests\SQLStore; |
4 | 4 | |
5 | 5 | use SMW\SQLStore\SQLStoreFactory; |
6 | -use SMW\Store; |
|
7 | 6 | use SMWSQLStore3; |
8 | 7 | |
9 | 8 | /** |
@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | return $dependencySubjectList; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param DIWikiPage[] $subjects |
|
175 | + */ |
|
173 | 176 | private function doResolveDependenciesFromDescription( &$subjects, $description ) { |
174 | 177 | |
175 | 178 | if ( $description instanceof ValueDescription && $description->getDataItem() instanceof DIWikiPage ) { |
@@ -249,6 +252,9 @@ discard block |
||
249 | 252 | } |
250 | 253 | } |
251 | 254 | |
255 | + /** |
|
256 | + * @param DIWikiPage|null $subject |
|
257 | + */ |
|
252 | 258 | private function doMatchSubproperty( &$subjects, $subject, DIProperty $property ) { |
253 | 259 | |
254 | 260 | $subproperties = array(); |