Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/tp/dompdf/include/cellmap.cls.php

    r3019 r7655  
    382382 
    383383        // Resolve the borders 
    384         for ( $i = 0; $i < $num_rows+1; $i++) { 
     384        for ( $i = 0; $i < $num_rows+1; ++$i) { 
    385385          $this->_resolve_border($start_row + $i, 0, "vertical", $bp["left"]); 
    386386          $this->_resolve_border($start_row + $i, $this->_num_cols, "vertical", $bp["right"]); 
    387387        } 
    388388 
    389         for ( $j = 0; $j < $this->_num_cols; $j++) { 
     389        for ( $j = 0; $j < $this->_num_cols; ++$j) { 
    390390          $this->_resolve_border($start_row, $j, "horizontal", $bp["top"]); 
    391391          $this->_resolve_border($this->__row, $j, "horizontal", $bp["bottom"]); 
     
    421421    $ac = $this->__col; 
    422422    while ( isset($this->_cells[$this->__row][$ac]) ) 
    423        $ac++; 
     423       ++$ac; 
    424424    $this->__col = $ac; 
    425425 
    426426    // Rows: 
    427     for ( $i = 0; $i < $rowspan; $i++ ) { 
     427    for ( $i = 0; $i < $rowspan; ++$i ) { 
    428428      $row = $this->__row + $i; 
    429429 
    430430      $this->_frames[ $key ]["rows"][] = $row; 
    431431 
    432       for ( $j = 0; $j < $colspan; $j++) 
     432      for ( $j = 0; $j < $colspan; ++$j) 
    433433        $this->_cells[$row][$this->__col + $j] = $frame; 
    434434 
     
    443443 
    444444    // Columns: 
    445     for ( $j = 0; $j < $colspan; $j++ ) { 
     445    for ( $j = 0; $j < $colspan; ++$j ) { 
    446446      $col = $this->__col + $j; 
    447447      $this->_frames[ $key ]["columns"][] = $col; 
     
    493493    $min = 0; 
    494494    $max = 0; 
    495     for ( $cs = 0; $cs < $colspan; $cs++ ) { 
     495    for ( $cs = 0; $cs < $colspan; ++$cs ) { 
    496496 
    497497      // Resolve the frame's width(s) with other cells 
     
    514514      // The frame needs more space.  Expand each sub-column 
    515515      $inc = ($frame_min - $min) / $colspan; 
    516       for ($c = 0; $c < $colspan; $c++) { 
     516      for ($c = 0; $c < $colspan; ++$c) { 
    517517        $col =& $this->get_column($this->__col + $c); 
    518518        $col["min-width"] += $inc; 
     
    522522    if ( $frame_max > $max ) { 
    523523      $inc = ($frame_max - $max) / $colspan; 
    524       for ($c = 0; $c < $colspan; $c++) { 
     524      for ($c = 0; $c < $colspan; ++$c) { 
    525525        $col =& $this->get_column($this->__col + $c); 
    526526        $col["max-width"] += $inc; 
     
    544544    $i = 0; 
    545545    while ( isset($this->_cells[$this->__row][$i]) ) 
    546       $i++; 
     546      ++$i; 
    547547 
    548548    $this->__col = $i; 
Note: See TracChangeset for help on using the changeset viewer.