protected compileClosings ( string $value ) : string | ||
$value | string | |
return | string |
protected function compileClosings($value)
{
$pattern = '/(\\s*)@(endif|endforeach|endfor|endwhile)(\\s*)/';
return preg_replace($pattern, '$1<?php $2; ?>$3', $value);
}