Completed
Pull Request — master (#123)
by De Cramer
12:37
created
src/eXpansion/Framework/Core/Model/Gui/Factory/LineFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     public function create($totalWidth, $columns, $index = 0, $height = 5.0, $autoNewLine = false, $maxLines = 1)
59 59
     {
60 60
         $totalCoef
61
-            = ($totalWidth - 1) / array_reduce($columns, function ($carry, $item) {
61
+            = ($totalWidth - 1) / array_reduce($columns, function($carry, $item) {
62 62
                 return $carry + $item['width'];
63 63
             });
64 64
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/CustomUi/Plugins/CustomUi.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\CustomUi\Plugins;
4 4
 
5
-use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6 5
 use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpApplication;
7
-use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyChat;
8 6
 use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyPlayer;
9 7
 use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface;
10
-use eXpansion\Framework\Core\Services\Console;
11 8
 use eXpansion\Framework\Core\Storage\Data\Player;
12 9
 use eXpansion\Framework\Core\Storage\PlayerStorage;
13 10
 use Maniaplanet\DedicatedServer\Connection;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
  	</ui_properties>
136 136
 EOL;
137 137
 
138
-       // $this->connection->triggerModeScriptEvent('Trackmania.UI.SetProperties', [$properties]);
138
+        // $this->connection->triggerModeScriptEvent('Trackmania.UI.SetProperties', [$properties]);
139 139
     }
140 140
 
141 141
     /**
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Admin/Plugins/Gui/ScriptSettingsWindowFactory.php 1 patch
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@  discard block
 block discarded – undo
3 3
 namespace eXpansion\Bundle\Admin\Plugins\Gui;
4 4
 
5 5
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6
-use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyManialink;
7 6
 use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory;
8 7
 use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder;
9 8
 use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory;
@@ -11,12 +10,7 @@  discard block
 block discarded – undo
11 10
 use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext;
12 11
 use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory;
13 12
 use eXpansion\Framework\Core\Services\Console;
14
-use eXpansion\Framework\Gui\Components\uiAnimation;
15
-use eXpansion\Framework\Gui\Components\uiButton;
16
-use eXpansion\Framework\Gui\Components\uiLabel;
17 13
 use FML\Controls\Frame;
18
-use FML\Controls\Label;
19
-use FML\Controls\Quad;
20 14
 use Maniaplanet\DedicatedServer\Connection;
21 15
 
22 16
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Admin/Plugins/Gui/ServerSettingsWindowFactory.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -3,17 +3,10 @@  discard block
 block discarded – undo
3 3
 namespace eXpansion\Bundle\Admin\Plugins\Gui;
4 4
 
5 5
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6
-use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyManialink;
7
-use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory;
8
-use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder;
9
-use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory;
10 6
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
11 7
 use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext;
12
-use eXpansion\Framework\Core\Model\UserGroups\Group;
13
-use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory;
14 8
 use eXpansion\Framework\Core\Plugins\Gui\WindowFactory;
15 9
 use eXpansion\Framework\Core\Services\Console;
16
-use eXpansion\Framework\Gui\Components\uiAnimation;
17 10
 use eXpansion\Framework\Gui\Components\uiButton;
18 11
 use eXpansion\Framework\Gui\Components\uiCheckbox;
19 12
 use eXpansion\Framework\Gui\Components\uiDropdown;
@@ -22,8 +15,6 @@  discard block
 block discarded – undo
22 15
 use eXpansion\Framework\Gui\Components\uiLabel;
23 16
 use eXpansion\Framework\Gui\Components\uiTextbox;
24 17
 use FML\Controls\Frame;
25
-use FML\Controls\Label;
26
-use FML\Controls\Quad;
27 18
 use Maniaplanet\DedicatedServer\Connection;
28 19
 use Maniaplanet\DedicatedServer\Structures\ServerOptions;
29 20
 
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Plugins/Gui/MenuFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use eXpansion\Framework\Core\Model\Gui\Widget;
9 9
 use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext;
10 10
 use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
11
-use eXpansion\Framework\Gui\Components\uiAnimation;
12 11
 use eXpansion\Framework\Gui\Components\uiButton;
13 12
 use eXpansion\Framework\Gui\Components\uiLabel;
14 13
 use FML\Controls\Frame;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Plugins/Menu.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
     /**
30 30
      * Menu constructor.
31 31
      *
32
-     * @param Group $userGroups
33 32
      * @param MenuFactory $menuGuiFactory
34 33
      */
35 34
     public function __construct(PlayerStorage $playerStorage, MenuFactory $menuGuiFactory)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 namespace eXpansion\Bundle\Menu\Plugins;
5 5
 
6 6
 use eXpansion\Bundle\Menu\Plugins\Gui\MenuFactory;
7
-use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
8 7
 use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyMap;
9 8
 use eXpansion\Framework\Core\Model\UserGroups\Group;
10 9
 use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface;
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Model/Gui/Grid/Column/InputColumn.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
      * @param string $key
22 22
      * @param string $name
23 23
      * @param float $widthCoeficiency
24
-     * @param boolean $sortable
25
-     * @param boolean $translatable
26 24
      */
27 25
     public function __construct($key, $name, $widthCoeficiency)
28 26
     {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Core/Model/Gui/Grid/GridBuilder.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -171,8 +171,6 @@
 block discarded – undo
171 171
      * @param      string $key
172 172
      * @param      string $name
173 173
      * @param      integer $widthCoefficiency
174
-     * @param bool $sortable
175
-     * @param bool $translatable
176 174
      *
177 175
      * @return $this
178 176
      */
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -11,13 +11,8 @@
 block discarded – undo
11 11
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
12 12
 use eXpansion\Framework\Core\Plugins\Gui\ActionFactory;
13 13
 use eXpansion\Framework\Core\Plugins\Gui\ManialinkFactory;
14
-use eXpansion\Framework\Gui\Components\uiCheckbox;
15
-use eXpansion\Framework\Gui\Components\uiDropdown;
16
-use eXpansion\Framework\Gui\Components\uiInput;
17 14
 use eXpansion\Framework\Gui\Components\uiTooltip;
18 15
 use FML\Controls\Frame;
19
-use FML\Controls\Label;
20
-use FML\Script\Features\Tooltip;
21 16
 use FML\Types\Renderable;
22 17
 
23 18
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/layoutRow.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@  discard block
 block discarded – undo
80 80
         $this->setSize($sizeX, $sizeY);
81 81
     }
82 82
 
83
+    /**
84
+     * @param double $x
85
+     * @param double $y
86
+     */
83 87
     public function setPosition($x, $y)
84 88
     {
85 89
         $this->startX = $x;
@@ -217,6 +221,9 @@  discard block
 block discarded – undo
217 221
     }
218 222
 
219 223
 
224
+    /**
225
+     * @param string $class
226
+     */
220 227
     public function addClass($class)
221 228
     {
222 229
         $this->frameClasses[] = $class;
Please login to merge, or discard this patch.