src/Commands/TemplatesCommand.php
protected function collectRows()
    {
        $rows = collect($this->collection->all())
            ->filter(function ($template) {
                return $template['is_alias'] == false;
            })
            ->sortBy('name')
            ->map(function ($template) {
                $row = [];

                $names = array_merge([$template['name']], $template['aliases']);
                $row[] = implode("\n/ ", $names);
                $row[] = wordwrap($template['path'], 65, "\n", true);
                $row[] = wordwrap($template['description'], 25, "\n", true);

                return $row;
            });

        return $this->separateRows($rows);
    }
protected function collectRows()
    {
        $rows = collect($this->collection->all())
            ->filter(function ($template) {
                return $template['is_alias'] == false;
            })
            ->sortBy('name')
            ->map(function ($template) {
                $row = [];

                $names = array_merge([$template['name']], $template['aliases']);
                $row[] = implode("\n/ ", $names);
                $row[] = wordwrap($template['path'], 65, "\n", true);
                $row[] = wordwrap($template['description'], 25, "\n", true);

                return $row;
            });

        return $this->separateRows($rows);
    }
protected function collectRows ( ) { $ rows = collect ( $ this -> collection -> all ( ) ) -> filter ( function ( $ template ) { return $ template [ 'is_alias' ] == false ; } ) -> sortBy ( 'name' ) -> map ( function ( $ template ) { $ row = [ ] ; $ names = array_merge ( [ $ template [ 'name' ] ] , $ template [ 'aliases' ] ) ; $ row [ ] = implode ( "\n/ " , $ names ) ; $ row [ ] = wordwrap ( $ template [ 'path' ] , 65 , "\n" , true ) ; $ row [ ] = wordwrap ( $ template [ 'description' ] , 25 , "\n" , true ) ; return $ row ; } ) ; return $ this -> separateRows ( $ rows ) ; }
Collect and return templates from a Migrator.

@return array
Collect and return templates from a Migrator .