diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-13 22:25:15 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-13 22:25:15 +0200 |
commit | 76a1e915e0eea54b9b9a01d921efa6f9edffb3a8 (patch) | |
tree | 2d3140702e971cbe492561fea0f2d4c512366c07 /tests | |
parent | 2bbb1646f56fe84f38ed2a0cba03a386acc6160e (diff) | |
download | ste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.tar.gz ste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.tar.bz2 ste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.zip |
Code cleanup
- Add parameter and return types
- Add missing @throws tags
- Add visibilities to consts
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/TestStorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |