original_string: protected function getTotalColumns()
      {
          $columns = $this->visibleColumns ?: $this->getVisibleColumns();
          $total = count($columns);
  
          if ($this->showCheckboxes) {
              $total++;
          }
  
          if ($this->showSetup) {
              $total++;
          }
  
          return $total;
      }
code: protected function getTotalColumns()
      {
          $columns = $this->visibleColumns ?: $this->getVisibleColumns();
          $total = count($columns);
  
          if ($this->showCheckboxes) {
              $total++;
          }
  
          if ($this->showSetup) {
              $total++;
          }
  
          return $total;
      }
code_tokens: protected function getTotalColumns ( ) { $ columns = $ this -> visibleColumns ? : $ this -> getVisibleColumns ( ) ; $ total = count ( $ columns ) ; if ( $ this -> showCheckboxes ) { $ total ++ ; } if ( $ this -> showSetup ) { $ total ++ ; } return $ total ; }
docstring: Calculates the total columns used in the list, including checkboxes
  and other additions.
docstring_tokens: Calculates the total columns used in the list including checkboxes and other additions .