src/Ciconia/Console/Command/CiconiaCommand.php
protected function diagnose(OutputInterface $output, \Ciconia\Diagnose\Ciconia $ciconia, $content)
    {
        /* @var TableHelper $table */
        $table = $this->getHelper('table');
        $table->setHeaders([
            'Event', 'Callback', 'Duration', 'MEM Usage'
        ]);

        $table->addRow(['', 'render()', '-', '-']);

        $events = $ciconia->render($content);

        foreach ($events as $event) {
            $table->addRow([
                $event->getEvent(),
                str_repeat('  ', $event->getDepth()) . $event->getCallback(),
                $event->getDuration(),
                $event->getMemory()
            ]);
        }

        $table->render($output);

        return 0;
    }
protected function diagnose(OutputInterface $output, \Ciconia\Diagnose\Ciconia $ciconia, $content)
    {
        /* @var TableHelper $table */
        $table = $this->getHelper('table');
        $table->setHeaders([
            'Event', 'Callback', 'Duration', 'MEM Usage'
        ]);

        $table->addRow(['', 'render()', '-', '-']);

        $events = $ciconia->render($content);

        foreach ($events as $event) {
            $table->addRow([
                $event->getEvent(),
                str_repeat('  ', $event->getDepth()) . $event->getCallback(),
                $event->getDuration(),
                $event->getMemory()
            ]);
        }

        $table->render($output);

        return 0;
    }
protected function diagnose ( OutputInterface $ output , \ Ciconia \ Diagnose \ Ciconia $ ciconia , $ content ) { /* @var TableHelper $table */ $ table = $ this -> getHelper ( 'table' ) ; $ table -> setHeaders ( [ 'Event' , 'Callback' , 'Duration' , 'MEM Usage' ] ) ; $ table -> addRow ( [ '' , 'render()' , '-' , '-' ] ) ; $ events = $ ciconia -> render ( $ content ) ; foreach ( $ events as $ event ) { $ table -> addRow ( [ $ event -> getEvent ( ) , str_repeat ( '  ' , $ event -> getDepth ( ) ) . $ event -> getCallback ( ) , $ event -> getDuration ( ) , $ event -> getMemory ( ) ] ) ; } $ table -> render ( $ output ) ; return 0 ; }
Diagnose

@param OutputInterface           $output
@param \Ciconia\Diagnose\Ciconia $ciconia
@param string                    $content

@return int
Diagnose