src/Command/Check.php
protected function configure()
    {
        $this->setName('check')
             ->setDescription('A pair programming partner for writing better PHP')
             ->addArgument('files', InputArgument::IS_ARRAY, 'List of file names or directory names to be analyzed')
             ->addOption(
                 'php-version',
                 null,
                 InputOption::VALUE_OPTIONAL,
                 'Target PHP version <comment>[default: runtime version]</>',
                 null
             )
             ->addOption(
                 'ignore-tools',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Ignore tool types <comment>[default: Nothing to ignore]</>',
                 null
             )
             ->addOption(
                 'ignore-paths',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Ignore files and directories <comment>[default: Nothing to ignore]</>',
                 null
             )
             ->addOption(
                 'extensions',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'File extensions to be analyzed <comment>[default: php]</>',
                 null
             )
             ->addOption(
                 'vendor',
                 null,
                 InputOption::VALUE_OPTIONAL,
                 'Check vendor directory <comment>[default: false]</>',
                 null
             )
             ->addOption(
                 'format',
                 'f',
                 InputOption::VALUE_OPTIONAL,
                 'Output format <comment>[default: "pretty", possibles: "pretty", "json"]</>',
                 null
             )
             ->addOption(
                 'config',
                 'c',
                 InputOption::VALUE_OPTIONAL,
                 'Config file path',
                 '.pahout.yaml'
             )
             ->addOption(
                 'only-tools',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Check only the given tool types'
             );
    }
protected function configure()
    {
        $this->setName('check')
             ->setDescription('A pair programming partner for writing better PHP')
             ->addArgument('files', InputArgument::IS_ARRAY, 'List of file names or directory names to be analyzed')
             ->addOption(
                 'php-version',
                 null,
                 InputOption::VALUE_OPTIONAL,
                 'Target PHP version <comment>[default: runtime version]</>',
                 null
             )
             ->addOption(
                 'ignore-tools',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Ignore tool types <comment>[default: Nothing to ignore]</>',
                 null
             )
             ->addOption(
                 'ignore-paths',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Ignore files and directories <comment>[default: Nothing to ignore]</>',
                 null
             )
             ->addOption(
                 'extensions',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'File extensions to be analyzed <comment>[default: php]</>',
                 null
             )
             ->addOption(
                 'vendor',
                 null,
                 InputOption::VALUE_OPTIONAL,
                 'Check vendor directory <comment>[default: false]</>',
                 null
             )
             ->addOption(
                 'format',
                 'f',
                 InputOption::VALUE_OPTIONAL,
                 'Output format <comment>[default: "pretty", possibles: "pretty", "json"]</>',
                 null
             )
             ->addOption(
                 'config',
                 'c',
                 InputOption::VALUE_OPTIONAL,
                 'Config file path',
                 '.pahout.yaml'
             )
             ->addOption(
                 'only-tools',
                 null,
                 InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
                 'Check only the given tool types'
             );
    }
protected function configure ( ) { $ this -> setName ( 'check' ) -> setDescription ( 'A pair programming partner for writing better PHP' ) -> addArgument ( 'files' , InputArgument :: IS_ARRAY , 'List of file names or directory names to be analyzed' ) -> addOption ( 'php-version' , null , InputOption :: VALUE_OPTIONAL , 'Target PHP version <comment>[default: runtime version]</>' , null ) -> addOption ( 'ignore-tools' , null , InputOption :: VALUE_OPTIONAL | InputOption :: VALUE_IS_ARRAY , 'Ignore tool types <comment>[default: Nothing to ignore]</>' , null ) -> addOption ( 'ignore-paths' , null , InputOption :: VALUE_OPTIONAL | InputOption :: VALUE_IS_ARRAY , 'Ignore files and directories <comment>[default: Nothing to ignore]</>' , null ) -> addOption ( 'extensions' , null , InputOption :: VALUE_OPTIONAL | InputOption :: VALUE_IS_ARRAY , 'File extensions to be analyzed <comment>[default: php]</>' , null ) -> addOption ( 'vendor' , null , InputOption :: VALUE_OPTIONAL , 'Check vendor directory <comment>[default: false]</>' , null ) -> addOption ( 'format' , 'f' , InputOption :: VALUE_OPTIONAL , 'Output format <comment>[default: "pretty", possibles: "pretty", "json"]</>' , null ) -> addOption ( 'config' , 'c' , InputOption :: VALUE_OPTIONAL , 'Config file path' , '.pahout.yaml' ) -> addOption ( 'only-tools' , null , InputOption :: VALUE_OPTIONAL | InputOption :: VALUE_IS_ARRAY , 'Check only the given tool types' ) ; }
Define commands and other options.

Default values ​​are not specified for configuration merging.

@return void

Argument 2 (shortcut) is null but \Pahout\Command\Check::addOption() takes string defined at vendor/symfony/console/Command/Command.php: vendoring library causes this warnings :(
@suppress PhanTypeMismatchArgument
Define commands and other options .