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