From 2381c52c690342f773a7cfa500387b6bfad76952 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Thu, 30 Apr 2020 09:38:05 +0200 Subject: Automatic code formatting Also add git hooks that checks formatting --- tests/test.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/test.php') 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; } -- cgit v1.2.3-54-g00ecf