diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-26 16:48:01 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-26 16:48:01 +0200 |
commit | bfd4763b4f831ed9eccbdd4717c98b7d95999d2e (patch) | |
tree | 73538562b347386a24e3b81f443a0b61309fe3de /tests/test.php | |
parent | 2464ac4fa63ccd169f36849a1f7372191066f305 (diff) | |
download | ste-bfd4763b4f831ed9eccbdd4717c98b7d95999d2e.tar.gz ste-bfd4763b4f831ed9eccbdd4717c98b7d95999d2e.tar.bz2 ste-bfd4763b4f831ed9eccbdd4717c98b7d95999d2e.zip |
Some simple code formatting
- Expand tabs into spaces
- Remove trailing whitespace
- Get rid of closing `?>` tags
Diffstat (limited to 'tests/test.php')
-rw-r--r-- | tests/test.php | 24 |
1 files changed, 12 insertions, 12 deletions
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()); |