From 76a1e915e0eea54b9b9a01d921efa6f9edffb3a8 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 13 Sep 2020 22:25:15 +0200 Subject: Code cleanup - Add parameter and return types - Add missing @throws tags - Add visibilities to consts --- tests/functional/TestStorage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/functional/TestStorage.php b/tests/functional/TestStorage.php index 2403668..ff8512a 100644 --- a/tests/functional/TestStorage.php +++ b/tests/functional/TestStorage.php @@ -15,13 +15,13 @@ class TestStorage implements StorageAccess $this->dir = $dir; } - public function load($tpl, &$mode) + public function load(string $tpl, string &$mode) { $mode = StorageAccess::MODE_SOURCE; return file_get_contents($this->dir . DIRECTORY_SEPARATOR . $tpl); } - public function save($tpl, $data, $mode) + public function save(string $tpl, string $data, $mode): void { if ($mode != StorageAccess::MODE_TRANSCOMPILED) { return; -- cgit v1.2.3-70-g09d2