Completed
Pull Request — master (#100)
by
unknown
02:35
created
src/eXpansion/Bundle/Acme/Plugins/Gui/WindowFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use eXpansion\Framework\Gui\Layouts\layoutLine;
15 15
 use eXpansion\Framework\Gui\Layouts\layoutRow;
16 16
 use eXpansion\Framework\Gui\Layouts\layoutScrollable;
17
-use FML\Controls\Quad;
18 17
 
19 18
 class WindowFactory extends BaseWindowFactory
20 19
 {
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/layoutLine.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * layoutLine constructor.
39 39
      * @param float $startX
40 40
      * @param float $startY
41
-     * @param object[] $elements
41
+     * @param \eXpansion\Framework\Gui\Components\uiButton[] $elements
42 42
      * @param float $margin
43 43
      * @throws \Exception
44 44
      */
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     }
135 135
 
136 136
     /**
137
-     * @return mixed
137
+     * @return double
138 138
      */
139 139
     public function getY()
140 140
     {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
 
176 176
     /**
177
-     * @param object $element
177
+     * @param Renderable $element
178 178
      */
179 179
     public function addChild(Renderable $element)
180 180
     {
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Acme/Plugins/TotoPlugin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 $this->mlFactory->create($login);
50 50
             }
51 51
         } else {
52
-               $this->mlFactory->destroy($this->playersGroup);
52
+                $this->mlFactory->destroy($this->playersGroup);
53 53
         }
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Layouts/layoutRow.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     protected function updateSize() {
66 66
         $sizeX = 0;
67
-        $sizeY= 0;
67
+        $sizeY = 0;
68 68
         foreach ($this->elements as $idx => $element) {
69 69
             $sizeY += $element->getY() + $element->getHeight() + $this->margin;
70 70
 
Please login to merge, or discard this patch.
src/eXpansion/Framework/Gui/Components/uiTextbox.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             ->setAreaColor("0005")
75 75
             ->setAreaFocusColor('000a')
76 76
             ->setTextFormat('Basic')
77
-          //  ->setName($this->name) // @todo enable when FML gets fixed
77
+            //  ->setName($this->name) // @todo enable when FML gets fixed
78 78
             ->setScriptEvents(true)
79 79
             ->addClasses($this->_classes)
80 80
             ->setDataAttributes($this->_dataAttributes);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->name = $name;
41 41
         $this->default = $default;
42 42
         $this->lines = $lines;
43
-        $this->setSize($width, ($lines * 5)+2);
43
+        $this->setSize($width, ($lines * 5) + 2);
44 44
     }
45 45
 
46 46
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 
68 68
         $input = new TextEdit();
69
-        $input->setSize($this->width, $this->height-2)
69
+        $input->setSize($this->width, $this->height - 2)
70 70
             ->setPosition(1, -1)
71 71
             ->setDefault($this->default)
72 72
             ->setAlign("left", "top")
Please login to merge, or discard this patch.