fix namespace declaration

This commit is contained in:
Khoubza Younes
2020-12-07 00:33:28 +01:00
parent d8d7822fa3
commit d5478252bc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ final class Laravel4 extends Laravel
Blade::extend(function ($view, $compiler) { Blade::extend(function ($view, $compiler) {
$pattern = $compiler->createPlainMatcher('flasher_render(.*)'); $pattern = $compiler->createPlainMatcher('flasher_render(.*)');
return preg_replace($pattern, '$1<?php echo app(\'flasher.presenter.html\')->render($2); ?>', $view); return preg_replace($pattern, "$1<?php echo app('flasher.presenter.html')->render($2); ?>", $view);
}); });
} }
} }
+1 -1
View File
@@ -17,7 +17,7 @@ final class Laravel50 extends Laravel
Blade::extend(function ($view, $compiler) { Blade::extend(function ($view, $compiler) {
$pattern = $compiler->createPlainMatcher('flasher_render(.*)'); $pattern = $compiler->createPlainMatcher('flasher_render(.*)');
return preg_replace($pattern, '$1<?php echo app(\'flasher.presenter.html\')->render($2); ?>', $view); return preg_replace($pattern, "$1<?php echo app('flasher.presenter.html')->render($2); ?>", $view);
}); });
} }
} }