@@ -223,7 +223,7 @@ private function parseCharacter($bIsForIdentifier) {
223
223
}
224
224
$ iUnicode = intval ($ sUnicode , 16 );
225
225
$ sUtf32 = "" ;
226
- for ($ i = 0 ; $ i < 4 ; $ i ++ ) {
226
+ for ($ i = 0 ; $ i < 4 ; ++ $ i ) {
227
227
$ sUtf32 .= chr ($ iUnicode & 0xff );
228
228
$ iUnicode = $ iUnicode >> 8 ;
229
229
}
@@ -268,7 +268,7 @@ private function parseRuleSet($oRuleSet) {
268
268
$ sConsume = $ this ->consumeUntil (array ("\n" , "; " , '} ' ), true );
269
269
// We need to “unfind” the matches to the end of the ruleSet as this will be matched later
270
270
if ($ this ->streql ($ this ->substr ($ sConsume , $ this ->strlen ($ sConsume )-1 , 1 ), '} ' )) {
271
- $ this ->iCurrentPosition -- ;
271
+ -- $ this ->iCurrentPosition ;
272
272
} else {
273
273
$ this ->consumeWhiteSpace ();
274
274
while ($ this ->comes ('; ' )) {
@@ -341,11 +341,10 @@ private function parseValue($aListDelimiters) {
341
341
$ iStartPosition = null ;
342
342
while (($ iStartPosition = array_search ($ sDelimiter , $ aStack , true )) !== false ) {
343
343
$ iLength = 2 ; //Number of elements to be joined
344
- for ($ i = $ iStartPosition + 2 ; $ i < count ($ aStack ); $ i +=2 ) {
344
+ for ($ i = $ iStartPosition + 2 ; $ i < count ($ aStack ); $ i +=2 , ++ $ iLength ) {
345
345
if ($ sDelimiter !== $ aStack [$ i ]) {
346
346
break ;
347
347
}
348
- $ iLength ++;
349
348
}
350
349
$ oList = new RuleValueList ($ sDelimiter );
351
350
for ($ i = $ iStartPosition - 1 ; $ i - $ iStartPosition + 1 < $ iLength * 2 ; $ i +=2 ) {
@@ -420,7 +419,7 @@ private function parseColorValue() {
420
419
$ this ->consumeWhiteSpace ();
421
420
$ this ->consume ('( ' );
422
421
$ iLength = $ this ->strlen ($ sColorMode );
423
- for ($ i = 0 ; $ i < $ iLength ; $ i ++ ) {
422
+ for ($ i = 0 ; $ i < $ iLength ; ++ $ i ) {
424
423
$ this ->consumeWhiteSpace ();
425
424
$ aColor [$ sColorMode [$ i ]] = $ this ->parseNumericValue (true );
426
425
$ this ->consumeWhiteSpace ();
0 commit comments