indent lol

This commit is contained in:
Flummi 2022-12-20 12:28:33 +01:00
parent 01819af376
commit 9f030dbb28

View File

@ -67,9 +67,8 @@ class tpl {
} }
static function compileYield($code) { static function compileYield($code) {
foreach(self::$blocks as $block => $value) { foreach(self::$blocks as $block => $value)
$code = preg_replace('/{% ?yield ?' . $block . ' ?%}/', $value, $code); $code = preg_replace('/{% ?yield ?' . $block . ' ?%}/', $value, $code);
}
$code = preg_replace('/{% ?yield ?(.*?) ?%}/i', '', $code); $code = preg_replace('/{% ?yield ?(.*?) ?%}/i', '', $code);
return $code; return $code;
} }