From cdcf30e866447b356787bcbe7b14e9903a553e1e Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 26 Jun 2024 21:58:11 +0200 Subject: [PATCH] Replace ternary expression with if/else block --- packages/framework/src/Support/Includes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/framework/src/Support/Includes.php b/packages/framework/src/Support/Includes.php index bb237c66a1c..bb9b89104be 100644 --- a/packages/framework/src/Support/Includes.php +++ b/packages/framework/src/Support/Includes.php @@ -34,9 +34,11 @@ class Includes */ public static function path(?string $filename = null): string { - return $filename === null - ? Hyde::path(static::$includesDirectory) - : Hyde::path(static::$includesDirectory.'/'.static::normalizePath($filename)); + if ($filename === null) { + return Hyde::path(static::$includesDirectory); + } else { + return Hyde::path(static::$includesDirectory.'/'.static::normalizePath($filename)); + } } /**