Removed repeated code

pull/515/head
fadrian06 1 year ago
parent dc5f1a9c08
commit 7ac12b7891

@ -212,10 +212,6 @@ class View
protected static function normalizePath(string $path, string $separator = DIRECTORY_SEPARATOR): string 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);
}
} }

Loading…
Cancel
Save