Completed
Pull Request — master (#155)
by De Cramer
02:56
created
src/eXpansion/Bundle/VoteManager/Plugins/Gui/Widget/VoteWidgetFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@
 block discarded – undo
169 169
 
170 170
     }
171 171
 
172
+    /**
173
+     * @param string $message
174
+     */
172 175
     public function setMessage($message)
173 176
     {
174 177
         $this->label->setTextId($message);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,15 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\VoteManager\Plugins\Gui\Widget;
4 4
 
5
-use eXpansion\Bundle\VoteManager\Plugins\Votes\AbstractVotePlugin;
6 5
 use eXpansion\Bundle\VoteManager\Services\VoteService;
7
-use eXpansion\Bundle\VoteManager\Structures\Vote;
8 6
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
9 7
 use eXpansion\Framework\Core\Model\Gui\Widget;
10 8
 use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext;
11 9
 use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
12 10
 use eXpansion\Framework\Gui\Builders\WidgetBackground;
13
-use eXpansion\Framework\Gui\Components\uiButton;
14 11
 use eXpansion\Framework\Gui\Components\uiLabel;
15 12
 use eXpansion\Framework\Gui\Ui\Factory;
16 13
 use FML\Controls\Quad;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/VoteManager/Plugins/Votes/AbstractVotePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         if (($time - $this->currentVote->getStartTime()) > $this->duration) {
126 126
             $totalVotes = $this->currentVote->getYes() + $this->currentVote->getNo() * 1.0;
127 127
 
128
-            if ($totalVotes >= 1 && ($this->currentVote->getYes()/$totalVotes) > $this->ratio) {
128
+            if ($totalVotes >= 1 && ($this->currentVote->getYes() / $totalVotes) > $this->ratio) {
129 129
                 $this->votePassed();
130 130
             } else {
131 131
                 $this->voteFailed();
Please login to merge, or discard this patch.
src/eXpansion/Bundle/VoteManager/Plugins/Votes/NextMapVote.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function getCode(): string
78 78
     {
79
-       return 'Exp_NextMap';
79
+        return 'Exp_NextMap';
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.