Changeset 7655 for trunk/phpgwapi/inc/csstidy/class.csstidy_optimise.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/csstidy/class.csstidy_optimise.php
r3052 r7655 302 302 $color_tmp = substr($color,4,strlen($color)-5); 303 303 $color_tmp = explode(',',$color_tmp); 304 for ( $i = 0; $i < count($color_tmp); $i++)304 for ( $i = 0; $i < count($color_tmp); ++$i ) 305 305 { 306 306 $color_tmp[$i] = trim ($color_tmp[$i]); … … 312 312 } 313 313 $color = '#'; 314 for ($i = 0; $i < 3; $i++)314 for ($i = 0; $i < 3; ++$i ) 315 315 { 316 316 if($color_tmp[$i]<16) { … … 383 383 $temp = array($subvalue); 384 384 } 385 for ($l = 0; $l < count($temp); $l++)385 for ($l = 0; $l < count($temp);++$l) 386 386 { 387 387 // continue if no numeric value … … 404 404 { 405 405 $unit_found = FALSE; 406 for ($m = 0, $size_4 = count($units); $m < $size_4; $m++)406 for ($m = 0, $size_4 = count($units); $m < $size_4; ++$m) 407 407 { 408 408 if (strpos(strtolower($temp[$l]),$units[$m]) !== FALSE) … … 514 514 if(count($values) == 4) 515 515 { 516 for($i=0;$i<4; $i++)516 for($i=0;$i<4;++$i) 517 517 { 518 518 $return[$shorthands[$property][$i]] = $values[$i].$important; … … 528 528 elseif(count($values) == 2) 529 529 { 530 for($i=0;$i<4; $i++)530 for($i=0;$i<4;++$i) 531 531 { 532 532 $return[$shorthands[$property][$i]] = (($i % 2 != 0)) ? $values[1].$important : $values[0].$important; … … 535 535 else 536 536 { 537 for($i=0;$i<4; $i++)537 for($i=0;$i<4;++$i) 538 538 { 539 539 $return[$shorthands[$property][$i]] = $values[0].$important; … … 558 558 $output = array(); 559 559 $num = 0; 560 for($i = 0, $len = strlen($string);$i < $len; $i++)560 for($i = 0, $len = strlen($string);$i < $len; ++$i) 561 561 { 562 562 switch($status) … … 619 619 620 620 $important = ''; 621 for($i = 0; $i < 4; $i++)621 for($i = 0; $i < 4; ++$i) 622 622 { 623 623 $val = $array[$value[$i]]; … … 665 665 666 666 $str_value = csstidy_optimise::explode_ws(',',$str_value); 667 for($i = 0; $i < count($str_value); $i++)667 for($i = 0; $i < count($str_value); ++$i) 668 668 { 669 669 $have['clip'] = FALSE; $have['pos'] = FALSE; … … 672 672 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i])); 673 673 674 for($j = 0; $j < count($str_value[$i]); $j++)674 for($j = 0; $j < count($str_value[$i]); ++$j) 675 675 { 676 676 if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'none')) … … 743 743 $important = ''; 744 744 745 for($i = 0; $i < $number_of_values; $i++)745 for($i = 0; $i < $number_of_values; ++$i) 746 746 { 747 747 foreach($background_prop_default as $bg_property => $default_value)
Note: See TracChangeset
for help on using the changeset viewer.