Mmoreram\PHPFormatter\Command\UseSortCommand::printDryRunMessage PHP Method

printDryRunMessage() private method

Print the Dry-run message if needed.
private printDryRunMessage ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, string $path ) : UseSortCommand
$input Symfony\Component\Console\Input\InputInterface Input
$output Symfony\Component\Console\Output\OutputInterface Output
$path string Path
return UseSortCommand self Object
    private function printDryRunMessage(InputInterface $input, OutputInterface $output, $path)
    {
        $dryRun = $input->getOption('dry-run');
        $verbose = $output->getVerbosity();
        /*
         * Dry-run message
         */
        if ($dryRun && $verbose >= OutputInterface::VERBOSITY_VERBOSE) {
            $output->writeln('# This process has been executed in mode dry-run');
        }
        if ($verbose >= OutputInterface::VERBOSITY_VERBOSE) {
            $output->writeln('# Executing process in ' . $path);
        }
        return $this;
    }