Code Duplication    Length = 8-8 lines in 2 locations

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

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