X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FFileRepo.php;h=60f1607c7e18c424b6b2659f8603d38a9bc64782;hb=7b69a2b340c643ec28138c29e60d4632fafc7939;hp=51cef8102956e3b1720a75d76f885b04dcb1a952;hpb=701b642fdc55de095e050cc56d65c61225473a06;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 51cef81029..60f1607c7e 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -45,7 +45,8 @@ class FileRepo { const NAME_AND_TIME_ONLY = 1; /** @var bool Whether to fetch commons image description pages and display - * them on the local wiki */ + * them on the local wiki + */ public $fetchDescription; /** @var int */ @@ -67,7 +68,8 @@ class FileRepo { protected $thumbScriptUrl; /** @var bool Whether to skip media file transformation on parse and rely - * on a 404 handler instead. */ + * on a 404 handler instead. + */ protected $transformVia404; /** @var string URL of image description pages, e.g. @@ -121,13 +123,13 @@ class FileRepo { /** @var bool Whether all zones should be private (e.g. private wiki repo) */ protected $isPrivate; - /** @var array callable Override these in the base class */ + /** @var callable Override these in the base class */ protected $fileFactory = [ UnregisteredLocalFile::class, 'newFromTitle' ]; - /** @var array callable|bool Override these in the base class */ + /** @var callable|false Override these in the base class */ protected $oldFileFactory = false; - /** @var array callable|bool Override these in the base class */ + /** @var callable|false Override these in the base class */ protected $fileFactoryKey = false; - /** @var array callable|bool Override these in the base class */ + /** @var callable|false Override these in the base class */ protected $oldFileFactoryKey = false; /** @var string URL of where to proxy thumb.php requests to. @@ -230,7 +232,7 @@ class FileRepo { /** * Check if a single zone or list of zones is defined for usage * - * @param array $doZones Only do a particular zones + * @param string[]|string $doZones Only do a particular zones * @throws MWException * @return Status */ @@ -734,7 +736,7 @@ class FileRepo { /** * Make an url to this repo * - * @param string $query Query string to append + * @param string|string[] $query Query string to append * @param string $entry Entry point; defaults to index * @return string|bool False on failure */ @@ -1739,7 +1741,7 @@ class FileRepo { /** * Create a new good result * - * @param null|string $value + * @param null|mixed $value * @return Status */ public function newGood( $value = null ) {