protected function configure(): void
    {
        $this->setName('dependency-guard');
        $this->setDescription(
            'Check Composer dependencies for a --no-dev install.'
        );

        $this->addOption(
            'format',
            'f',
            InputOption::VALUE_REQUIRED,
            'The output format. '
                . implode(
                    ', ',
                    array_map(
                        function (string $format) : string {
                            return sprintf('<comment>%s</comment>', $format);
                        },
                        $this->exporterFactory->getOutputFormats()
                    )
                ),
            ViolationExporterFactoryInterface::DEFAULT_FORMAT
        );
    }
protected function configure(): void
    {
        $this->setName('dependency-guard');
        $this->setDescription(
            'Check Composer dependencies for a --no-dev install.'
        );

        $this->addOption(
            'format',
            'f',
            InputOption::VALUE_REQUIRED,
            'The output format. '
                . implode(
                    ', ',
                    array_map(
                        function (string $format) : string {
                            return sprintf('<comment>%s</comment>', $format);
                        },
                        $this->exporterFactory->getOutputFormats()
                    )
                ),
            ViolationExporterFactoryInterface::DEFAULT_FORMAT
        );
    }
protected function configure ( ) : void { $ this -> setName ( 'dependency-guard' ) ; $ this -> setDescription ( 'Check Composer dependencies for a --no-dev install.' ) ; $ this -> addOption ( 'format' , 'f' , InputOption :: VALUE_REQUIRED , 'The output format. ' . implode ( ', ' , array_map ( function ( string $ format ) : string { return sprintf ( '<comment>%s</comment>' , $ format ) ; } , $ this -> exporterFactory -> getOutputFormats ( ) ) ) , ViolationExporterFactoryInterface :: DEFAULT_FORMAT ) ; }
Configure the command.

@return void
Configure the command .