chore: code styling via pint
This commit is contained in:
@@ -11,7 +11,7 @@ class CheckPageSlug
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param Closure(Request):Response $next
|
||||
* @param Closure(Request):Response $next
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
@@ -21,9 +21,10 @@ class CheckPageSlug
|
||||
|
||||
if (file_exists($publicPath) && is_file($publicPath) && pathinfo($slug, PATHINFO_EXTENSION) === 'php') {
|
||||
ob_start();
|
||||
include($publicPath);
|
||||
include $publicPath;
|
||||
$content = ob_get_clean();
|
||||
ob_flush();
|
||||
|
||||
return response($content);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user