diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-30 09:38:05 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-30 09:38:25 +0200 |
commit | 2381c52c690342f773a7cfa500387b6bfad76952 (patch) | |
tree | 340296ea529e40b81012c936703429a86481788e /tests/test.php | |
parent | 2d26169b367af60cbc03d417c09918f50aa3b882 (diff) | |
download | ste-2381c52c690342f773a7cfa500387b6bfad76952.tar.gz ste-2381c52c690342f773a7cfa500387b6bfad76952.tar.bz2 ste-2381c52c690342f773a7cfa500387b6bfad76952.zip |
Automatic code formatting
Also add git hooks that checks formatting
Diffstat (limited to 'tests/test.php')
-rw-r--r-- | tests/test.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test.php b/tests/test.php index fcfac0e..15453b0 100644 --- a/tests/test.php +++ b/tests/test.php @@ -5,14 +5,17 @@ require("code.php"); use \kch42\ste; -class TestStorage implements ste\StorageAccess { - public function load($tpl, &$mode) { +class TestStorage implements ste\StorageAccess +{ + public function load($tpl, &$mode) + { $mode = ste\StorageAccess::MODE_SOURCE; return file_get_contents($tpl); } - public function save($tpl, $data, $mode) { - if($mode != ste\StorageAccess::MODE_TRANSCOMPILED) { + public function save($tpl, $data, $mode) + { + if ($mode != ste\StorageAccess::MODE_TRANSCOMPILED) { return; } |