Completed
Push — master ( 944e8c...873a6a )
by mw
32:14
created
src/NumberFormatter.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@  discard block
 block discarded – undo
39 39
 	/**
40 40
 	 * @since 2.1
41 41
 	 *
42
-	 * @param Language $contentLanguage
43 42
 	 */
44 43
 	public function __construct( $maxNonExpNumber ) {
45 44
 		$this->maxNonExpNumber = $maxNonExpNumber;
@@ -48,7 +47,7 @@  discard block
 block discarded – undo
48 47
 	/**
49 48
 	 * @since 2.1
50 49
 	 *
51
-	 * @return Localizer
50
+	 * @return NumberFormatter
52 51
 	 */
53 52
 	public static function getInstance() {
54 53
 
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
 	 * @since 2.4
93 92
 	 *
94 93
 	 * @param mixed $value input number
95
-	 * @param integer|false $precision
94
+	 * @param integer $precision
96 95
 	 *
97 96
 	 * @return string
98 97
 	 */
@@ -238,6 +237,10 @@  discard block
 block discarded – undo
238 237
 		return $this->decimalSeparatorInUserLanguage;
239 238
 	}
240 239
 
240
+	/**
241
+	 * @param string $decimal
242
+	 * @param string $thousand
243
+	 */
241 244
 	private function doFormatByPrecision( $value, $precision = false, $decimal, $thousand ) {
242 245
 		// Format to some level of precision; number_format does rounding and
243 246
 		// locale formatting, x and y are used temporarily since number_format
Please login to merge, or discard this patch.
includes/specials/SMW_SpecialTypes.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@
 block discarded – undo
141 141
 		return 'pages';
142 142
 	}
143 143
 
144
+	/**
145
+	 * @param SMWDataValue $typeValue
146
+	 */
144 147
 	private function displayExtraInformationAbout( $typeValue ) {
145 148
 
146 149
 		$html = '';
Please login to merge, or discard this patch.
src/DataValueFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMWDataItem;
6 6
 use SMWDIError;
7 7
 use SMWErrorValue as ErrorValue;
8
-use SMWPropertyValue;
9 8
 use SMWDataValue as DataValue;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	 * @param $property SMWDIProperty property object for which this value is made
140 140
 	 * @param $valueString mixed user value string, or false if unknown
141 141
 	 * @param $caption mixed user-defined caption, or false if none given
142
-	 * @param $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null
142
+	 * @param DIWikiPage $contextPage SMWDIWikiPage that provides a context for parsing the value string, or null
143 143
 	 *
144 144
 	 * @return DataValue
145 145
 	 */
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * @param string $propertyName property string
161 161
 	 * @param string $valueString user value string
162 162
 	 * @param mixed $caption user-defined caption
163
-	 * @param SMWDIWikiPage|null $contextPage context for parsing the value string
163
+	 * @param null|DIWikiPage $contextPage context for parsing the value string
164 164
 	 *
165 165
 	 * @return DataValue
166 166
 	 */
@@ -245,6 +245,8 @@  discard block
 block discarded – undo
245 245
 	/**
246 246
 	 * @deprecated since 2.4, use DataTypeRegistry::newPropertyObjectValueByText
247 247
 	 *
248
+	 * @param string $propertyName
249
+	 * @param string $valueString
248 250
 	 * @return DataValue
249 251
 	 */
250 252
 	public function newPropertyValue( $propertyName, $valueString,
@@ -255,7 +257,7 @@  discard block
 block discarded – undo
255 257
 	/**
256 258
 	 * @since 2.4
257 259
 	 *
258
-	 * @param string $propertyName
260
+	 * @param string $propertyLabel
259 261
 	 *
260 262
 	 * @return DataValue
261 263
 	 */
@@ -265,6 +267,8 @@  discard block
 block discarded – undo
265 267
 
266 268
 	/**
267 269
 	 * @deprecated since 1.9, use DataTypeRegistry::registerDataType
270
+	 * @param string $id
271
+	 * @param string $className
268 272
 	 */
269 273
 	public static function registerDatatype( $id, $className, $dataItemId, $label = false ) {
270 274
 		DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label );
@@ -272,6 +276,8 @@  discard block
 block discarded – undo
272 276
 
273 277
 	/**
274 278
 	 * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias
279
+	 * @param string $id
280
+	 * @param string $label
275 281
 	 */
276 282
 	public static function registerDatatypeAlias( $id, $label ) {
277 283
 		DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label );
Please login to merge, or discard this patch.
tests/phpunit/includes/DataValues/PropertyValueTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SMW\SPARQLStore\QueryEngine\QueryEngine;
6 6
 use SMW\SPARQLStore\QueryEngine\EngineOptions;
7 7
 use SMW\SPARQLStore\QueryEngine\QueryResultFactory;
8
-use SMW\DIProperty;
9 8
 use SMWQuery as Query;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.
includes/datavalues/SMW_DV_Property.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 * the provided name is not allowed. An object is returned
72 72
 	 * in any case.
73 73
 	 *
74
-	 * @param string $propertyName
74
+	 * @param string $propertyLabel
75 75
 	 *
76 76
 	 * @return SMWPropertyValue
77 77
 	 */
@@ -192,6 +192,9 @@  discard block
 block discarded – undo
192 192
 		}
193 193
 	}
194 194
 
195
+	/**
196
+	 * @param boolean $isinverse
197
+	 */
195 198
 	public function setInverse( $isinverse ) {
196 199
 		return $this->m_dataitem = new SMWDIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) );
197 200
 	}
@@ -319,6 +322,7 @@  discard block
 block discarded – undo
319 322
 
320 323
 	/**
321 324
 	 * Create special highlighting for hinting at special properties.
325
+	 * @param string $text
322 326
 	 */
323 327
 	protected function highlightText( $text, $linker = null ) {
324 328
 
Please login to merge, or discard this patch.
src/DataValues/LanguageCodeValue.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 	/**
30 30
 	 * @see DataValue::parseUserValue
31 31
 	 *
32
-	 * @param string $value
33 32
 	 */
34 33
 	protected function parseUserValue( $userValue ) {
35 34
 
Please login to merge, or discard this patch.
src/DataValues/ValueParsers/MonolingualTextValueParser.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace SMW\DataValues\ValueParsers;
4 4
 
5 5
 use SMW\DataValues\MonolingualTextValue;
6
-use SMW\DataValueFactory;
7 6
 use SMW\Localizer;
8
-use SMWDataValue as DataValue;
9 7
 
10 8
 /**
11 9
  * @private
Please login to merge, or discard this patch.
src/Localizer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
includes/datavalues/SMW_DataValue.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.