original_string: protected function _renderCells($line, $useCount = false)
      {
          $i = 0;
          $cellsOut = [];
          foreach ($line as $cell) {
              $cellOptions = [];
  
              if (is_array($cell)) {
                  $cellOptions = $cell[1];
                  $cell = $cell[0];
              }
  
              if ($useCount) {
                  $i += 1;
                  if (isset($cellOptions['class'])) {
                      $cellOptions['class'] .= ' column-' . $i;
                  } else {
                      $cellOptions['class'] = 'column-' . $i;
                  }
              }
  
              $cellsOut[] = $this->tableCell($cell, $cellOptions);
          }
  
          return $cellsOut;
      }
code: protected function _renderCells($line, $useCount = false)
      {
          $i = 0;
          $cellsOut = [];
          foreach ($line as $cell) {
              $cellOptions = [];
  
              if (is_array($cell)) {
                  $cellOptions = $cell[1];
                  $cell = $cell[0];
              }
  
              if ($useCount) {
                  $i += 1;
                  if (isset($cellOptions['class'])) {
                      $cellOptions['class'] .= ' column-' . $i;
                  } else {
                      $cellOptions['class'] = 'column-' . $i;
                  }
              }
  
              $cellsOut[] = $this->tableCell($cell, $cellOptions);
          }
  
          return $cellsOut;
      }
code_tokens: protected function _renderCells ( $ line , $ useCount = false ) { $ i = 0 ; $ cellsOut = [ ] ; foreach ( $ line as $ cell ) { $ cellOptions = [ ] ; if ( is_array ( $ cell ) ) { $ cellOptions = $ cell [ 1 ] ; $ cell = $ cell [ 0 ] ; } if ( $ useCount ) { $ i += 1 ; if ( isset ( $ cellOptions [ 'class' ] ) ) { $ cellOptions [ 'class' ] .= ' column-' . $ i ; } else { $ cellOptions [ 'class' ] = 'column-' . $ i ; } } $ cellsOut [ ] = $ this -> tableCell ( $ cell , $ cellOptions ) ; } return $ cellsOut ; }
docstring: Renders cells for a row of a table.
  
  This is a helper method for tableCells(). Overload this method as you
  need to change the behavior of the cell rendering.
  
  @param array $line Line data to render.
  @param bool $useCount Renders the count into the row. Default is false.
  @return string[]
docstring_tokens: Renders cells for a row of a table .