Completed
Push — remove-splobjectstorage-inheri... ( b5a331 )
by Bene
14:12 queued 11:02
created
src/ByPropertyIdArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 	 * @since 0.5
133 133
 	 *
134 134
 	 * @param object $object
135
-	 * @return bool|int
135
+	 * @return integer
136 136
 	 *
137 137
 	 * @throws RuntimeException
138 138
 	 */
Please login to merge, or discard this patch.
src/Entity/Entity.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 *
198 198
 	 * @param string $languageCode
199 199
 	 *
200
-	 * @return string|bool
200
+	 * @return false|string
201 201
 	 */
202 202
 	public function getDescription( $languageCode ) {
203 203
 		if ( !$this->getFingerprint()->hasDescription( $languageCode ) ) {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 	 *
216 216
 	 * @param string $languageCode
217 217
 	 *
218
-	 * @return string|bool
218
+	 * @return false|string
219 219
 	 */
220 220
 	public function getLabel( $languageCode ) {
221 221
 		if ( !$this->getFingerprint()->hasLabel( $languageCode ) ) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 use Wikibase\DataModel\Term\AliasGroupList;
12 12
 use Wikibase\DataModel\Term\Fingerprint;
13 13
 use Wikibase\DataModel\Term\FingerprintProvider;
14
-use Wikibase\DataModel\Term\Term;
15 14
 use Wikibase\DataModel\Term\TermList;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
src/HashArray.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@
 block discarded – undo
381 381
 	/**
382 382
 	 * @see ArrayObject::append
383 383
 	 *
384
-	 * @param mixed $value
384
+	 * @param Hashable $value
385 385
 	 */
386 386
 	public function append( $value ) {
387 387
 		$this->setElement( null, $value );
Please login to merge, or discard this patch.
src/Term/AliasGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 	/**
85 85
 	 * @see Comparable::equals
86 86
 	 *
87
-	 * @param mixed $target
87
+	 * @param AliasGroup $target
88 88
 	 *
89 89
 	 * @return bool
90 90
 	 */
Please login to merge, or discard this patch.
tests/unit/Claim/ClaimsTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
 
29 29
 	private $guidCounter = 0;
30 30
 
31
+	/**
32
+	 * @param string $guid
33
+	 */
31 34
 	private function makeStatement( Snak $mainSnak, $guid = null ) {
32 35
 		if ( $guid === null ) {
33 36
 			$this->guidCounter++;
Please login to merge, or discard this patch.
tests/unit/Statement/StatementListTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@
 block discarded – undo
51 51
 		return $statement;
52 52
 	}
53 53
 
54
+	/**
55
+	 * @param integer $propertyId
56
+	 * @param string $stringValue
57
+	 */
54 58
 	private function getStatementWithSnak( $propertyId, $stringValue ) {
55 59
 		$snak = $this->newSnak( $propertyId, $stringValue );
56 60
 		$statement = new Statement( $snak );
Please login to merge, or discard this patch.
tests/unit/Statement/StatementByGuidMapTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -30,6 +30,10 @@
 block discarded – undo
30 30
 		$this->assertTrue( $statements->hasStatementWithGuid( 'some guid' ) );
31 31
 	}
32 32
 
33
+	/**
34
+	 * @param integer $propertyId
35
+	 * @param string|null $guid
36
+	 */
33 37
 	private function newStatement( $propertyId, $guid ) {
34 38
 		$statement = new Statement( new PropertyNoValueSnak( $propertyId ) );
35 39
 		$statement->setGuid( $guid );
Please login to merge, or discard this patch.
src/Entity/Item.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * Can be ItemId since 0.5.
61 61
 	 * Can be null since 1.0.
62 62
 	 *
63
-	 * @param ItemId|int|null $id
63
+	 * @param integer $id
64 64
 	 *
65 65
 	 * @throws InvalidArgumentException
66 66
 	 */
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	/**
110 110
 	 * @since 0.1 return type changed in 0.3
111 111
 	 *
112
-	 * @return ItemId|null
112
+	 * @return EntityId|null
113 113
 	 */
114 114
 	public function getId() {
115 115
 		return $this->id;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 	 *
301 301
 	 * @since 0.1
302 302
 	 *
303
-	 * @param mixed $target
303
+	 * @param Item $target
304 304
 	 *
305 305
 	 * @return bool
306 306
 	 */
Please login to merge, or discard this patch.
src/Entity/Property.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	/**
107 107
 	 * @since 0.1 return type changed in 0.3
108 108
 	 *
109
-	 * @return PropertyId|null
109
+	 * @return EntityId|null
110 110
 	 */
111 111
 	public function getId() {
112 112
 		return $this->id;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 *
169 169
 	 * @since 0.1
170 170
 	 *
171
-	 * @param mixed $target
171
+	 * @param Property $target
172 172
 	 *
173 173
 	 * @return bool
174 174
 	 */
Please login to merge, or discard this patch.