@@ -67,7 +67,7 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * @return DescriptionsProvider|EntityDocument |
|
70 | + * @return EntityDocument |
|
71 | 71 | */ |
72 | 72 | protected abstract function getEntity(); |
73 | 73 |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | - * @return LabelsProvider|EntityDocument |
|
68 | + * @return EntityDocument |
|
69 | 69 | */ |
70 | 70 | protected abstract function getEntity(); |
71 | 71 |
@@ -18,6 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | private $languages; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string[] $languages |
|
23 | + */ |
|
21 | 24 | public function __construct( $languages ) { |
22 | 25 | $this->languages = $languages; |
23 | 26 | parent::__construct( "", \SearchIndexField::INDEX_TYPE_NESTED ); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Produce specific field mapping |
61 | 61 | * @param SearchEngine $engine |
62 | 62 | * @param string $name |
63 | - * @return SearchIndexField |
|
63 | + * @return null|TermIndexField |
|
64 | 64 | */ |
65 | 65 | public function getMappingField( SearchEngine $engine, $name ) { |
66 | 66 | if ( !( $engine instanceof CirrusSearch ) ) { |
@@ -7,7 +7,6 @@ discard block |
||
7 | 7 | use Wikibase\ChangeOp\ChangeOp; |
8 | 8 | use Wikibase\ChangeOp\ChangeOpException; |
9 | 9 | use Wikibase\ChangeOp\ChangeOpValidationException; |
10 | -use Wikibase\CopyrightMessageBuilder; |
|
11 | 10 | use Wikibase\DataModel\Entity\EntityDocument; |
12 | 11 | use Wikibase\DataModel\Entity\EntityId; |
13 | 12 | use Wikibase\EditEntityFactory; |
@@ -18,7 +17,6 @@ discard block |
||
18 | 17 | use Wikibase\Lib\Store\RevisionedUnresolvedRedirectException; |
19 | 18 | use Wikibase\Lib\Store\StorageException; |
20 | 19 | use Wikibase\Lib\UserInputException; |
21 | -use Wikibase\Repo\WikibaseRepo; |
|
22 | 20 | use Wikibase\Summary; |
23 | 21 | use Wikibase\SummaryFormatter; |
24 | 22 |
@@ -106,6 +106,9 @@ discard block |
||
106 | 106 | $redirectRows ); |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param string $termType |
|
111 | + */ |
|
109 | 112 | private function getTermRows( EntityId $id, $termType, $terms ) { |
110 | 113 | $rows = []; |
111 | 114 | |
@@ -152,6 +155,9 @@ discard block |
||
152 | 155 | return $page; |
153 | 156 | } |
154 | 157 | |
158 | + /** |
|
159 | + * @param string $table |
|
160 | + */ |
|
155 | 161 | private function insertRows( $table, array $fields, array $rows ) { |
156 | 162 | $dbw = wfGetDB( DB_MASTER ); |
157 | 163 |
@@ -263,6 +263,13 @@ discard block |
||
263 | 263 | ]; |
264 | 264 | } |
265 | 265 | |
266 | + /** |
|
267 | + * @param integer $numericEntityId |
|
268 | + * @param string $fullEntityId |
|
269 | + * @param string $entityType |
|
270 | + * @param string $languageCode |
|
271 | + * @param string $termType |
|
272 | + */ |
|
266 | 273 | private function getTermRow( |
267 | 274 | $numericEntityId, |
268 | 275 | $fullEntityId, |
@@ -281,6 +288,11 @@ discard block |
||
281 | 288 | ]; |
282 | 289 | } |
283 | 290 | |
291 | + /** |
|
292 | + * @param integer $entityNamespace |
|
293 | + * @param integer $numericEntityId |
|
294 | + * @param string $entityIdPrefix |
|
295 | + */ |
|
284 | 296 | private function getPageRow( $entityNamespace, $numericEntityId, $entityIdPrefix, $isRedirect ) { |
285 | 297 | return [ |
286 | 298 | 'page_namespace' => $entityNamespace, |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * @param Title &$oldTitle |
81 | 81 | * @param Title &$newTitle |
82 | 82 | * |
83 | - * @return bool |
|
83 | + * @return boolean|null |
|
84 | 84 | */ |
85 | 85 | public function doSpecialMovepageAfterMove( |
86 | 86 | MovePageForm $movePage, |
@@ -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 ); |