src/mako/reactor/Reactor.php
protected function drawTable(string $heading, array $headers, array $rows): void
	{
		if(!empty($rows))
		{
			$this->output->write(PHP_EOL);

			$this->output->writeLn('<yellow>' . $heading . '</yellow>');

			$this->output->write(PHP_EOL);

			$table = new Table($this->output);

			$headers = array_map(function($value) { return '<green>' . $value . '</green>'; }, $headers);

			$table->draw($headers, $rows);
		}
	}
protected function drawTable(string $heading, array $headers, array $rows): void
	{
		if(!empty($rows))
		{
			$this->output->write(PHP_EOL);

			$this->output->writeLn('<yellow>' . $heading . '</yellow>');

			$this->output->write(PHP_EOL);

			$table = new Table($this->output);

			$headers = array_map(function($value) { return '<green>' . $value . '</green>'; }, $headers);

			$table->draw($headers, $rows);
		}
	}
protected function drawTable ( string $ heading , array $ headers , array $ rows ) : void { if ( ! empty ( $ rows ) ) { $ this -> output -> write ( PHP_EOL ) ; $ this -> output -> writeLn ( '<yellow>' . $ heading . '</yellow>' ) ; $ this -> output -> write ( PHP_EOL ) ; $ table = new Table ( $ this -> output ) ; $ headers = array_map ( function ( $ value ) { return '<green>' . $ value . '</green>' ; } , $ headers ) ; $ table -> draw ( $ headers , $ rows ) ; } }
Draws information table.

@param string $heading Table heading
@param array  $headers Table headers
@param array  $rows    Table rows
Draws information table .