@@ -166,6 +166,9 @@ |
||
| 166 | 166 | return $mockDataTypeLookup; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $string |
|
| 171 | + */ |
|
| 169 | 172 | private function fixLineEndings( $string ) { |
| 170 | 173 | return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string ); |
| 171 | 174 | } |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | * @param array $data |
| 145 | 145 | * @param EntityId|string|null $id |
| 146 | 146 | * |
| 147 | - * @return object |
|
| 147 | + * @return EntityDocument |
|
| 148 | 148 | */ |
| 149 | 149 | public function unserializeEntity( array $data, $id = null ) { |
| 150 | 150 | if ( $id !== null ) { |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | ); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $idString |
|
| 149 | + */ |
|
| 147 | 150 | private function newItemWithId( $idString ) { |
| 148 | 151 | return new Item( new ItemId( $idString ) ); |
| 149 | 152 | } |
@@ -451,6 +451,9 @@ |
||
| 451 | 451 | } |
| 452 | 452 | } |
| 453 | 453 | |
| 454 | + /** |
|
| 455 | + * @param string $message |
|
| 456 | + */ |
|
| 454 | 457 | private function log( $message ) { |
| 455 | 458 | $this->messageReporter->reportMessage( $message ); |
| 456 | 459 | } |
@@ -56,6 +56,9 @@ |
||
| 56 | 56 | $this->dataUpdaters = $dataUpdaters; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param ParserOutputDataUpdater $updater |
|
| 61 | + */ |
|
| 59 | 62 | private function registerDataUpdater( $updater ) { |
| 60 | 63 | if ( !( $updater instanceof StatementDataUpdater ) && |
| 61 | 64 | !( $updater instanceof SiteLinkDataUpdater ) |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @param object $listener |
| 44 | 44 | * |
| 45 | 45 | * @throws InvalidArgumentException |
| 46 | - * @return mixed The listener key, for removing the listener later. |
|
| 46 | + * @return integer The listener key, for removing the listener later. |
|
| 47 | 47 | */ |
| 48 | 48 | public function registerWatcher( $listener ) { |
| 49 | 49 | if ( !is_subclass_of( $listener, $this->interface ) ) { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * Unregisters a watcher using its registration key. The watcher will no longer |
| 60 | 60 | * be called by dispatch(). |
| 61 | 61 | * |
| 62 | - * @param mixed $key A watcher key as returned by registerWatcher(). |
|
| 62 | + * @param integer $key A watcher key as returned by registerWatcher(). |
|
| 63 | 63 | * |
| 64 | 64 | * @throws InvalidArgumentException |
| 65 | 65 | */ |
@@ -162,8 +162,8 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * @see QueryPage::reallyDoQuery |
| 164 | 164 | * |
| 165 | - * @param int|bool $limit |
|
| 166 | - * @param int|bool $offset |
|
| 165 | + * @param integer $limit |
|
| 166 | + * @param integer $offset |
|
| 167 | 167 | * |
| 168 | 168 | * @return ResultWrapper |
| 169 | 169 | */ |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | /** |
| 211 | 211 | * Returns a map of namespace names to URIs |
| 212 | 212 | * |
| 213 | - * @return array |
|
| 213 | + * @return string[] |
|
| 214 | 214 | */ |
| 215 | 215 | public function getNamespaces() { |
| 216 | 216 | return $this->vocabulary->getNamespaces(); |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | /** |
| 184 | 184 | * @see Store::getLabelConflictFinder |
| 185 | 185 | * |
| 186 | - * @return LabelConflictFinder |
|
| 186 | + * @return TermIndex |
|
| 187 | 187 | */ |
| 188 | 188 | public function getLabelConflictFinder() { |
| 189 | 189 | return $this->getTermIndex(); |