protected function outputBlock(array $aLines, string $sType): void
    {
        $aLengths   = array_map('strlen', $aLines);
        $iMaxLength = max($aLengths);

        $this->oOutput->writeln('<' . $sType . '> ' . str_pad('', $iMaxLength, ' ') . ' </' . $sType . '>');
        foreach ($aLines as $sLine) {
            $this->oOutput->writeln('<' . $sType . '> ' . str_pad($sLine, $iMaxLength, ' ') . ' </' . $sType . '>');
        }
        $this->oOutput->writeln('<' . $sType . '> ' . str_pad('', $iMaxLength, ' ') . ' </' . $sType . '>');
    }
protected function outputBlock(array $aLines, string $sType): void
    {
        $aLengths   = array_map('strlen', $aLines);
        $iMaxLength = max($aLengths);

        $this->oOutput->writeln('<' . $sType . '> ' . str_pad('', $iMaxLength, ' ') . ' </' . $sType . '>');
        foreach ($aLines as $sLine) {
            $this->oOutput->writeln('<' . $sType . '> ' . str_pad($sLine, $iMaxLength, ' ') . ' </' . $sType . '>');
        }
        $this->oOutput->writeln('<' . $sType . '> ' . str_pad('', $iMaxLength, ' ') . ' </' . $sType . '>');
    }
protected function outputBlock ( array $ aLines , string $ sType ) : void { $ aLengths = array_map ( 'strlen' , $ aLines ) ; $ iMaxLength = max ( $ aLengths ) ; $ this -> oOutput -> writeln ( '<' . $ sType . '> ' . str_pad ( '' , $ iMaxLength , ' ' ) . ' </' . $ sType . '>' ) ; foreach ( $ aLines as $ sLine ) { $ this -> oOutput -> writeln ( '<' . $ sType . '> ' . str_pad ( $ sLine , $ iMaxLength , ' ' ) . ' </' . $ sType . '>' ) ; } $ this -> oOutput -> writeln ( '<' . $ sType . '> ' . str_pad ( '' , $ iMaxLength , ' ' ) . ' </' . $ sType . '>' ) ; }
Renders an coloured block

@param array  $aLines The lines to render
@param string $sType  The type of block to render
Renders an coloured block