aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/backend
diff options
context:
space:
mode:
Diffstat (limited to 'includes/filerepo/backend')
-rw-r--r--includes/filerepo/backend/FSFile.php8
-rw-r--r--includes/filerepo/backend/FileBackend.php2
-rw-r--r--includes/filerepo/backend/lockmanager/LSLockManager.php2
3 files changed, 6 insertions, 6 deletions
diff --git a/includes/filerepo/backend/FSFile.php b/includes/filerepo/backend/FSFile.php
index 54dd13599686..5d2bb521543e 100644
--- a/includes/filerepo/backend/FSFile.php
+++ b/includes/filerepo/backend/FSFile.php
@@ -45,7 +45,7 @@ class FSFile {
/**
* Get the file size in bytes
*
- * @return int|false
+ * @return int|bool
*/
public function getSize() {
return filesize( $this->path );
@@ -54,7 +54,7 @@ class FSFile {
/**
* Get the file's last-modified timestamp
*
- * @return string|false TS_MW timestamp or false on failure
+ * @return string|bool TS_MW timestamp or false on failure
*/
public function getTimestamp() {
wfSuppressWarnings();
@@ -174,7 +174,7 @@ class FSFile {
* 160 log 2 / log 36 = 30.95, so the 160-bit hash fills 31 digits in base 36
* fairly neatly.
*
- * @return false|string False on failure
+ * @return bool|string False on failure
*/
public function getSha1Base36() {
wfProfileIn( __METHOD__ );
@@ -224,7 +224,7 @@ class FSFile {
*
* @param $path string
*
- * @return false|string False on failure
+ * @return bool|string False on failure
*/
public static function getSha1Base36FromPath( $path ) {
$fsFile = new self( $path );
diff --git a/includes/filerepo/backend/FileBackend.php b/includes/filerepo/backend/FileBackend.php
index f44066fbc77e..f1e8c84e4495 100644
--- a/includes/filerepo/backend/FileBackend.php
+++ b/includes/filerepo/backend/FileBackend.php
@@ -96,7 +96,7 @@ abstract class FileBackend {
/**
* Get an explanatory message if this backend is read-only
*
- * @return string|false Returns falls if the backend is not read-only
+ * @return string|bool Returns falls if the backend is not read-only
*/
final public function getReadOnlyReason() {
return ( $this->readOnly != '' ) ? $this->readOnly : false;
diff --git a/includes/filerepo/backend/lockmanager/LSLockManager.php b/includes/filerepo/backend/lockmanager/LSLockManager.php
index b7ac743cf062..c1b741fde855 100644
--- a/includes/filerepo/backend/lockmanager/LSLockManager.php
+++ b/includes/filerepo/backend/lockmanager/LSLockManager.php
@@ -175,7 +175,7 @@ class LSLockManager extends LockManager {
* @param $action string
* @param $type string
* @param $values Array
- * @return string|false
+ * @return string|bool
*/
protected function sendCommand( $lockSrv, $action, $type, $values ) {
$conn = $this->getConnection( $lockSrv );