Completed
Push — master ( ff2cd3...da92b9 )
by mw
236:43 queued 201:44
created
src/DataValues/ReferenceValue.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -255,6 +255,9 @@
 block discarded – undo
255 255
 		return false;
256 256
 	}
257 257
 
258
+	/**
259
+	 * @param string $value
260
+	 */
258 261
 	private function newContainerSemanticData( $value ) {
259 262
 
260 263
 		if ( $this->m_contextPage === null ) {
Please login to merge, or discard this patch.
src/DataValues/ValueFormatters/MonolingualTextValueFormatter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -124,6 +124,9 @@
 block discarded – undo
124 124
 		return $text . $languagecode;
125 125
 	}
126 126
 
127
+	/**
128
+	 * @param DataValue $dataValue
129
+	 */
127 130
 	private function findValueOutputFor( $type, $dataValue, $linker ) {
128 131
 		switch ( $type ) {
129 132
 			case self::VALUE:
Please login to merge, or discard this patch.
src/DataValues/ValueFormatters/PropertyValueFormatter.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use SMW\Highlighter;
7 7
 use SMW\Localizer;
8 8
 use SMW\Message;
9
-use SMW\DIWikiPage;
10 9
 use SMWDataValue as DataValue;
11 10
 use SMWPropertyValue as PropertyValue;
12 11
 use RuntimeException;
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -210,6 +210,9 @@  discard block
 block discarded – undo
210 210
 		return $highlighter->getHtml();
211 211
 	}
212 212
 
213
+	/**
214
+	 * @param string $propertyDescription
215
+	 */
213 216
 	private function canHighlight( &$propertyDescription, $linker ) {
214 217
 
215 218
 		if ( $this->dataValue->getOption( PropertyValue::OPT_NO_HIGHLIGHT ) === true ) {
@@ -262,6 +265,9 @@  discard block
 block discarded – undo
262 265
 		return $preferredLabelMarker;
263 266
 	}
264 267
 
268
+	/**
269
+	 * @param \SMWDataItem $property
270
+	 */
265 271
 	private function findTranslatedPropertyLabel( $property ) {
266 272
 
267 273
 		// User-defined properties don't have any translatable label (this is
Please login to merge, or discard this patch.
src/DataValues/ValueFormatters/ReferenceValueFormatter.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -145,6 +145,10 @@
 block discarded – undo
145 145
 		return $results;
146 146
 	}
147 147
 
148
+	/**
149
+	 * @param boolean $isValue
150
+	 * @param DataValue $dataValue
151
+	 */
148 152
 	private function findValueOutputFor( $isValue, $type, $dataValue, $linker ) {
149 153
 
150 154
 		$dataItem = $dataValue->getDataItem();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use RuntimeException;
6 6
 use SMW\DataValueFactory;
7 7
 use SMW\DataValues\ReferenceValue;
8
-use SMW\DIProperty;
9 8
 use SMW\DIWikiPage;
10 9
 use SMW\Message;
11 10
 use SMWDataValue as DataValue;
Please login to merge, or discard this patch.
src/Exporter/DataItemToExpResourceEncoder.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -183,6 +183,10 @@  discard block
 block discarded – undo
183 183
 		return $resource;
184 184
 	}
185 185
 
186
+	/**
187
+	 * @param DIWikiPage $diWikiPage
188
+	 * @param string $modifier
189
+	 */
186 190
 	private function newExpNsResource( $diWikiPage, $modifier ) {
187 191
 
188 192
 		 $importDataItem = $this->seekImportDataItem( $diWikiPage, $modifier );
@@ -260,6 +264,9 @@  discard block
 block discarded – undo
260 264
 		);
261 265
 	}
262 266
 
267
+	/**
268
+	 * @return DataItem
269
+	 */
263 270
 	private function seekImportDataItem( DIWikiPage $diWikiPage, $modifier ) {
264 271
 
265 272
 		$importDataItems = null;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use SMW\Store;
13 13
 use SMWDataItem as DataItem;
14 14
 use SMWExporter as Exporter;
15
-use Title;
16 15
 
17 16
 /**
18 17
  * @license GNU GPL v2+
Please login to merge, or discard this patch.
src/Exporter/ElementFactory.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	 * @since 2.2
34 34
 	 *
35 35
 	 * @param integer $dataItemType
36
-	 * @param Closure $dataItemEncoder
36
+	 * @param \Closure $dataItemEncoder
37 37
 	 */
38 38
 	public function registerDataItemEncoder( $dataItemType, \Closure $dataItemEncoder ) {
39 39
 		$this->dataItemEncoderMap[$dataItemType] = $dataItemEncoder;
@@ -68,6 +68,9 @@  discard block
 block discarded – undo
68 68
 		throw new RuntimeException( 'Encoder did not return a valid element' );
69 69
 	}
70 70
 
71
+	/**
72
+	 * @param DataItem $dataItem
73
+	 */
71 74
 	private function findElementByDataItem( $dataItem ) {
72 75
 
73 76
 		foreach ( $this->dataItemToElementMapper as $dataItemToElementMapper ) {
Please login to merge, or discard this patch.
src/IntlNumberFormatter.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@  discard block
 block discarded – undo
100 100
 	 *
101 101
 	 * @return string $key
102 102
 	 * @param mixed $value
103
+	 * @param string $key
103 104
 	 */
104 105
 	public function setOption( $key, $value ) {
105 106
 		$this->options->set( $key, $value );
@@ -161,7 +162,7 @@  discard block
 block discarded – undo
161 162
 	 * to format a number that was not hand-formatted by a user.
162 163
 	 *
163 164
 	 * @param mixed $value input number
164
-	 * @param integer|false $precision optional positive integer, controls how many digits after
165
+	 * @param boolean $precision optional positive integer, controls how many digits after
165 166
 	 * the decimal point are shown
166 167
 	 *
167 168
 	 * @since 2.1
@@ -300,6 +301,10 @@  discard block
 block discarded – undo
300 301
 		);
301 302
 	}
302 303
 
304
+	/**
305
+	 * @param string $decimal
306
+	 * @param string $thousand
307
+	 */
303 308
 	private function doFormatWithPrecision( $value, $precision = false, $decimal, $thousand ) {
304 309
 
305 310
 		$replacement = 0;
@@ -358,6 +363,10 @@  discard block
 block discarded – undo
358 363
 		return $language;
359 364
 	}
360 365
 
366
+	/**
367
+	 * @param string $custom
368
+	 * @param string $standard
369
+	 */
361 370
 	private function getPreferredLocalizedSeparator( $custom, $standard, $language ) {
362 371
 
363 372
 		if ( $this->options->has( $custom ) && ( $separator = $this->options->get( $custom ) ) !== false ) {
Please login to merge, or discard this patch.
src/IntlTimeFormatter.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@  discard block
 block discarded – undo
142 142
 	 * - M	A short textual representation of a month, three letters
143 143
 	 * - a	Lowercase Ante meridiem and Post meridiem am or pm
144 144
 	 * - A	Uppercase Ante meridiem and Post meridiem
145
+	 * @param string $format
145 146
 	 */
146 147
 	private function formatWithLocalizedTextReplacement( $dateTime, $format ) {
147 148
 
@@ -190,6 +191,9 @@  discard block
 block discarded – undo
190 191
 		return $output;
191 192
 	}
192 193
 
194
+	/**
195
+	 * @param \DateTime $dateTime
196
+	 */
193 197
 	private function getTimezoneLiteralWithModifiedDateTime( &$dateTime ) {
194 198
 
195 199
 		$timezone = 0;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Language;
6 6
 use SMWDITime as DITime;
7
-use DateTimeZone;
8 7
 use SMW\DataValues\Time\Timezone;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/MediaWiki/Api/AskArgs.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * @codeCoverageIgnore
73 73
 	 * @see ApiBase::getDescription
74 74
 	 *
75
-	 * @return array
75
+	 * @return string[]
76 76
 	 */
77 77
 	public function getDescription() {
78 78
 		return array(
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 * @codeCoverageIgnore
85 85
 	 * @see ApiBase::getExamples
86 86
 	 *
87
-	 * @return array
87
+	 * @return string[]
88 88
 	 */
89 89
 	protected function getExamples() {
90 90
 		return array(
Please login to merge, or discard this patch.