From: Tim Düsterhus Date: Mon, 27 Jun 2022 13:21:14 +0000 (+0200) Subject: Call `\strtolower()` only once in ControllerMap::transformController() X-Git-Tag: 6.0.0_Alpha_1~1140^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d489073a4e85fd80bff2bbd12898609a3261caed;p=GitHub%2FWoltLab%2FWCF.git Call `\strtolower()` only once in ControllerMap::transformController() --- diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index bd03102d2b..60b10516d3 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -396,8 +396,6 @@ final class ControllerMap extends SingletonFactory ); } - $parts = \array_map('strtolower', $parts); - - return \implode('-', $parts); + return \strtolower(\implode('-', $parts)); } }