diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-07-31 02:02:18 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-11-03 18:55:47 +0100 |
commit | 1b342a889388da44c084809e65854f307a009ba9 (patch) | |
tree | 4a9f766a6fa70cd155f6586b1d6546d52002289a /includes/filerepo/ForeignAPIRepo.php | |
parent | 5b703126e52c417d870f81d935bfa1d452d559da (diff) | |
download | mediawikicore-1b342a889388da44c084809e65854f307a009ba9.tar.gz mediawikicore-1b342a889388da44c084809e65854f307a009ba9.zip |
Various doc fixes about false and null on method arguments/return types
Doc-only changes
Change-Id: Ice974b3ba41708859dfe646e94b31c5ebbf26410
Diffstat (limited to 'includes/filerepo/ForeignAPIRepo.php')
-rw-r--r-- | includes/filerepo/ForeignAPIRepo.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index cae759f8ea0a..3b35dce68a80 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -125,7 +125,7 @@ class ForeignAPIRepo extends FileRepo implements IForeignRepoWithMWApi { * files. Well, we don't. * * @param PageIdentity|LinkTarget|string $title - * @param string|bool $time + * @param string|false $time * @return File|false */ public function newFile( $title, $time = false ) { @@ -231,7 +231,7 @@ class ForeignAPIRepo extends FileRepo implements IForeignRepoWithMWApi { /** * @param array $data - * @return bool|array + * @return array|false */ public function getImageInfo( $data ) { if ( $data && isset( $data['query']['pages'] ) ) { @@ -310,7 +310,7 @@ class ForeignAPIRepo extends FileRepo implements IForeignRepoWithMWApi { * @param int $height * @param string $otherParams * @param string|null $lang Language code for language of error - * @return bool|MediaTransformError + * @return MediaTransformError|false * @since 1.22 */ public function getThumbError( @@ -353,7 +353,7 @@ class ForeignAPIRepo extends FileRepo implements IForeignRepoWithMWApi { * @param int $height * @param string $params Other rendering parameters (page number, etc) * from handler's makeParamString. - * @return bool|string + * @return string|false */ public function getThumbUrlFromCache( $name, $width, $height, $params = "" ) { // We can't check the local cache using FileRepo functions because @@ -466,7 +466,7 @@ class ForeignAPIRepo extends FileRepo implements IForeignRepoWithMWApi { /** * Get the local directory corresponding to one of the basic zones * @param string $zone - * @return bool|null|string + * @return null|string|false */ public function getZonePath( $zone ) { $supported = [ 'public', 'thumb' ]; |