From 7ac12b7891ad37adb1cc6e3b84f82edfa3723b0e Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Fri, 12 Jan 2024 17:46:30 -0400 Subject: [PATCH] Removed repeated code --- flight/template/View.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flight/template/View.php b/flight/template/View.php index a3f0246..550dce0 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -212,10 +212,6 @@ class View protected static function normalizePath(string $path, string $separator = DIRECTORY_SEPARATOR): string { - if ($separator === '/') { - return str_replace(['\\', '/'], $separator, $path); - } - - return str_replace(['/', '\\'], $separator, $path); + return str_replace(['\\', '/'], $separator, $path); } }