diff --git a/rules-tests/CodingStyle/Rector/Enum_/EnumCaseToPascalCaseRector/Fixture/skip_existing_pascal.php.inc b/rules-tests/CodingStyle/Rector/Enum_/EnumCaseToPascalCaseRector/Fixture/skip_existing_pascal.php.inc new file mode 100644 index 00000000000..075ae7d5801 --- /dev/null +++ b/rules-tests/CodingStyle/Rector/Enum_/EnumCaseToPascalCaseRector/Fixture/skip_existing_pascal.php.inc @@ -0,0 +1,11 @@ + + // If part is all uppercase, convert to ucfirst(strtolower()) + // If part is already mixed or PascalCase, keep as is except ucfirst + ctype_upper((string) $part) + ? ucfirst(strtolower((string) $part)) + : ucfirst((string) $part), + $parts + ) + ); } }