@@ -63,28 +63,28 @@ public static function normalizeName(string $propertyName): string
6363 'SS ' => 'Ss ' ,
6464 ];
6565 static $ ignored = [
66- 'GB ' => ' Gb ' ,
67- 'GiB ' => ' Gib ' ,
68- 'BFrame ' => ' Bframe ' ,
69- 'BReference ' => ' Breference ' ,
70- 'BBox ' => ' Bbox ' ,
71- 'VCpu ' => ' Vcpu ' ,
72- 'IInterval ' => ' Iinterval ' ,
73- 'IFrame ' => ' Iframe ' ,
74- 'XCoordinate ' => ' Xcoordinate ' ,
75- 'YCoordinate ' => ' Ycoordinate ' ,
76- 'XOffset ' => ' Xoffset ' ,
77- 'YOffset ' => ' Yoffset ' ,
78- 'XPosition ' => ' Xposition ' ,
79- 'YPosition ' => ' Yposition ' ,
66+ 'GB ' ,
67+ 'GiB ' ,
68+ 'BFrame ' ,
69+ 'BReference ' ,
70+ 'BBox ' ,
71+ 'VCpu ' ,
72+ 'IInterval ' ,
73+ 'IFrame ' ,
74+ 'XCoordinate ' ,
75+ 'YCoordinate ' ,
76+ 'XOffset ' ,
77+ 'YOffset ' ,
78+ 'XPosition ' ,
79+ 'YPosition ' ,
8080 ];
8181
8282 $ originalPropertyName = $ propertyName ;
8383 $ propertyName = strtr ($ propertyName , $ replacements );
8484
8585 if (preg_match ('/[A-Z]{2,}/ ' , $ propertyName )) {
86- $ propertyName = strtr ($ propertyName , $ ignored );
87- if (preg_match ('/[A-Z]{2,}/ ' , $ propertyName )) {
86+ $ propertyNameWithoutIgnored = strtr ($ propertyName , array_fill_keys ( $ ignored, ' Xx ' ) );
87+ if (preg_match ('/[A-Z]{2,}/ ' , $ propertyNameWithoutIgnored )) {
8888 throw new \RuntimeException (\sprintf ('No camel case property "%s" is not yet implemented ' , $ originalPropertyName ));
8989 }
9090 }
0 commit comments