@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @param array $newname |
|
| 76 | + * @param string $newname |
|
| 77 | 77 | * @return string |
| 78 | 78 | * @throws MWException |
| 79 | 79 | */ |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return string|null |
|
| 110 | + * @return string |
|
| 111 | 111 | */ |
| 112 | 112 | function getFilenames() { |
| 113 | 113 | return $this->filename; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Override to write to a different stream type. |
| 78 | 78 | * @param string $string |
| 79 | - * @return bool |
|
| 79 | + * @return boolean|null |
|
| 80 | 80 | */ |
| 81 | 81 | function write( $string ) { |
| 82 | 82 | print $string; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * and reopen new file with the old name. Use this |
| 88 | 88 | * for writing out a file in multiple pieces |
| 89 | 89 | * at specified checkpoints (e.g. every n hours). |
| 90 | - * @param string|array $newname File name. May be a string or an array with one element |
|
| 90 | + * @param string $newname File name. May be a string or an array with one element |
|
| 91 | 91 | */ |
| 92 | 92 | function closeRenameAndReopen( $newname ) { |
| 93 | 93 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Close the old file, and move it to a specified name. |
| 97 | 97 | * Use this for the last piece of a file written out |
| 98 | 98 | * at specified checkpoints (e.g. every n hours). |
| 99 | - * @param string|array $newname File name. May be a string or an array with one element |
|
| 99 | + * @param string $newname File name. May be a string or an array with one element |
|
| 100 | 100 | * @param bool $open If true, a new file with the old filename will be opened |
| 101 | 101 | * again for writing (default: false) |
| 102 | 102 | */ |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | * Not called by default (depends on $this->list_authors) |
| 211 | 211 | * Can be set by Special:Export when not exporting whole history |
| 212 | 212 | * |
| 213 | - * @param array $cond |
|
| 213 | + * @param string $cond |
|
| 214 | 214 | */ |
| 215 | 215 | protected function do_list_authors( $cond ) { |
| 216 | 216 | $this->author_list = "<contributors>"; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Fallback implementation of mb_strpos, hardcoded to UTF-8. |
| 132 | 132 | * @param string $haystack |
| 133 | 133 | * @param string $needle |
| 134 | - * @param string $offset Optional start position |
|
| 134 | + * @param integer $offset Optional start position |
|
| 135 | 135 | * @param string $encoding Optional encoding; ignored |
| 136 | 136 | * @return int |
| 137 | 137 | */ |
@@ -152,9 +152,9 @@ discard block |
||
| 152 | 152 | * Fallback implementation of mb_strrpos, hardcoded to UTF-8. |
| 153 | 153 | * @param string $haystack |
| 154 | 154 | * @param string $needle |
| 155 | - * @param string $offset Optional start position |
|
| 155 | + * @param integer $offset Optional start position |
|
| 156 | 156 | * @param string $encoding Optional encoding; ignored |
| 157 | - * @return int |
|
| 157 | + * @return string|false |
|
| 158 | 158 | */ |
| 159 | 159 | public static function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) { |
| 160 | 160 | $needle = preg_quote( $needle, '/' ); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param array $data Array of *non*-urlencoded key => value pairs, the |
| 40 | 40 | * fake GET/POST values |
| 41 | 41 | * @param bool $wasPosted Whether to treat the data as POST |
| 42 | - * @param MediaWiki\\Session\\Session|array|null $session Session, session |
|
| 42 | + * @param MediaWiki\Session\Session $session Session, session |
|
| 43 | 43 | * data array, or null |
| 44 | 44 | * @param string $protocol 'http' or 'https' |
| 45 | 45 | * @throws MWException |
@@ -126,7 +126,6 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @since 1.26 |
| 129 | - * @param string $name Unprefixed name of the cookie to set |
|
| 130 | 129 | * @param string|null $value Value of the cookie to set |
| 131 | 130 | * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix |
| 132 | 131 | */ |
@@ -152,6 +151,7 @@ discard block |
||
| 152 | 151 | |
| 153 | 152 | /** |
| 154 | 153 | * @since 1.25 |
| 154 | + * @param string $url |
|
| 155 | 155 | */ |
| 156 | 156 | public function setRequestURL( $url ) { |
| 157 | 157 | $this->requestUrl = $url; |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | /** |
| 193 | 193 | * Get an explanatory message if this backend is read-only |
| 194 | 194 | * |
| 195 | - * @return string|bool Returns false if the backend is not read-only |
|
| 195 | + * @return string|false Returns false if the backend is not read-only |
|
| 196 | 196 | */ |
| 197 | 197 | final public function getReadOnlyReason() { |
| 198 | 198 | return ( $this->readOnly != '' ) ? $this->readOnly : false; |
@@ -1392,7 +1392,7 @@ discard block |
||
| 1392 | 1392 | * "mwstore://backend/container/...", or null if there is no parent. |
| 1393 | 1393 | * |
| 1394 | 1394 | * @param string $storagePath |
| 1395 | - * @return string|null |
|
| 1395 | + * @return string |
|
| 1396 | 1396 | */ |
| 1397 | 1397 | final public static function parentStoragePath( $storagePath ) { |
| 1398 | 1398 | $storagePath = dirname( $storagePath ); |
@@ -753,7 +753,7 @@ discard block |
||
| 753 | 753 | /** |
| 754 | 754 | * @see FileBackendStore::getFileSha1Base36() |
| 755 | 755 | * @param array $params |
| 756 | - * @return bool|string |
|
| 756 | + * @return false|string |
|
| 757 | 757 | */ |
| 758 | 758 | protected function doGetFileSha1Base36( array $params ) { |
| 759 | 759 | $fsFile = $this->getLocalReference( $params ); |
@@ -1190,7 +1190,7 @@ discard block |
||
| 1190 | 1190 | * @param FileBackendStoreOpHandle[] $fileOpHandles |
| 1191 | 1191 | * |
| 1192 | 1192 | * @throws FileBackendError |
| 1193 | - * @return array Map of Status objects |
|
| 1193 | + * @return Status[] Map of Status objects |
|
| 1194 | 1194 | */ |
| 1195 | 1195 | final public function executeOpHandlesInternal( array $fileOpHandles ) { |
| 1196 | 1196 | $ps = Profiler::instance()->scopedProfileIn( __METHOD__ . "-{$this->name}" ); |
@@ -1578,7 +1578,7 @@ discard block |
||
| 1578 | 1578 | * Subclasses can override this to be more restrictive. |
| 1579 | 1579 | * |
| 1580 | 1580 | * @param string $container |
| 1581 | - * @return string|null |
|
| 1581 | + * @return string |
|
| 1582 | 1582 | */ |
| 1583 | 1583 | protected function resolveContainerName( $container ) { |
| 1584 | 1584 | return $container; |
@@ -1592,7 +1592,7 @@ discard block |
||
| 1592 | 1592 | * |
| 1593 | 1593 | * @param string $container Container name |
| 1594 | 1594 | * @param string $relStoragePath Storage path relative to the container |
| 1595 | - * @return string|null Path or null if not valid |
|
| 1595 | + * @return string Path or null if not valid |
|
| 1596 | 1596 | */ |
| 1597 | 1597 | protected function resolveContainerPath( $container, $relStoragePath ) { |
| 1598 | 1598 | return $relStoragePath; |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | 218 | * @see FileJournal::doGetCurrentPosition() |
| 219 | - * @return int|bool |
|
| 219 | + * @return boolean |
|
| 220 | 220 | */ |
| 221 | 221 | protected function doGetCurrentPosition() { |
| 222 | 222 | return false; |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | /** |
| 226 | 226 | * @see FileJournal::doGetPositionAtTime() |
| 227 | 227 | * @param int|string $time Timestamp |
| 228 | - * @return int|bool |
|
| 228 | + * @return boolean |
|
| 229 | 229 | */ |
| 230 | 230 | protected function doGetPositionAtTime( $time ) { |
| 231 | 231 | return false; |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | * Get the value of the parameter with the given name |
| 129 | 129 | * |
| 130 | 130 | * @param string $name |
| 131 | - * @return mixed Returns null if the parameter is not set |
|
| 131 | + * @return string Returns null if the parameter is not set |
|
| 132 | 132 | */ |
| 133 | 133 | final public function getParam( $name ) { |
| 134 | 134 | return isset( $this->params[$name] ) ? $this->params[$name] : null; |