src/Output/Me.php
public function comments(OutputInterface $output, array $response)
    {
        $table = $this->createTable($output);

        $table->setHeaders(['Name', 'Language', 'Version', 'Type', 'Date', 'Comment']);

        foreach ($response['comments'] as $comment) {
            $table->addRow([$comment['product']['name'], $comment['product']['language'], $comment['product']['version'], $comment['product']['prod_type'], $comment['created_at'], $comment['comment']]);
        }

        $table->render($output);
    }
public function comments(OutputInterface $output, array $response)
    {
        $table = $this->createTable($output);

        $table->setHeaders(['Name', 'Language', 'Version', 'Type', 'Date', 'Comment']);

        foreach ($response['comments'] as $comment) {
            $table->addRow([$comment['product']['name'], $comment['product']['language'], $comment['product']['version'], $comment['product']['prod_type'], $comment['created_at'], $comment['comment']]);
        }

        $table->render($output);
    }
public function comments ( OutputInterface $ output , array $ response ) { $ table = $ this -> createTable ( $ output ) ; $ table -> setHeaders ( [ 'Name' , 'Language' , 'Version' , 'Type' , 'Date' , 'Comment' ] ) ; foreach ( $ response [ 'comments' ] as $ comment ) { $ table -> addRow ( [ $ comment [ 'product' ] [ 'name' ] , $ comment [ 'product' ] [ 'language' ] , $ comment [ 'product' ] [ 'version' ] , $ comment [ 'product' ] [ 'prod_type' ] , $ comment [ 'created_at' ] , $ comment [ 'comment' ] ] ) ; } $ table -> render ( $ output ) ; }
output for the comments api.

@param OutputInterface $output
@param array           $response
output for the comments api .