src/TerminalObject/Basic/Columns.php
protected function setData()
    {
        // If it's already an array of arrays, we're good to go
        if (is_array(reset($this->data))) {
            return $this->setArrayOfArraysData();
        }

        $column_width = $this->getColumnWidth($this->data);
        $row_count    = $this->getMaxRows($column_width);

        return array_chunk($this->data, $row_count);
    }
protected function setData()
    {
        // If it's already an array of arrays, we're good to go
        if (is_array(reset($this->data))) {
            return $this->setArrayOfArraysData();
        }

        $column_width = $this->getColumnWidth($this->data);
        $row_count    = $this->getMaxRows($column_width);

        return array_chunk($this->data, $row_count);
    }
protected function setData ( ) { // If it's already an array of arrays, we're good to go if ( is_array ( reset ( $ this -> data ) ) ) { return $ this -> setArrayOfArraysData ( ) ; } $ column_width = $ this -> getColumnWidth ( $ this -> data ) ; $ row_count = $ this -> getMaxRows ( $ column_width ) ; return array_chunk ( $ this -> data , $ row_count ) ; }
Re-configure the data into it's final form
Re - configure the data into it s final form