Code Duplication    Length = 3-3 lines in 3 locations

src/Command/GenerateCommand.php 3 locations

@@ 50-52 (lines=3) @@
47
                throw new \RuntimeException(sprintf('Invalid config file specified or invalid return type in file %s', $configFile));
48
            }
49
        } else {
50
            if ($input->hasArgument('openapi-file') && null !== $input->getArgument('openapi-file')) {
51
                $options['openapi-file'] = $input->getArgument('openapi-file');
52
            }
53
54
            if ($input->hasArgument('namespace') && null !== $input->getArgument('namespace')) {
55
                $options['namespace'] = $input->getArgument('namespace');
@@ 54-56 (lines=3) @@
51
                $options['openapi-file'] = $input->getArgument('openapi-file');
52
            }
53
54
            if ($input->hasArgument('namespace') && null !== $input->getArgument('namespace')) {
55
                $options['namespace'] = $input->getArgument('namespace');
56
            }
57
58
            if ($input->hasArgument('directory') && null !== $input->getArgument('directory')) {
59
                $options['directory'] = $input->getArgument('directory');
@@ 58-60 (lines=3) @@
55
                $options['namespace'] = $input->getArgument('namespace');
56
            }
57
58
            if ($input->hasArgument('directory') && null !== $input->getArgument('directory')) {
59
                $options['directory'] = $input->getArgument('directory');
60
            }
61
62
            if ($input->hasOption('date-format') && null !== $input->getOption('date-format')) {
63
                $options['date-format'] = $input->getOption('date-format');