Code Duplication    Length = 6-6 lines in 3 locations

src/eXpansion/Bundle/VoteManager/Services/VoteService.php 3 locations

@@ 107-112 (lines=6) @@
104
            $this->currentVote->update(time());
105
106
            switch ($vote->getStatus()) {
107
                case Vote::STATUS_CANCEL:
108
                    $this->dispatcher->dispatch("votemanager.vote.cancelled",
109
                        [$vote->getPlayer(), $vote->getType(), $vote]);
110
                    $this->currentVote = null;
111
                    $this->reset();
112
                    break;
113
                case Vote::STATUS_FAILED:
114
                    $this->dispatcher->dispatch("votemanager.vote.failed",
115
                        [$vote->getPlayer(), $vote->getType(), $vote]);
@@ 113-118 (lines=6) @@
110
                    $this->currentVote = null;
111
                    $this->reset();
112
                    break;
113
                case Vote::STATUS_FAILED:
114
                    $this->dispatcher->dispatch("votemanager.vote.failed",
115
                        [$vote->getPlayer(), $vote->getType(), $vote]);
116
                    $this->currentVote = null;
117
                    $this->reset();
118
                    break;
119
                case Vote::STATUS_PASSED:
120
                    $this->dispatcher->dispatch("votemanager.vote.passed",
121
                        [$vote->getPlayer(), $vote->getType(), $vote]);
@@ 119-124 (lines=6) @@
116
                    $this->currentVote = null;
117
                    $this->reset();
118
                    break;
119
                case Vote::STATUS_PASSED:
120
                    $this->dispatcher->dispatch("votemanager.vote.passed",
121
                        [$vote->getPlayer(), $vote->getType(), $vote]);
122
                    $this->currentVote = null;
123
                    $this->reset();
124
                    break;
125
            }
126
        }
127
    }