dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup some incorrect return annotations
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
FileRepo.php
diff --git
a/includes/filerepo/FileRepo.php
b/includes/filerepo/FileRepo.php
index
66dab99
..
41f5281
100644
(file)
--- a/
includes/filerepo/FileRepo.php
+++ b/
includes/filerepo/FileRepo.php
@@
-99,7
+99,7
@@
class FileRepo {
*/
protected $pathDisclosureProtection = 'simple';
*/
protected $pathDisclosureProtection = 'simple';
- /** @var
bool
Public zone URL. */
+ /** @var
string|false
Public zone URL. */
protected $url;
/** @var string The base thumbnail URL. Defaults to "<url>/thumb". */
protected $url;
/** @var string The base thumbnail URL. Defaults to "<url>/thumb". */
@@
-309,7
+309,7
@@
class FileRepo {
* @return bool Whether non-ASCII path characters are allowed
*/
public function backendSupportsUnicodePaths() {
* @return bool Whether non-ASCII path characters are allowed
*/
public function backendSupportsUnicodePaths() {
- return ( $this->getBackend()->getFeatures() & FileBackend::ATTR_UNICODE_PATHS );
+ return (
bool)(
$this->getBackend()->getFeatures() & FileBackend::ATTR_UNICODE_PATHS );
}
/**
}
/**
@@
-737,7
+737,7
@@
class FileRepo {
* constructor, whereas local repositories use the local Title functions.
*
* @param string $name
* constructor, whereas local repositories use the local Title functions.
*
* @param string $name
- * @return string
+ * @return string
|false
*/
public function getDescriptionUrl( $name ) {
$encName = wfUrlencode( $name );
*/
public function getDescriptionUrl( $name ) {
$encName = wfUrlencode( $name );
@@
-771,7
+771,7
@@
class FileRepo {
*
* @param string $name Name of image to fetch
* @param string $lang Language to fetch it in, if any.
*
* @param string $name Name of image to fetch
* @param string $lang Language to fetch it in, if any.
- * @return string
+ * @return string
|false
*/
public function getDescriptionRenderUrl( $name, $lang = null ) {
$query = 'action=render';
*/
public function getDescriptionRenderUrl( $name, $lang = null ) {
$query = 'action=render';