diff --git a/src/BladeCompiler.php b/src/BladeCompiler.php index 1132575..ea90fed 100644 --- a/src/BladeCompiler.php +++ b/src/BladeCompiler.php @@ -15,8 +15,8 @@ class BladeCompiler extends BaseBladeCompiler public function registerEscapeDirective(): void { $this->directive('escape', fn ($expression) => implode('', [ - 'replace("\\\", "'.$this->slashReplace.'")', + 'replace("\\\", "' . $this->slashReplace . '")', '->replace("$", "\\\\$")', '->replace("#", "\\\\#")', '->replace("%", "\\\\%")', @@ -26,10 +26,10 @@ class BladeCompiler extends BaseBladeCompiler '->replace("}", "\\\\}")', '->replace("~", "$\\\textasciitilde$")', '->replace("^", "$\\\textasciicircum$")', - '->replace("'.$this->slashReplace.'", "$\\\textbackslash$")', + '->replace("' . $this->slashReplace . '", "$\\\textbackslash$")', '; ?>', ])); - $this->directive('price', fn ($expression) => ''); + $this->directive('price', fn ($expression) => ''); } }