Code Duplication    Length = 6-6 lines in 3 locations

src/Eccube/Command/PluginGenerateCommand.php 3 locations

@@ 76-81 (lines=6) @@
73
74
        // Plugin name.
75
        $name = $input->getArgument('name');
76
        if (null !== $name) {
77
            $this->io->text(' > <info>name</info>: '.$name);
78
        } else {
79
            $name = $this->io->ask('name', 'EC-CUBE Sample Plugin');
80
            $input->setArgument('name', $name);
81
        }
82
83
        // Plugin code.
84
        $code = $input->getArgument('code');
@@ 85-90 (lines=6) @@
82
83
        // Plugin code.
84
        $code = $input->getArgument('code');
85
        if (null !== $code) {
86
            $this->io->text(' > <info>code</info>: '.$code);
87
        } else {
88
            $code = $this->io->ask('code', 'Sample', [$this, 'validateCode']);
89
            $input->setArgument('code', $code);
90
        }
91
92
        // Plugin version.
93
        $version = $input->getArgument('ver');
@@ 94-99 (lines=6) @@
91
92
        // Plugin version.
93
        $version = $input->getArgument('ver');
94
        if (null !== $version) {
95
            $this->io->text(' > <info>ver</info>: '.$version);
96
        } else {
97
            $version = $this->io->ask('ver', '1.0.0', [$this, 'validateVersion']);
98
            $input->setArgument('ver', $version);
99
        }
100
    }
101
102
    protected function execute(InputInterface $input, OutputInterface $output)