mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-27 18:48:13 +00:00
:octocat: fix for snake_case function names
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user