X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FUtil%2FSampleStorageBackend.php;h=03fca0171f64685c02dc18707b842fb31cfe3d09;hb=0165811f09260a61af6dd947015be40df52d7b67;hp=00dad8612c166f34f16752696f5cb57ccf1efc2c;hpb=aa0b485f3dca72c5448076e913fa54d948cd7731;p=friendica.git diff --git a/tests/Util/SampleStorageBackend.php b/tests/Util/SampleStorageBackend.php index 00dad8612c..03fca0171f 100644 --- a/tests/Util/SampleStorageBackend.php +++ b/tests/Util/SampleStorageBackend.php @@ -1,6 +1,6 @@ l10n = $l10n; } - public function get(string $reference) + public function get(string $reference): string { // we return always the same image data. Which file we load is defined by // a config key - return $this->data[$reference] ?? null; + return $this->data[$reference] ?? ''; } - public function put(string $data, string $reference = '') + public function put(string $data, string $reference = ''): string { if ($reference === '') { $reference = 'sample'; @@ -89,12 +89,12 @@ class SampleStorageBackend implements IStorage return true; } - public function getOptions() + public function getOptions(): array { return $this->options; } - public function saveOptions(array $data) + public function saveOptions(array $data): array { $this->options = $data; @@ -102,12 +102,12 @@ class SampleStorageBackend implements IStorage return $this->options; } - public function __toString() + public function __toString(): string { return self::NAME; } - public static function getName() + public static function getName(): string { return self::NAME; } @@ -120,4 +120,3 @@ class SampleStorageBackend implements IStorage Hook::register('storage_instance', __DIR__ . '/SampleStorageBackendInstance.php', 'create_instance'); } } -