Completed
Pull Request — master (#124)
by
unknown
02:35
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/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/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 1 patch
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.
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.
src/eXpansion/Framework/Gui/Components/uiInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 
136 136
     public function getHeight()
137 137
     {
138
-        return $this->height+2;
138
+        return $this->height + 2;
139 139
     }
140 140
 
141 141
     /**
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Components/uiCheckbox.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
66 66
     public function render(\DOMDocument $domDocument)
67 67
     {
68 68
         $containerFrame = new Frame();
69
-        $containerFrame->setPosition($this->posX-1, $this->posY+1)
69
+        $containerFrame->setPosition($this->posX - 1, $this->posY + 1)
70 70
             ->setZ($this->posZ)
71
-            ->setSize($this->getWidth(), $this->getHeight()+1)
71
+            ->setSize($this->getWidth(), $this->getHeight() + 1)
72 72
             ->setScale($this->scale)
73 73
             ->addClasses(['uiContainer', 'uiCheckbox'])
74 74
             ->addDataAttribute('checked', $this->isChecked() ? "1" : "0")
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Acme/Plugins/Gui/MemoryWidgetFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
7 7
 use eXpansion\Framework\Core\Model\Gui\Widget;
8 8
 use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
9
-
10 9
 use FML\Controls\Label;
11 10
 use FML\Script\Script;
12 11
 use FML\Script\ScriptLabel;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Acme/Plugins/Gui/WindowFactory.php 1 patch
Unused Use Statements   -13 removed lines patch added patch discarded remove patch
@@ -4,21 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
6 6
 use eXpansion\Framework\Core\Model\Gui\Widget;
7
-use eXpansion\Framework\Core\Model\Gui\Window;
8 7
 use eXpansion\Framework\Core\Plugins\Gui\WindowFactory as BaseWindowFactory;
9
-use eXpansion\Framework\Gui\Components\uiAnimation;
10
-use eXpansion\Framework\Gui\Components\uiButton;
11
-use eXpansion\Framework\Gui\Components\uiCheckbox;
12
-use eXpansion\Framework\Gui\Components\uiDropdown;
13
-use eXpansion\Framework\Gui\Components\uiInput;
14 8
 use eXpansion\Framework\Gui\Components\uiLabel;
15
-use eXpansion\Framework\Gui\Components\uiTextbox;
16
-use eXpansion\Framework\Gui\Components\uiTooltip;
17
-use eXpansion\Framework\Gui\Layouts\layoutLine;
18
-use eXpansion\Framework\Gui\Layouts\layoutRow;
19
-use eXpansion\Framework\Gui\Layouts\layoutScrollable;
20
-use FML\Controls\Label;
21
-use FML\Controls\Quad;
22 9
 use FML\Script\ScriptLabel;
23 10
 
24 11
 class WindowFactory extends BaseWindowFactory
Please login to merge, or discard this patch.