protected function columnsToDisplay()
    {
        if (!$this->input->hasOption('columns')) {
            return [];
        }
        $columns = $this->input->getOption('columns');
        if (count($columns) === 1) {
            $columns = preg_split('/\s*,\s*/', $columns[0]);
        }

        return $columns;
    }
protected function columnsToDisplay()
    {
        if (!$this->input->hasOption('columns')) {
            return [];
        }
        $columns = $this->input->getOption('columns');
        if (count($columns) === 1) {
            $columns = preg_split('/\s*,\s*/', $columns[0]);
        }

        return $columns;
    }
protected function columnsToDisplay ( ) { if ( ! $ this -> input -> hasOption ( 'columns' ) ) { return [ ] ; } $ columns = $ this -> input -> getOption ( 'columns' ) ; if ( count ( $ columns ) === 1 ) { $ columns = preg_split ( '/\s*,\s*/' , $ columns [ 0 ] ) ; } return $ columns ; }
Get the columns specified by the user.

@return array
Get the columns specified by the user .