protected function execute(InputInterface $input, OutputInterface $output)
    {
        try {
            $content = $this->handleInput($input);
        } catch (\Exception $e) {
            $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
            $this->runHelp($input, $output);

            return 1;
        }

        $ciconia = $this->createCiconia($input);

        if ($input->getOption('diagnose')) {
            return $this->diagnose($output, $ciconia, $content);
        }

        if ($input->getOption('lint')) {
            return $this->lint($output, $ciconia, $content);
        }

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

        if ($input->getOption('compress')) {
            $html = preg_replace('/>\s+</', '><', $html);
        }

        $output->write($html, false, OutputInterface::OUTPUT_RAW);

        return 0;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        try {
            $content = $this->handleInput($input);
        } catch (\Exception $e) {
            $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
            $this->runHelp($input, $output);

            return 1;
        }

        $ciconia = $this->createCiconia($input);

        if ($input->getOption('diagnose')) {
            return $this->diagnose($output, $ciconia, $content);
        }

        if ($input->getOption('lint')) {
            return $this->lint($output, $ciconia, $content);
        }

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

        if ($input->getOption('compress')) {
            $html = preg_replace('/>\s+</', '><', $html);
        }

        $output->write($html, false, OutputInterface::OUTPUT_RAW);

        return 0;
    }
{@inheritdoc}