@@ -52,6 +52,9 @@ |
||
52 | 52 | $this->assertInstanceOf( SubmitEntityAction::class, $action ); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $key |
|
57 | + */ |
|
55 | 58 | protected function adjustRevisionParam( $key, array &$params, WikiPage $page ) { |
56 | 59 | if ( !isset( $params[$key] ) || ( is_int( $params[$key] ) && $params[$key] > 0 ) ) { |
57 | 60 | return; |
@@ -112,6 +112,9 @@ |
||
112 | 112 | ); |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @param string $languageCode |
|
117 | + */ |
|
115 | 118 | protected function getHeadingHtml( |
116 | 119 | $languageCode, |
117 | 120 | EntityId $entityId = null, |
@@ -79,6 +79,9 @@ |
||
79 | 79 | ); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $term |
|
84 | + */ |
|
82 | 85 | private function getTermList( $term, $languageCode = 'en' ) { |
83 | 86 | return new TermList( [ new Term( $languageCode, $term ) ] ); |
84 | 87 | } |
@@ -142,6 +142,9 @@ |
||
142 | 142 | return $this->wrapInListview( $referencesHtml ); |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param string $listviewContent |
|
147 | + */ |
|
145 | 148 | private function wrapInListview( $listviewContent ) { |
146 | 149 | if ( $listviewContent !== '' ) { |
147 | 150 | return $this->templateFactory->render( 'wikibase-listview', $listviewContent ); |
@@ -229,6 +229,9 @@ |
||
229 | 229 | return $languageFallbackChain; |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param string $languageCode |
|
234 | + */ |
|
232 | 235 | private function getBabel( $languageCode, $user ) { |
233 | 236 | $babel = []; |
234 | 237 |
@@ -157,6 +157,10 @@ |
||
157 | 157 | $this->makeSetQualifierRequest( $guid, $hash, $newQualifier, $item->getId() ); |
158 | 158 | } |
159 | 159 | |
160 | + /** |
|
161 | + * @param string|null $statementGuid |
|
162 | + * @param null|string $snakhash |
|
163 | + */ |
|
160 | 164 | protected function makeSetQualifierRequest( $statementGuid, $snakhash, Snak $qualifier, EntityId $entityId ) { |
161 | 165 | $params = [ |
162 | 166 | 'action' => 'wbsetqualifier', |
@@ -150,6 +150,9 @@ |
||
150 | 150 | ]; |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param string $idString |
|
155 | + */ |
|
153 | 156 | private function newItemWithId( $idString ) { |
154 | 157 | return NewItem::withId( $idString ) |
155 | 158 | ->build(); |
@@ -82,6 +82,9 @@ |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param EntityUsage[] $actualUsages |
|
87 | + */ |
|
85 | 88 | private function hasUsage( $actualUsages, EntityId $entityId, $aspect, $modifier = null ) { |
86 | 89 | $usage = new EntityUsage( $entityId, $aspect, $modifier ); |
87 | 90 | $key = $usage->getIdentityString(); |
@@ -106,6 +106,8 @@ discard block |
||
106 | 106 | |
107 | 107 | /** |
108 | 108 | * @see andLabel |
109 | + * @param string $languageCode |
|
110 | + * @param string $label |
|
109 | 111 | */ |
110 | 112 | public static function withLabel( $languageCode, $label ) { |
111 | 113 | return ( new self() )->andLabel( $languageCode, $label ); |
@@ -125,6 +127,8 @@ discard block |
||
125 | 127 | |
126 | 128 | /** |
127 | 129 | * @see andDescription |
130 | + * @param string $languageCode |
|
131 | + * @param string $description |
|
128 | 132 | */ |
129 | 133 | public static function withDescription( $languageCode, $description ) { |
130 | 134 | return ( new self() )->andDescription( $languageCode, $description ); |
@@ -144,6 +148,8 @@ discard block |
||
144 | 148 | |
145 | 149 | /** |
146 | 150 | * @see andAliases |
151 | + * @param string $languageCode |
|
152 | + * @param string[] $aliases |
|
147 | 153 | */ |
148 | 154 | public static function withAliases( $languageCode, $aliases ) { |
149 | 155 | return ( new self() )->andAliases( $languageCode, $aliases ); |
@@ -163,6 +169,8 @@ discard block |
||
163 | 169 | |
164 | 170 | /** |
165 | 171 | * @see andSiteLink |
172 | + * @param string $siteId |
|
173 | + * @param string $pageName |
|
166 | 174 | */ |
167 | 175 | public static function withSiteLink( $siteId, $pageName, $badges = null ) { |
168 | 176 | return ( new self() )->andSiteLink( $siteId, $pageName, $badges ); |
@@ -189,6 +197,7 @@ discard block |
||
189 | 197 | |
190 | 198 | /** |
191 | 199 | * @see andStatement |
200 | + * @param Statement $statement |
|
192 | 201 | */ |
193 | 202 | public static function withStatement( $statement ) { |
194 | 203 | return ( new self() )->andStatement( $statement ); |