Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 177-180 (lines=4) @@
174
            $vote->updateVote(time());
175
176
            switch ($vote->getStatus()) {
177
                case AbstractVote::STATUS_CANCEL:
178
                    $this->dispatcher->dispatch("votemanager.votecancelled",
179
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
180
                    break;
181
                case AbstractVote::STATUS_FAILED:
182
                    $this->dispatcher->dispatch("votemanager.votefailed",
183
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
@@ 181-184 (lines=4) @@
178
                    $this->dispatcher->dispatch("votemanager.votecancelled",
179
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
180
                    break;
181
                case AbstractVote::STATUS_FAILED:
182
                    $this->dispatcher->dispatch("votemanager.votefailed",
183
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
184
                    break;
185
                case AbstractVote::STATUS_PASSED:
186
                    $this->dispatcher->dispatch("votemanager.votepassed",
187
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
@@ 185-188 (lines=4) @@
182
                    $this->dispatcher->dispatch("votemanager.votefailed",
183
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
184
                    break;
185
                case AbstractVote::STATUS_PASSED:
186
                    $this->dispatcher->dispatch("votemanager.votepassed",
187
                        [$vote->getPlayer(), $vote->getType(), $this->currentVote]);
188
                    break;
189
            }
190
        }
191
    }