diff options
Diffstat (limited to 'src/ste/Transcompiler.php')
-rw-r--r-- | src/ste/Transcompiler.php | 6 |
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"; |