From 74800de149bf2ca250a17263cfaf59e48b76186f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 23 Feb 2024 16:33:29 +0100 Subject: [PATCH] Add integer when rendering price --- src/BladeCompiler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) => ''); } }