@@ -31,7 +31,6 @@ |
||
31 | 31 | * @since 2.1 |
32 | 32 | * |
33 | 33 | * @param Language $contentLanguage |
34 | - * @param Language|null $userLanguage |
|
35 | 34 | */ |
36 | 35 | public function __construct( Language $contentLanguage) { |
37 | 36 | $this->contentLanguage = $contentLanguage; |
@@ -182,6 +182,11 @@ |
||
182 | 182 | return true; |
183 | 183 | } |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $property |
|
187 | + * |
|
188 | + * @return string |
|
189 | + */ |
|
185 | 190 | private function preprocessPropertyString( $property ) { |
186 | 191 | |
187 | 192 | if ( $property{0} !== '_' ) { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * The third argument was added in SMW 1.9 and should not be used from outside SMW. |
175 | 175 | * |
176 | 176 | * @param string $value |
177 | - * @param mixed $caption |
|
177 | + * @param boolean $caption |
|
178 | 178 | * @param boolean $approximateValue |
179 | 179 | */ |
180 | 180 | public function setUserValue( $value, $caption = false, $approximateValue = false ) { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * |
257 | 257 | * @since 1.8 |
258 | 258 | * |
259 | - * @return SMWDIProperty|null |
|
259 | + * @return SMWDIProperty |
|
260 | 260 | */ |
261 | 261 | public function getProperty() { |
262 | 262 | return $this->m_property; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * @since 2.4 |
280 | 280 | * |
281 | - * @return DIWikiPage|null |
|
281 | + * @return SMWDIWikiPage |
|
282 | 282 | */ |
283 | 283 | public function getContextPage() { |
284 | 284 | return $this->m_contextPage; |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * |
299 | 299 | * @param string $key |
300 | 300 | * |
301 | - * @return mixed|false |
|
301 | + * @return string|false |
|
302 | 302 | */ |
303 | 303 | public function getOptionValueFor( $key ) { |
304 | 304 | |
@@ -322,7 +322,6 @@ discard block |
||
322 | 322 | /** |
323 | 323 | * @since 2.4 |
324 | 324 | * |
325 | - * @param string $caption |
|
326 | 325 | */ |
327 | 326 | public function getCaption() { |
328 | 327 | return $this->m_caption; |
@@ -490,7 +489,7 @@ discard block |
||
490 | 489 | * |
491 | 490 | * @param string $value |
492 | 491 | * |
493 | - * @return Description |
|
492 | + * @return SMW\Query\Language\Description |
|
494 | 493 | * @throws InvalidArgumentException |
495 | 494 | */ |
496 | 495 | public function getQueryDescription( $value ) { |
@@ -511,7 +510,7 @@ discard block |
||
511 | 510 | * |
512 | 511 | * @since 2.4 |
513 | 512 | * |
514 | - * @return DataValueFormatter |
|
513 | + * @return SMW\DataValues\ValueFormatters\DataValueFormatter |
|
515 | 514 | */ |
516 | 515 | public function getDataValueFormatter() { |
517 | 516 | return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this ); |
@@ -585,6 +584,7 @@ discard block |
||
585 | 584 | * |
586 | 585 | * The parameter $linker controls linking of values such as titles and should |
587 | 586 | * be some Linker object (or NULL for no linking). |
587 | + * @return string |
|
588 | 588 | */ |
589 | 589 | abstract public function getShortHTMLText( $linker = null ); |
590 | 590 | |
@@ -595,6 +595,7 @@ discard block |
||
595 | 595 | * |
596 | 596 | * The parameter $linked controls linking of values such as titles and should |
597 | 597 | * be non-NULL and non-false if this is desired. |
598 | + * @return string |
|
598 | 599 | */ |
599 | 600 | abstract public function getLongWikiText( $linked = null ); |
600 | 601 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * @since 2.4 |
67 | 67 | * |
68 | - * @return integer |
|
68 | + * @return boolean |
|
69 | 69 | */ |
70 | 70 | public function needsLanguageCode() { |
71 | 71 | return ( $this->getOptionValueFor( 'smwgDVFeatures' ) & SMW_DV_MLTV_LCODE ) != 0; |
@@ -75,7 +75,6 @@ discard block |
||
75 | 75 | * @see DataValue::parseUserValue |
76 | 76 | * @note called by DataValue::setUserValue |
77 | 77 | * |
78 | - * @param string $value |
|
79 | 78 | */ |
80 | 79 | protected function parseUserValue( $userValue ) { |
81 | 80 | |
@@ -245,6 +244,7 @@ discard block |
||
245 | 244 | /** |
246 | 245 | * @since 2.4 |
247 | 246 | * |
247 | + * @param string $languageCode |
|
248 | 248 | * @return DataValue|null |
249 | 249 | */ |
250 | 250 | public function getTextValueByLanguage( $languageCode ) { |
@@ -277,6 +277,9 @@ discard block |
||
277 | 277 | return $dataValue; |
278 | 278 | } |
279 | 279 | |
280 | + /** |
|
281 | + * @param string $value |
|
282 | + */ |
|
280 | 283 | private function newContainerSemanticData( $value ) { |
281 | 284 | |
282 | 285 | if ( $this->m_contextPage === null ) { |
@@ -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(); |
@@ -95,7 +95,6 @@ discard block |
||
95 | 95 | * $icon should be one of: 'warning' (default), 'info'. |
96 | 96 | * |
97 | 97 | * @param array $messages |
98 | - * @param string $icon Acts like an enum. Callers must ensure safety, since this value is used directly in the output. |
|
99 | 98 | * @param string $seperator |
100 | 99 | * @param boolean $escape Should the messages be escaped or not (ie when they already are) |
101 | 100 | * |
@@ -201,7 +200,7 @@ discard block |
||
201 | 200 | * @param mixed $namespace |
202 | 201 | * @param boolean $complete |
203 | 202 | * |
204 | - * @return true |
|
203 | + * @return boolean |
|
205 | 204 | * |
206 | 205 | * @codeCoverageIgnore |
207 | 206 | */ |
@@ -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 ) { |
@@ -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 ) { |
@@ -185,14 +185,15 @@ discard block |
||
185 | 185 | * The function sets the provided call-by-ref values to the respective |
186 | 186 | * values. If errors are encountered, they are added to the objects |
187 | 187 | * error list and false is returned. Otherwise, true is returned. |
188 | - * @param $string string input time representation, e.g. "12 May 2007 13:45:23-3:30" |
|
188 | + * @param string $string string input time representation, e.g. "12 May 2007 13:45:23-3:30" |
|
189 | 189 | * @param $datecomponents array of strings that might belong to the specification of a date |
190 | 190 | * @param $calendarmodesl string if model was set in input, otherwise false |
191 | - * @param $era string '+' or '-' if provided, otherwise false |
|
192 | - * @param $hours integer set to a value between 0 and 24 |
|
193 | - * @param $minutes integer set to a value between 0 and 59 |
|
194 | - * @param $seconds integer set to a value between 0 and 59, or false if not given |
|
195 | - * @param $timeoffset double set to a value for time offset (e.g. 3.5), or false if not given |
|
191 | + * @param boolean $era string '+' or '-' if provided, otherwise false |
|
192 | + * @param boolean $hours integer set to a value between 0 and 24 |
|
193 | + * @param boolean $minutes integer set to a value between 0 and 59 |
|
194 | + * @param boolean $seconds integer set to a value between 0 and 59, or false if not given |
|
195 | + * @param boolean $timeoffset double set to a value for time offset (e.g. 3.5), or false if not given |
|
196 | + * @param boolean $calendarmodel |
|
196 | 197 | * @return boolean stating if the parsing succeeded |
197 | 198 | * @todo This method in principle allows date parsing to be internationalized further. Should be done. |
198 | 199 | */ |
@@ -402,7 +403,7 @@ discard block |
||
402 | 403 | * messages are added to the objects list of errors, and false is |
403 | 404 | * returned. Otherwise, true is returned. |
404 | 405 | * @param $datecomponents array of strings that might belong to the specification of a date |
405 | - * @param $date array set to result |
|
406 | + * @param boolean $date array set to result |
|
406 | 407 | * @return boolean stating if successful |
407 | 408 | */ |
408 | 409 | protected function interpretDateComponents( $datecomponents, &$date ) { |