Code Duplication    Length = 12-12 lines in 2 locations

src/Eccube/Command/GenerateDummyDataCommand.php 2 locations

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