From 130dd77e7661e2d7bed3e8d35c26f0042d7857e6 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 26 Jun 2024 20:53:47 +0200 Subject: [PATCH] Merge into 'elseif' --- packages/framework/src/Support/Includes.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/framework/src/Support/Includes.php b/packages/framework/src/Support/Includes.php index 904f941b737..9dcea75e042 100644 --- a/packages/framework/src/Support/Includes.php +++ b/packages/framework/src/Support/Includes.php @@ -88,12 +88,10 @@ public static function markdown(string $filename, ?string $default = null): ?Htm if (Filesystem::exists($path)) { $markdown = Filesystem::get($path); + } elseif ($default === null) { + $markdown = null; } else { - if ($default === null) { - $markdown = null; - } else { - $markdown = $default; - } + $markdown = $default; } if ($markdown === null) {