Code Duplication    Length = 6-6 lines in 2 locations

src/Surfnet/StepupMiddleware/MiddlewareBundle/Console/Command/ReplaySpecificEventsCommand.php 2 locations

@@ 93-98 (lines=6) @@
90
        $availableEvents     = $this->collection->getEventNames();
91
        $availableProjectors = $this->projectorCollection->getProjectorNames();
92
93
        if ($input->getOption(self::OPTION_LIST_EVENTS)) {
94
            $output->writeln('<info>The following events can be replayed:</info>');
95
            $output->writeln(!empty($availableEvents) ? $availableEvents : 'None.');
96
97
            return;
98
        }
99
100
        if ($input->getOption(self::OPTION_LIST_PROJECTORS)) {
101
            $output->writeln('<info>Events can be replayed for the following projectors:</info>');
@@ 100-105 (lines=6) @@
97
            return;
98
        }
99
100
        if ($input->getOption(self::OPTION_LIST_PROJECTORS)) {
101
            $output->writeln('<info>Events can be replayed for the following projectors:</info>');
102
            $output->writeln(!empty($availableProjectors) ? $availableProjectors : 'None.');
103
104
            return;
105
        }
106
107
        if (count($availableProjectors) === 0) {
108
            $output->writeln('<error>There are no projectors configured to reply events for</error>');