Code Duplication    Length = 12-12 lines in 2 locations

src/Eccube/Command/GenerateDummyDataCommand.php 2 locations

@@ 60-71 (lines=12) @@
57
            $email = microtime(true).'.'.$faker->safeEmail;
58
            $Customer = $this->app['eccube.fixture.generator.locale']($locale)->createCustomer($email);
59
            $Customer->setBirth($faker->dateTimeBetween('-110 years', '- 5 years'));
60
            switch ($output->getVerbosity()) {
61
                case OutputInterface::VERBOSITY_QUIET:
62
                    break;
63
                case OutputInterface::VERBOSITY_NORMAL:
64
                    $output->write('C');
65
                    break;
66
                case OutputInterface::VERBOSITY_VERBOSE:
67
                case OutputInterface::VERBOSITY_VERY_VERBOSE:
68
                case OutputInterface::VERBOSITY_DEBUG:
69
                    $output->writeln('Customer: id='.$Customer->getId().' '.$Customer->getEmail());
70
                    break;
71
            }
72
            if ($output->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL && ($i % 100) === 0 && $i > 0) {
73
                $output->writeln(' ...'.$i);
74
            }
@@ 79-90 (lines=12) @@
76
        }
77
        for ($i = 0; $i < $numberOfProducts; $i++) {
78
            $Product = $this->app['eccube.fixture.generator.locale']($locale)->createProduct(null, 3, $notImage ? null : $imageType);
79
            switch ($output->getVerbosity()) {
80
                case OutputInterface::VERBOSITY_QUIET:
81
                    break;
82
                case OutputInterface::VERBOSITY_NORMAL:
83
                    $output->write('P');
84
                    break;
85
                case OutputInterface::VERBOSITY_VERBOSE:
86
                case OutputInterface::VERBOSITY_VERY_VERBOSE:
87
                case OutputInterface::VERBOSITY_DEBUG:
88
                    $output->writeln('Product: id='.$Product->getId().' '.$Product->getName());
89
                    break;
90
            }
91
            if ($output->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL && ($i % 100) === 0 && $i > 0) {
92
                $output->writeln(' ...'.$i);
93
            }