Completed
Push — master ( 30add5...f043e7 )
by mw
14s
created
includes/export/SMW_Exporter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 * represent. Returns null if this attempt failed.
393 393
 	 *
394 394
 	 * @param SMWExpElement $expElement
395
-	 * @return SMWDataItem or null
395
+	 * @return null|DIWikiPage or null
396 396
 	 */
397 397
 	public function findDataItemForExpElement( SMWExpElement $expElement ) {
398 398
 		return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement );
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 	 * must take the type of the annotated object into account for some
430 430
 	 * reason.
431 431
 	 *
432
-	 * @param $propertyKey string the Id of the special property
432
+	 * @param string $propertyKey string the Id of the special property
433 433
 	 * @param $forNamespace integer the namespace of the page which has a value for this property
434 434
 	 * @return ExpNsResource|null
435 435
 	 */
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
 	 * elements are always preferred in query answering.
610 610
 	 *
611 611
 	 * @param $dataItem SMWDataItem
612
-	 * @return SMWExpElement or null
612
+	 * @return SMWExpLiteral|null or null
613 613
 	 */
614 614
 	static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) {
615 615
 
Please login to merge, or discard this patch.
src/Exporter/ConceptToExpDataMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 	 *
120 120
 	 * @param string &$exact
121 121
 	 *
122
-	 * @return Element|false
122
+	 * @return Element
123 123
 	 */
124 124
 	public function getExpDataFromDescription( Description $description, &$exact ) {
125 125
 
Please login to merge, or discard this patch.
includes/NamespaceManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param array &$globalVars
21 21
 	 * @param string|null &directory
22
+	 * @param string $directory
22 23
 	 */
23 24
 	public function __construct( &$globalVars, $directory = null ) {
24 25
 		$this->globalVars =& $globalVars;
@@ -173,12 +174,18 @@  discard block
 block discarded – undo
173 174
 
174 175
 	}
175 176
 
177
+	/**
178
+	 * @param string $element
179
+	 */
176 180
 	protected function isValidConfigurationOrSetDefault( $element, $default ) {
177 181
 		if ( !isset( $this->globalVars[$element] ) || !is_array( $this->globalVars[$element] ) ) {
178 182
 			$this->globalVars[$element] = $default;
179 183
 		}
180 184
 	}
181 185
 
186
+	/**
187
+	 * @param string $constant
188
+	 */
182 189
 	protected function isDefinedConstant( $constant ) {
183 190
 		return defined( $constant );
184 191
 	}
Please login to merge, or discard this patch.
src/DataValues/UniquenessConstraintValue.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/ValueValidators/UniquenessConstraintValueValidator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@
 block discarded – undo
136 136
 		}
137 137
 	}
138 138
 
139
+	/**
140
+	 * @param string $hash
141
+	 */
139 142
 	private function tryFindMatchResultFor( $hash, $dataValue ) {
140 143
 
141 144
 		$descriptionFactory = $this->queryFactory->newDescriptionFactory();
Please login to merge, or discard this patch.
src/DataValues/ValueValidators/PatternConstraintValueValidator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -85,6 +85,9 @@
 block discarded – undo
85 85
 		);
86 86
 	}
87 87
 
88
+	/**
89
+	 * @param string $pattern
90
+	 */
88 91
 	private function doPregMatch( $pattern, $dataValue, $reference ) {
89 92
 
90 93
 		// Add a mandatory backslash
Please login to merge, or discard this patch.
src/SQLStore/PropertyTableIdReferenceFinder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -119,6 +119,9 @@
 block discarded – undo
119 119
 		return $reference === false || $reference === null ? false : $reference;
120 120
 	}
121 121
 
122
+	/**
123
+	 * @param integer $id
124
+	 */
122 125
 	private function findReferenceByPropertyTable( $proptable, $id ) {
123 126
 
124 127
 		$row = false;
Please login to merge, or discard this patch.
tests/phpunit/Unit/SQLStore/PropertyTableIdReferenceDisposerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SMW\Tests\SQLStore;
4 4
 
5 5
 use SMW\SQLStore\PropertyTableOutdatedReferenceDisposer;
6
-use Title;
7 6
 
8 7
 /**
9 8
  * @covers \SMW\SQLStore\PropertyTableOutdatedReferenceDisposer
Please login to merge, or discard this patch.
includes/storage/SQLStore/SMW_SQLStore3_Readers.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 	 *
185 185
 	 * @since 1.8
186 186
 	 *
187
-	 * @param $subject mixed DIWikiPage or null
187
+	 * @param null|SMWDataItem $subject mixed DIWikiPage or null
188 188
 	 * @param $property SMWDIProperty
189 189
 	 * @param $requestOptions SMWRequestOptions
190 190
 	 *
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	 * @param SMWDataItem $value
662 662
 	 * @param SMWRequestOptions|null $requestOptions
663 663
 	 *
664
-	 * @return array of SMWWikiPageValue
664
+	 * @return SMWDataItem[] of SMWWikiPageValue
665 665
 	 */
666 666
 	public function getInProperties( SMWDataItem $value, SMWRequestOptions $requestOptions = null ) {
667 667
 
Please login to merge, or discard this patch.