src/Eloquent/Typhoon/Console/Command/CheckCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->typeCheck->execute(func_get_args());

        $this->isolator->chdir($input->getArgument('path'));

        $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
        $configuration = $this->getApplication()->configurationReader()->read(null, true);
        $this->includeLoaders($configuration, $output);

        $output->writeln('<info>Checking for correct Typhoon setup...</info>');
        $result = $this->analyzer()->analyze($configuration);

        if (count($result->issues()) < 1) {
            $output->writeln('<info>No problems detected.</info>');
        } else {
            if (count($result->issuesBySeverity(IssueSeverity::ERROR())) > 0) {
                $output->writeln('');
                $output->writeln($this->generateErrorBlock($result));
            }
            if (count($result->issuesBySeverity(IssueSeverity::WARNING())) > 0) {
                $output->writeln('');
                $output->writeln($this->generateWarningBlock($result));
            }
        }

        if ($result->isError()) {
            return 1;
        }

        return 0;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->typeCheck->execute(func_get_args());

        $this->isolator->chdir($input->getArgument('path'));

        $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
        $configuration = $this->getApplication()->configurationReader()->read(null, true);
        $this->includeLoaders($configuration, $output);

        $output->writeln('<info>Checking for correct Typhoon setup...</info>');
        $result = $this->analyzer()->analyze($configuration);

        if (count($result->issues()) < 1) {
            $output->writeln('<info>No problems detected.</info>');
        } else {
            if (count($result->issuesBySeverity(IssueSeverity::ERROR())) > 0) {
                $output->writeln('');
                $output->writeln($this->generateErrorBlock($result));
            }
            if (count($result->issuesBySeverity(IssueSeverity::WARNING())) > 0) {
                $output->writeln('');
                $output->writeln($this->generateWarningBlock($result));
            }
        }

        if ($result->isError()) {
            return 1;
        }

        return 0;
    }
@param InputInterface  $input
@param OutputInterface $output

@return integer