From 767bb5cad0a6bc1279749d3d3886a4755b0b5cd3 Mon Sep 17 00:00:00 2001 From: tabuna Date: Wed, 20 Nov 2024 17:05:42 +0000 Subject: [PATCH] Fixed code style --- app/Http/Controllers/DocsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/DocsController.php b/app/Http/Controllers/DocsController.php index d3ff6cc3..b5943678 100644 --- a/app/Http/Controllers/DocsController.php +++ b/app/Http/Controllers/DocsController.php @@ -19,11 +19,11 @@ class DocsController extends Controller * * @return \Illuminate\View\View| */ - public function show(string $version = Docs::DEFAULT_VERSION, string $page = null) + public function show(string $version = Docs::DEFAULT_VERSION, ?string $page = null) { abort_if( - $page === null, - redirect(status: 300)->route('docs', ['version' => $version, 'page' => Docs::DEFAULT_DOCUMENT]) + $page === null, + redirect(status: 300)->route('docs', ['version' => $version, 'page' => Docs::DEFAULT_DOCUMENT]) ); $docs = new Docs($version, $page);