Call `\strtolower()` only once in ControllerMap::transformController()
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 27 Jun 2022 13:21:14 +0000 (15:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 27 Jun 2022 14:53:49 +0000 (16:53 +0200)
wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index bd03102d2b5aaf7c4f02fbc91ed799061da98413..60b10516d377f00d1135905714caba6767d73a70 100644 (file)
@@ -396,8 +396,6 @@ final class ControllerMap extends SingletonFactory
             );
         }
 
-        $parts = \array_map('strtolower', $parts);
-
-        return \implode('-', $parts);
+        return \strtolower(\implode('-', $parts));
     }
 }