Code Duplication    Length = 8-8 lines in 2 locations

src/eXpansion/Bundle/VoteManager/Plugins/Votes/AbstractVotePlugin.php 2 locations

@@ 81-88 (lines=8) @@
78
     *
79
     * @param string $login
80
     */
81
    public function castYes($login)
82
    {
83
        if ($this->currentVote) {
84
            $player = $this->playerStorage->getPlayerInfo($login);
85
            $this->currentVote->castYes($login);
86
            $this->dispatcher->dispatch("votemanager.vote.yes", [$player, $this->currentVote]);
87
        }
88
    }
89
90
    /**
91
     * User votes no
@@ 95-102 (lines=8) @@
92
     *
93
     * @param string $login
94
     */
95
    public function castNo($login)
96
    {
97
        if ($this->currentVote) {
98
            $player = $this->playerStorage->getPlayerInfo($login);
99
            $this->currentVote->castNo($login);
100
            $this->dispatcher->dispatch("votemanager.vote.no", [$player, $this->currentVote]);
101
        }
102
    }
103
104
    /**
105
     * Cancel ongoing vote.