summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-05-01 17:58:15 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-05-01 17:58:15 +0200
commit565475db45aed717c80fa12418a90d04c7488582 (patch)
treee8c8ed4fcc5246004003f50850c4a27d991c6b0d
parentec389d3441953bbd7cb27f59df61531ba856fb33 (diff)
downloadste-565475db45aed717c80fa12418a90d04c7488582.tar.gz
ste-565475db45aed717c80fa12418a90d04c7488582.tar.bz2
ste-565475db45aed717c80fa12418a90d04c7488582.zip
More code formatting
-rw-r--r--src/ste/Transcompiler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ste/Transcompiler.php b/src/ste/Transcompiler.php
index 88c008e..1c65185 100644
--- a/src/ste/Transcompiler.php
+++ b/src/ste/Transcompiler.php
@@ -151,9 +151,9 @@ class Transcompiler
$code .= $pre . "switch(trim(" . $val . "))\n{\n\t";
$code .= implode("", array_map(
function ($op) use ($a,$b) {
- list($op_stetpl, $op_php) = $op;
- return "case '$op_stetpl':\n\t\$outputstack[\$outputstack_i] .= (($a) $op_php ($b)) ? 'yes' : '';\n\tbreak;\n\t";
- },
+ list($op_stetpl, $op_php) = $op;
+ return "case '$op_stetpl':\n\t\$outputstack[\$outputstack_i] .= (($a) $op_php ($b)) ? 'yes' : '';\n\tbreak;\n\t";
+ },
$operators
));
$code .= "default: throw new \\kch42\\ste\\RuntimeError('Unknown operator in <ste:cmp>.');\n}\n";