@@ -107,7 +107,7 @@ private function parseAtRule() {
107107 $ this ->consume ('; ' );
108108 $ this ->setCharset ($ sCharset ->getString ());
109109 return new Charset ($ sCharset );
110- } else if (self :: identifierIs ($ sIdentifier , 'keyframes ' )) {
110+ } else if ($ this -> identifierIs ($ sIdentifier , 'keyframes ' )) {
111111 $ oResult = new KeyFrame ();
112112 $ oResult ->setVendorKeyFrame ($ sIdentifier );
113113 $ oResult ->setAnimationName (trim ($ this ->consumeUntil ('{ ' , false , true )));
@@ -135,7 +135,7 @@ private function parseAtRule() {
135135 $ this ->consumeWhiteSpace ();
136136 $ bUseRuleSet = true ;
137137 foreach ($ this ->blockRules as $ sBlockRuleName ) {
138- if (self :: identifierIs ($ sIdentifier , $ sBlockRuleName )) {
138+ if ($ this -> identifierIs ($ sIdentifier , $ sBlockRuleName )) {
139139 $ bUseRuleSet = false ;
140140 break ;
141141 }
@@ -454,8 +454,9 @@ private function parseURLValue() {
454454 /**
455455 * 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.
456456 */
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 ;
459460 }
460461
461462 private function comes ($ sString , $ alpha = false ) {
0 commit comments