@@ -107,7 +107,7 @@ private function parseAtRule() {
107
107
$ this ->consume ('; ' );
108
108
$ this ->setCharset ($ sCharset ->getString ());
109
109
return new Charset ($ sCharset );
110
- } else if (self :: identifierIs ($ sIdentifier , 'keyframes ' )) {
110
+ } else if ($ this -> identifierIs ($ sIdentifier , 'keyframes ' )) {
111
111
$ oResult = new KeyFrame ();
112
112
$ oResult ->setVendorKeyFrame ($ sIdentifier );
113
113
$ oResult ->setAnimationName (trim ($ this ->consumeUntil ('{ ' , false , true )));
@@ -135,7 +135,7 @@ private function parseAtRule() {
135
135
$ this ->consumeWhiteSpace ();
136
136
$ bUseRuleSet = true ;
137
137
foreach ($ this ->blockRules as $ sBlockRuleName ) {
138
- if (self :: identifierIs ($ sIdentifier , $ sBlockRuleName )) {
138
+ if ($ this -> identifierIs ($ sIdentifier , $ sBlockRuleName )) {
139
139
$ bUseRuleSet = false ;
140
140
break ;
141
141
}
@@ -454,8 +454,9 @@ private function parseURLValue() {
454
454
/**
455
455
* Tests an identifier for a given value. Since identifiers are all keywords, they can be vendor-prefixed. We need to check for these versions too.
456
456
*/
457
- private static function identifierIs ($ sIdentifier , $ sMatch , $ bCaseInsensitive = true ) {
458
- return preg_match ("/^(- \\w+-)? $ sMatch$/ " .($ bCaseInsensitive ? 'i ' : '' ), $ sIdentifier ) === 1 ;
457
+ private function identifierIs ($ sIdentifier , $ sMatch ) {
458
+ return (strcasecmp ($ sIdentifier , $ sMatch ) === 0 )
459
+ ?: preg_match ("/^(- \\w+-)? $ sMatch$/i " , $ sIdentifier ) === 1 ;
459
460
}
460
461
461
462
private function comes ($ sString , $ alpha = false ) {
0 commit comments