Completed
Push — master ( 2472c5...a814e8 )
by mw
35:03
created
src/Query/ProfileAnnotators/NullProfileAnnotator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 *
42 42
 	 * @since 1.9
43 43
 	 *
44
-	 * @return array
44
+	 * @return DIProperty
45 45
 	 */
46 46
 	public function getProperty() {
47 47
 		return new DIProperty( '_ASK' );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @since 1.9
65 65
 	 *
66
-	 * @return SemanticData
66
+	 * @return \SMWSemanticData
67 67
 	 */
68 68
 	public function getSemanticData() {
69 69
 		return $this->container->getSemanticData();
Please login to merge, or discard this patch.
src/InTextAnnotationParser.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 *
156 156
 	 * @param string $text
157 157
 	 *
158
-	 * @return text
158
+	 * @return string
159 159
 	 */
160 160
 	public static function decodeSquareBracket( $text ) {
161 161
 		return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text );
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 *
167 167
 	 * @param string $text
168 168
 	 *
169
-	 * @return text
169
+	 * @return string
170 170
 	 */
171 171
 	public static function obscureAnnotation( $text ) {
172 172
 		return preg_replace_callback(
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 *
184 184
 	 * @param string $text
185 185
 	 *
186
-	 * @return text
186
+	 * @return string
187 187
 	 */
188 188
 	public static function removeAnnotation( $text ) {
189 189
 		return preg_replace_callback(
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 *
258 258
 	 * @since 1.9
259 259
 	 *
260
-	 * @return array
260
+	 * @return string[]
261 261
 	 */
262 262
 	protected function getModules() {
263 263
 		return array(
@@ -482,6 +482,9 @@  discard block
 block discarded – undo
482 482
 		$this->isEnabledNamespace = $this->applicationFactory->getNamespaceExaminer()->isSemanticEnabled( $title->getNamespace() );
483 483
 	}
484 484
 
485
+	/**
486
+	 * @param DIWikiPage $subject
487
+	 */
485 488
 	private function getPropertyLink( $subject, $properties, $value, $valueCaption ) {
486 489
 
487 490
 		// #...
Please login to merge, or discard this patch.
src/InTextAnnotationSanitizer.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	 *
16 16
 	 * @param string $text
17 17
 	 *
18
-	 * @return text
18
+	 * @return string
19 19
 	 */
20 20
 	public static function decodeSquareBracket( $text ) {
21 21
 		return str_replace( array( '%5B', '%5D' ), array( '[', ']' ), $text );
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 *
27 27
 	 * @param string $text
28 28
 	 *
29
-	 * @return text
29
+	 * @return string
30 30
 	 */
31 31
 	public static function obscureAnnotation( $text ) {
32 32
 		return preg_replace_callback(
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 *
44 44
 	 * @param string $text
45 45
 	 *
46
-	 * @return text
46
+	 * @return string
47 47
 	 */
48 48
 	public static function removeAnnotation( $text ) {
49 49
 		return preg_replace_callback(
Please login to merge, or discard this patch.
src/ExtraneousLanguage/ExtraneousLanguage.php 2 patches
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	/**
125 125
 	 * @since 2.4
126 126
 	 *
127
-	 * @return string
127
+	 * @return ExtraneousLanguage
128 128
 	 */
129 129
 	public function fetchByLanguageCode( $languageCode ) {
130 130
 
@@ -380,6 +380,7 @@  discard block
 block discarded – undo
380 380
 	 *
381 381
 	 * @since 2.4
382 382
 	 *
383
+	 * @param string $propertyLabel
383 384
 	 * @return string|null
384 385
 	 */
385 386
 	public function getPropertyIdByLabel( $propertyLabel ) {
@@ -487,6 +488,7 @@  discard block
 block discarded – undo
487 488
 
488 489
 	/**
489 490
 	 * @deprecated use getMonthLabelByNumber
491
+	 * @param integer $number
490 492
 	 */
491 493
 	public function getMonthLabel( $number ) {
492 494
 		return $this->getMonthLabelByNumber( $number );
@@ -517,6 +519,9 @@  discard block
 block discarded – undo
517 519
 		return '';
518 520
 	}
519 521
 
522
+	/**
523
+	 * @param string $languageCode
524
+	 */
520 525
 	private function getDateFormatsByLanguageCode( $languageCode ) {
521 526
 
522 527
 		$dateformats = array();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\ExtraneousLanguage;
4 4
 
5
-use RuntimeException;
6
-
7 5
 /**
8 6
  * This class provides "extraneous" language functions independent from MediaWiki
9 7
  * serving a special need to handle certain language options in a way required by
Please login to merge, or discard this patch.
src/PropertyAnnotators/MandatoryTypePropertyAnnotator.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
 		$this->addTypeFromImportVocabulary( $property, current( $dataItems ) );
52 52
 	}
53 53
 
54
+	/**
55
+	 * @param DIProperty $property
56
+	 */
54 57
 	private function addTypeFromImportVocabulary( $property, $dataItem ) {
55 58
 
56 59
 		$importValue = DataValueFactory::getInstance()->newDataItemValue(
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
 		$this->replaceAnyTypeByImportType( $property, $dataValue );
81 84
 	}
82 85
 
86
+	/**
87
+	 * @param \SMWDataValue $dataValue
88
+	 */
83 89
 	private function replaceAnyTypeByImportType( DIProperty $property, $dataValue ) {
84 90
 
85 91
 		foreach ( $this->getSemanticData()->getPropertyValues( $property ) as $dataItem ) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use SMW\DataTypeRegistry;
6 6
 use SMW\DataValueFactory;
7 7
 use SMW\DIProperty;
8
-use SMW\PropertyAnnotator;
9
-use SMW\Store;
10 8
 
11 9
 /**
12 10
  * @license GNU GPL v2+
Please login to merge, or discard this patch.
src/Exporter/ResourceBuilders/PropertyDescriptionValueResourceBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Exporter\ResourceBuilders;
4 4
 
5
-use SMW\Exporter\ResourceBuilder;
6 5
 use SMW\DIProperty;
7 6
 use SMWExporter as Exporter;
8 7
 use SMW\DataValueFactory;
Please login to merge, or discard this patch.
includes/dataitems/SMW_DI_URI.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	 * with these examples would be
41 41
 	 * http://[email protected]/path?q=Search+term#section-one
42 42
 	 * @param $scheme string for the scheme
43
-	 * @param $hierpart string for the "hierpart"
43
+	 * @param string $hierpart string for the "hierpart"
44 44
 	 * @param $query string for the query
45 45
 	 * @param $fragment string for the fragment
46 46
 	 *
Please login to merge, or discard this patch.
src/DataValues/MonolingualTextValue.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,6 @@  discard block
 block discarded – undo
67 67
 	/**
68 68
 	 * @see AbstractMultiValue::getProperties
69 69
 	 *
70
-	 * @param DIProperty[] $properties
71 70
 	 */
72 71
 	public function getProperties() {
73 72
 		self::$properties;
@@ -78,6 +77,7 @@  discard block
 block discarded – undo
78 77
 	 *
79 78
 	 * @param $userValue
80 79
 	 * @param string $languageCode
80
+	 * @param string $text
81 81
 	 *
82 82
 	 * @return string
83 83
 	 */
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 	/**
278 278
 	 * @since 2.5
279 279
 	 *
280
-	 * @return array
280
+	 * @return string
281 281
 	 */
282 282
 	public function toArray() {
283 283
 
@@ -325,6 +325,9 @@  discard block
 block discarded – undo
325 325
 		return $list['_TEXT'] . '@' . $list['_LCODE'];
326 326
 	}
327 327
 
328
+	/**
329
+	 * @param string $value
330
+	 */
328 331
 	private function newContainerSemanticData( $value ) {
329 332
 
330 333
 		if ( $this->m_contextPage === null ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use SMW\DIProperty;
10 10
 use SMW\DIWikiPage;
11 11
 use SMW\Localizer;
12
-use SMW\StringCondition;
13 12
 use SMWContainerSemanticData as ContainerSemanticData;
14 13
 use SMWDataItem as DataItem;
15 14
 use SMWDataValue as DataValue;
Please login to merge, or discard this patch.
src/Exporter/ResourceBuilders/PreferredPropertyLabelResourceBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SMW\Exporter\ResourceBuilders;
4 4
 
5
-use SMW\Exporter\ResourceBuilder;
6 5
 use SMW\DIProperty;
7 6
 use SMWExporter as Exporter;
8 7
 use SMW\DataValueFactory;
Please login to merge, or discard this patch.