:octocat: fix for snake_case function names

This commit is contained in:
smiley
2024-04-19 10:17:08 +02:00
parent 8f5b406880
commit 8d5d5db991
+1 -1
View File
@@ -71,7 +71,7 @@ foreach($reflectionClass->getProperties(ReflectionProperty::IS_PROTECTED) as $re
}
// php.net documentation
elseif(str_starts_with($line, '\\') && !str_contains($line, 'chillerlan')){
$path = str_replace(['\\', '::', '()'], ['', '.', ''], strtolower($line));
$path = str_replace(['\\', '::', '()', '_'], ['', '.', '', '-'], strtolower($line));
if(!str_contains($line, '::')){
$path = 'function.'.$path;