src/Command/PageflowerPageflowDebugCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $pageflows = $this->getContainer()->get('phpmentors_pageflower.pageflow_repository')->findAll();

        $output->writeln($this->getHelper('formatter')->formatSection('pageflower', 'Pageflows'));

        $pageflowIdMaxLength = strlen('pageflowId');

        foreach ($pageflows as $pageflowId => $pageflow) {
            $pageflowIdMaxLength = max($pageflowIdMaxLength, strlen($pageflowId));
        }

        $format = '%-'.$pageflowIdMaxLength.'s';
        $formatHeader = '%-'.($pageflowIdMaxLength + 19).'s';
        $output->writeln(sprintf($formatHeader, '<comment>Pageflow Id</comment>'));

        foreach ($pageflows as $pageflowId => $pageflow) {
            $output->writeln(sprintf($format, $pageflowId), OutputInterface::OUTPUT_RAW);
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $pageflows = $this->getContainer()->get('phpmentors_pageflower.pageflow_repository')->findAll();

        $output->writeln($this->getHelper('formatter')->formatSection('pageflower', 'Pageflows'));

        $pageflowIdMaxLength = strlen('pageflowId');

        foreach ($pageflows as $pageflowId => $pageflow) {
            $pageflowIdMaxLength = max($pageflowIdMaxLength, strlen($pageflowId));
        }

        $format = '%-'.$pageflowIdMaxLength.'s';
        $formatHeader = '%-'.($pageflowIdMaxLength + 19).'s';
        $output->writeln(sprintf($formatHeader, '<comment>Pageflow Id</comment>'));

        foreach ($pageflows as $pageflowId => $pageflow) {
            $output->writeln(sprintf($format, $pageflowId), OutputInterface::OUTPUT_RAW);
        }
    }
{@inheritdoc}