for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
namespace Churn\Result\Render;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Output\OutputInterface;
class ConsoleResultsRenderer implements ResultsRendererInterface
{
/**
* Renders the results.
* @param OutputInterface $output Output Interface.
* @param array $results The results.
* @return void
*/
public function render(OutputInterface $output, array $results): void
$table = new Table($output);
$table->setHeaders(['File', 'Times Changed', 'Complexity', 'Score']);
$table->addRows($results);
$table->render();
}