for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Kévin Gomez https://github.com/K-Phoen <[email protected]>
*/
namespace PHPSA\Command;
use PHPSA\Analyzer;
use PHPSA\Configuration;
use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class DumpReferenceCommand extends Command
{
* {@inheritdoc}
protected function configure()
$this
->setName('config:dump-reference')
->setDescription('Dumps the default configuration')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$analyzerConfiguration = Analyzer\Factory::getPassesConfigurations();
$analyzerConfiguration
20
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.
$configuration = new Configuration([], $analyzerConfiguration);
$dumper = new YamlReferenceDumper();
$output->writeln($dumper->dumpNode($configuration->getConfigTreeBuilder($analyzerConfiguration)->buildTree()));
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.