for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of project-quality-inspector.
*
* (c) Alexandre GESLIN <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ProjectQualityInspector\Application;
use Symfony\Component\Console\Application;
use ProjectQualityInspector\Command\MainCommand;
/**
* A Quality runner for the Command Line Interface (CLI)
* PHP SAPI Module.
class ConsoleApplication
{
public static function main()
$console = new static;
return $console->run();
}
* @return int
public function run()
$application = $this->getApplication();
return $application->run();
* @return Application
public function getApplication()
$application = new Application('pqi', '1.8.0');
$command = new MainCommand();
$application->add($command);
$application->setDefaultCommand($command->getName(), true);
return $application;