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); } }