From bfd4763b4f831ed9eccbdd4717c98b7d95999d2e Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 26 Apr 2020 16:48:01 +0200 Subject: Some simple code formatting - Expand tabs into spaces - Remove trailing whitespace - Get rid of closing `?>` tags --- tests/test.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/test.php') diff --git a/tests/test.php b/tests/test.php index ed45d3e..fcfac0e 100644 --- a/tests/test.php +++ b/tests/test.php @@ -6,18 +6,18 @@ require("code.php"); use \kch42\ste; 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) { - return; - } - - file_put_contents("$tpl.transc.php", $data); - } + 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) { + return; + } + + file_put_contents("$tpl.transc.php", $data); + } } $ste = new ste\STECore(new TestStorage()); -- cgit v1.2.3-70-g09d2