aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper/Availability.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Storage/Wrapper/Availability.php')
-rw-r--r--lib/private/Files/Storage/Wrapper/Availability.php70
1 files changed, 35 insertions, 35 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Availability.php b/lib/private/Files/Storage/Wrapper/Availability.php
index 1a2824614c1..ffe8f08e40f 100644
--- a/lib/private/Files/Storage/Wrapper/Availability.php
+++ b/lib/private/Files/Storage/Wrapper/Availability.php
@@ -70,7 +70,7 @@ class Availability extends Wrapper {
}
}
- public function mkdir($path): bool {
+ public function mkdir(string $path): bool {
$this->checkAvailability();
try {
return parent::mkdir($path);
@@ -80,7 +80,7 @@ class Availability extends Wrapper {
}
}
- public function rmdir($path): bool {
+ public function rmdir(string $path): bool {
$this->checkAvailability();
try {
return parent::rmdir($path);
@@ -90,7 +90,7 @@ class Availability extends Wrapper {
}
}
- public function opendir($path) {
+ public function opendir(string $path) {
$this->checkAvailability();
try {
return parent::opendir($path);
@@ -100,7 +100,7 @@ class Availability extends Wrapper {
}
}
- public function is_dir($path): bool {
+ public function is_dir(string $path): bool {
$this->checkAvailability();
try {
return parent::is_dir($path);
@@ -110,7 +110,7 @@ class Availability extends Wrapper {
}
}
- public function is_file($path): bool {
+ public function is_file(string $path): bool {
$this->checkAvailability();
try {
return parent::is_file($path);
@@ -120,7 +120,7 @@ class Availability extends Wrapper {
}
}
- public function stat($path): array|false {
+ public function stat(string $path): array|false {
$this->checkAvailability();
try {
return parent::stat($path);
@@ -130,7 +130,7 @@ class Availability extends Wrapper {
}
}
- public function filetype($path): string|false {
+ public function filetype(string $path): string|false {
$this->checkAvailability();
try {
return parent::filetype($path);
@@ -140,7 +140,7 @@ class Availability extends Wrapper {
}
}
- public function filesize($path): int|float|false {
+ public function filesize(string $path): int|float|false {
$this->checkAvailability();
try {
return parent::filesize($path);
@@ -150,7 +150,7 @@ class Availability extends Wrapper {
}
}
- public function isCreatable($path): bool {
+ public function isCreatable(string $path): bool {
$this->checkAvailability();
try {
return parent::isCreatable($path);
@@ -160,7 +160,7 @@ class Availability extends Wrapper {
}
}
- public function isReadable($path): bool {
+ public function isReadable(string $path): bool {
$this->checkAvailability();
try {
return parent::isReadable($path);
@@ -170,7 +170,7 @@ class Availability extends Wrapper {
}
}
- public function isUpdatable($path): bool {
+ public function isUpdatable(string $path): bool {
$this->checkAvailability();
try {
return parent::isUpdatable($path);
@@ -180,7 +180,7 @@ class Availability extends Wrapper {
}
}
- public function isDeletable($path): bool {
+ public function isDeletable(string $path): bool {
$this->checkAvailability();
try {
return parent::isDeletable($path);
@@ -190,7 +190,7 @@ class Availability extends Wrapper {
}
}
- public function isSharable($path): bool {
+ public function isSharable(string $path): bool {
$this->checkAvailability();
try {
return parent::isSharable($path);
@@ -200,7 +200,7 @@ class Availability extends Wrapper {
}
}
- public function getPermissions($path): int {
+ public function getPermissions(string $path): int {
$this->checkAvailability();
try {
return parent::getPermissions($path);
@@ -210,7 +210,7 @@ class Availability extends Wrapper {
}
}
- public function file_exists($path): bool {
+ public function file_exists(string $path): bool {
if ($path === '') {
return true;
}
@@ -223,7 +223,7 @@ class Availability extends Wrapper {
}
}
- public function filemtime($path): int|false {
+ public function filemtime(string $path): int|false {
$this->checkAvailability();
try {
return parent::filemtime($path);
@@ -233,7 +233,7 @@ class Availability extends Wrapper {
}
}
- public function file_get_contents($path): string|false {
+ public function file_get_contents(string $path): string|false {
$this->checkAvailability();
try {
return parent::file_get_contents($path);
@@ -243,7 +243,7 @@ class Availability extends Wrapper {
}
}
- public function file_put_contents($path, $data): int|float|false {
+ public function file_put_contents(string $path, mixed $data): int|float|false {
$this->checkAvailability();
try {
return parent::file_put_contents($path, $data);
@@ -253,7 +253,7 @@ class Availability extends Wrapper {
}
}
- public function unlink($path): bool {
+ public function unlink(string $path): bool {
$this->checkAvailability();
try {
return parent::unlink($path);
@@ -263,7 +263,7 @@ class Availability extends Wrapper {
}
}
- public function rename($source, $target): bool {
+ public function rename(string $source, string $target): bool {
$this->checkAvailability();
try {
return parent::rename($source, $target);
@@ -273,7 +273,7 @@ class Availability extends Wrapper {
}
}
- public function copy($source, $target): bool {
+ public function copy(string $source, string $target): bool {
$this->checkAvailability();
try {
return parent::copy($source, $target);
@@ -283,7 +283,7 @@ class Availability extends Wrapper {
}
}
- public function fopen($path, $mode) {
+ public function fopen(string $path, string $mode) {
$this->checkAvailability();
try {
return parent::fopen($path, $mode);
@@ -293,7 +293,7 @@ class Availability extends Wrapper {
}
}
- public function getMimeType($path): string|false {
+ public function getMimeType(string $path): string|false {
$this->checkAvailability();
try {
return parent::getMimeType($path);
@@ -303,7 +303,7 @@ class Availability extends Wrapper {
}
}
- public function hash($type, $path, $raw = false): string|false {
+ public function hash(string $type, string $path, bool $raw = false): string|false {
$this->checkAvailability();
try {
return parent::hash($type, $path, $raw);
@@ -313,7 +313,7 @@ class Availability extends Wrapper {
}
}
- public function free_space($path): int|float|false {
+ public function free_space(string $path): int|float|false {
$this->checkAvailability();
try {
return parent::free_space($path);
@@ -323,7 +323,7 @@ class Availability extends Wrapper {
}
}
- public function touch($path, $mtime = null): bool {
+ public function touch(string $path, ?int $mtime = null): bool {
$this->checkAvailability();
try {
return parent::touch($path, $mtime);
@@ -333,7 +333,7 @@ class Availability extends Wrapper {
}
}
- public function getLocalFile($path): string|false {
+ public function getLocalFile(string $path): string|false {
$this->checkAvailability();
try {
return parent::getLocalFile($path);
@@ -343,7 +343,7 @@ class Availability extends Wrapper {
}
}
- public function hasUpdated($path, $time): bool {
+ public function hasUpdated(string $path, int $time): bool {
if (!$this->isAvailable()) {
return false;
}
@@ -356,7 +356,7 @@ class Availability extends Wrapper {
}
}
- public function getOwner($path): string|false {
+ public function getOwner(string $path): string|false {
try {
return parent::getOwner($path);
} catch (StorageNotAvailableException $e) {
@@ -365,7 +365,7 @@ class Availability extends Wrapper {
}
}
- public function getETag($path): string|false {
+ public function getETag(string $path): string|false {
$this->checkAvailability();
try {
return parent::getETag($path);
@@ -375,7 +375,7 @@ class Availability extends Wrapper {
}
}
- public function getDirectDownload($path): array|false {
+ public function getDirectDownload(string $path): array|false {
$this->checkAvailability();
try {
return parent::getDirectDownload($path);
@@ -385,7 +385,7 @@ class Availability extends Wrapper {
}
}
- public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath): bool {
+ public function copyFromStorage(IStorage $sourceStorage, string $sourceInternalPath, string $targetInternalPath): bool {
$this->checkAvailability();
try {
return parent::copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
@@ -395,7 +395,7 @@ class Availability extends Wrapper {
}
}
- public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath): bool {
+ public function moveFromStorage(IStorage $sourceStorage, string $sourceInternalPath, string $targetInternalPath): bool {
$this->checkAvailability();
try {
return parent::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
@@ -405,7 +405,7 @@ class Availability extends Wrapper {
}
}
- public function getMetaData($path): ?array {
+ public function getMetaData(string $path): ?array {
$this->checkAvailability();
try {
return parent::getMetaData($path);
@@ -438,7 +438,7 @@ class Availability extends Wrapper {
- public function getDirectoryContent($directory): \Traversable {
+ public function getDirectoryContent(string $directory): \Traversable {
$this->checkAvailability();
try {
return parent::getDirectoryContent($directory);