@@ -142,6 +142,9 @@ |
||
142 | 142 | } |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param integer $value |
|
147 | + */ |
|
145 | 148 | protected function formatDate( $value ) { |
146 | 149 | switch ( $this->mType ) { |
147 | 150 | case 'date': |
@@ -21,10 +21,6 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param array $config Configuration options |
24 | - * @param string $config['type'] 'date', 'time', or 'datetime' |
|
25 | - * @param string $config['min'] Minimum date, time, or datetime |
|
26 | - * @param string $config['max'] Maximum date, time, or datetime |
|
27 | - * @param bool $config['clearable'] Whether to provide for blanking the value. |
|
28 | 24 | */ |
29 | 25 | public function __construct( array $config = [] ) { |
30 | 26 | // We need $this->type set before calling the parent constructor |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * Get the default action for this special page, if none is given via URL/POST data. |
197 | 197 | * Subclasses should override this (or override loadAuth() so this is never called). |
198 | 198 | * @param string $subPage Subpage of the special page. |
199 | - * @return string an AuthManager::ACTION_* constant. |
|
199 | + * @return string|null an AuthManager::ACTION_* constant. |
|
200 | 200 | */ |
201 | 201 | protected function getDefaultAction( $subPage ) { |
202 | 202 | throw new BadMethodCallException( 'Subclass did not implement getDefaultAction' ); |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | * Get an array value, or a default if it does not exist. |
733 | 733 | * @param array $array |
734 | 734 | * @param string $fieldName |
735 | - * @param mixed $default |
|
735 | + * @param integer $default |
|
736 | 736 | * @return mixed |
737 | 737 | */ |
738 | 738 | protected static function getField( array $array, $fieldName, $default = null ) { |
@@ -186,6 +186,11 @@ |
||
186 | 186 | $this->handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) ); |
187 | 187 | } |
188 | 188 | |
189 | + /** |
|
190 | + * @param string $search |
|
191 | + * @param integer $limit |
|
192 | + * @param integer $offset |
|
193 | + */ |
|
189 | 194 | private function handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) { |
190 | 195 | if ( $offset === 0 ) { |
191 | 196 | // Only perform exact db match if offset === 0 |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | * NOTE: This ONLY works for getTitleInfo() and isKnownEmpty(), NOT FOR ANYTHING ELSE. |
137 | 137 | * In particular, it doesn't work for getContent() or getScript() etc. |
138 | 138 | * |
139 | - * @return IDatabase|null |
|
139 | + * @return Database|null |
|
140 | 140 | */ |
141 | 141 | protected function getDB() { |
142 | 142 | return wfGetDB( DB_REPLICA ); |
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * @param string $title |
|
146 | + * @param string $titleText |
|
147 | 147 | * @return null|string |
148 | 148 | */ |
149 | 149 | protected function getContent( $titleText ) { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | * @since 1.28 |
337 | 337 | * @param ResourceLoaderContext $context |
338 | 338 | * @param IDatabase $db |
339 | - * @param string[] $modules |
|
339 | + * @param string[] $moduleNames |
|
340 | 340 | */ |
341 | 341 | public static function preloadTitleInfo( |
342 | 342 | ResourceLoaderContext $context, IDatabase $db, array $moduleNames |
@@ -152,6 +152,10 @@ |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | /* Core function which does whatever the maintenance script is designed to do */ |
155 | + |
|
156 | + /** |
|
157 | + * @param Database $rev |
|
158 | + */ |
|
155 | 159 | abstract public function processRevision( $rev ); |
156 | 160 | } |
157 | 161 |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | /** |
296 | 296 | * Get an argument. |
297 | 297 | * @param int $argId The integer value (from zero) for the arg |
298 | - * @param mixed $default The default if it doesn't exist |
|
298 | + * @param string $default The default if it doesn't exist |
|
299 | 299 | * @return mixed |
300 | 300 | */ |
301 | 301 | protected function getArg( $argId = 0, $default = null ) { |
@@ -1344,6 +1344,7 @@ discard block |
||
1344 | 1344 | * Unlock and lock again |
1345 | 1345 | * Since the lock is low-priority, queued reads will be able to complete |
1346 | 1346 | * @param Database &$db |
1347 | + * @param Database $db |
|
1347 | 1348 | */ |
1348 | 1349 | private function relockSearchindex( $db ) { |
1349 | 1350 | $this->unlockSearchindex( $db ); |