Completed
Push — master ( e09c01...ac9146 )
by De Cramer
02:18 queued 02:12
created
src/eXpansion/Bundle/Menu/Services/Factories/ItemParentFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function supports($class)
41 41
     {
42
-       return $class == ParentItem::class;
42
+        return $class == ParentItem::class;
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Bundle\Menu\Services\ItemBuilder;
8 8
 use eXpansion\Bundle\Menu\Services\ItemFactoryInterface;
9 9
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
10
-use FML\Controls\Quad;
11 10
 
12 11
 /**
13 12
  * Class ItemParentFactory
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/DataProviders/MenuItemProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return ParentItem|null
50
+     * @return ItemInterface|null
51 51
      */
52 52
     public function getRootItem()
53 53
     {
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Model/Menu/ParentItem.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @param string      $path
31 31
      * @param string      $labelId
32 32
      * @param AdminGroups $adminGroups
33
-     * @param null        $permission
33
+     * @param string        $permission
34 34
      */
35 35
     public function __construct(
36 36
         ItemBuilder $itemBuilder,
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @param string $login
139 139
      *
140
-     * @return bool|mixed
140
+     * @return boolean
141 141
      */
142 142
     public function isVisibleFor($login)
143 143
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6 6
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
7 7
 use eXpansion\Framework\Core\Plugins\Gui\ManialinkFactory;
8
-use FML\Controls\Quad;
9 8
 
10 9
 /**
11 10
  * Class ParentItem
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return ItemInterface
72 72
      */
73
-    public function addChild($class, $id, $label, $permission, $options =[])
73
+    public function addChild($class, $id, $label, $permission, $options = [])
74 74
     {
75 75
         if (is_string($id)) {
76 76
             $id = explode('/', $id);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $item = $this->itemBuilder->create(
81 81
                 $class,
82 82
                 $id[0],
83
-                $this->getPath() . '/' . $id[0],
83
+                $this->getPath().'/'.$id[0],
84 84
                 $label,
85 85
                 $permission,
86 86
                 $options
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Plugins/Gui/MenuContentFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      * @param Manialink  $manialink
201 201
      * @param Frame      $frame
202 202
      * @param ParentItem $parentItem
203
-     * @param            $displayLevel
203
+     * @param            integer $displayLevel
204 204
      */
205 205
     protected function createSubMenu(Manialink $manialink, Frame $frame, ParentItem $parentItem, $displayLevel)
206 206
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,8 +204,8 @@
 block discarded – undo
204 204
      */
205 205
     protected function createSubMenu(Manialink $manialink, Frame $frame, ParentItem $parentItem, $displayLevel)
206 206
     {
207
-        $posX = $displayLevel * (-160.0/3);
208
-        $posY = ($displayLevel * (-100.0/3)) * 0.5;
207
+        $posX = $displayLevel * (-160.0 / 3);
208
+        $posY = ($displayLevel * (-100.0 / 3)) * 0.5;
209 209
         $scale = (0.5 / ($displayLevel + 1)) + 0.5;
210 210
 
211 211
         $contentFrame = new Frame();
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Plugins/Gui/MenuFactory.php 2 patches
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -2,15 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace eXpansion\Bundle\Menu\Plugins\Gui;
4 4
 
5
-use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
6 5
 use eXpansion\Framework\Core\Model\Gui\ManialinkInterface;
7
-use eXpansion\Framework\Core\Model\Gui\ManiaScriptFactory;
8
-use eXpansion\Framework\Core\Model\Gui\Widget;
9 6
 use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext;
10 7
 use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory;
11
-use FML\Controls\Frame;
12
-use FML\Controls\Label;
13
-use FML\Controls\Quad;
14 8
 
15 9
 
16 10
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $posY,
44 44
         WidgetFactoryContext $context,
45 45
         MenuContentFactory $menuContentFactory
46
-    ){
46
+    ) {
47 47
         parent::__construct($name, $sizeX, $sizeY, $posX, $posY, $context);
48 48
 
49 49
         $this->menuContentFactory = $menuContentFactory;
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Services/Factories/ItemChatCommandFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use eXpansion\Bundle\Menu\Services\ItemFactoryInterface;
8 8
 use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
9 9
 use eXpansion\Framework\Core\DataProviders\ChatCommandDataProvider;
10
-use FML\Controls\Quad;
11 10
 
12 11
 /**
13 12
  * Class ItemChatCommandFactory
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Services/ItemBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @return ItemInterface
37 37
      */
38
-    public function create($class, $id, $path, $label, $permission, $options =[])
38
+    public function create($class, $id, $path, $label, $permission, $options = [])
39 39
     {
40 40
         foreach ($this->itemFactories as $itemFactory) {
41 41
             if ($itemFactory->supports($class)) {
Please login to merge, or discard this patch.
src/eXpansion/Bundle/Menu/Services/ItemFactoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,5 +37,5 @@
 block discarded – undo
37 37
      *
38 38
      * @return ItemInterface
39 39
      */
40
-    public function build($class, $id, $path, $label, $permission, $options =[]);
40
+    public function build($class, $id, $path, $label, $permission, $options = []);
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.