original_string: public function addColumns(array $cols) {
          foreach ($cols as $col) {
              $this->cols[] = DataColumn::fromArray($col);
          }
      }
code: public function addColumns(array $cols) {
          foreach ($cols as $col) {
              $this->cols[] = DataColumn::fromArray($col);
          }
      }
code_tokens: public function addColumns ( array $ cols ) { foreach ( $ cols as $ col ) { $ this -> cols [ ] = DataColumn :: fromArray ( $ col ) ; } }
docstring: Adds multiple columns at the end of the array
  the column should be an associative array, that can have 'label', 'id' and 'type'
  @param array $cols
docstring_tokens: Adds multiple columns at the end of the array the column should be an associative array that can have label id and type