Completed
Push — master ( 45370a...13c9b6 )
by Alexis
14:50
created
Builder/MenuBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function setDefaultLocale($locale)
56 56
     {
57
-        if(self::isValidLocale($locale)) {
57
+        if (self::isValidLocale($locale)) {
58 58
             $this->defaultLocale = $locale;
59 59
 
60 60
             return $this;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
         $this->setKnpMenu($this->factory->createItem('root'));
132 132
         foreach ($items as $item) {
133
-            if($item->getParent() === null) {
133
+            if ($item->getParent() === null) {
134 134
                 $this->getTree($this->knpMenu, $item);
135 135
             }
136 136
         }
Please login to merge, or discard this patch.
DependencyInjection/AlpixelMenuExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
         $configuration = new Configuration();
28 28
         $this->processConfiguration($configuration, $configs);
29 29
 
30
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
         $loader->load('services.yml');
32 32
 
33 33
         $menuBuilder = $container->getDefinition('alpixel_menu.builder');
34
-        $menuBuilder->addMethodCall('setDefaultLocale', [$container->getParameter('locale')] );
34
+        $menuBuilder->addMethodCall('setDefaultLocale', [$container->getParameter('locale')]);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
Entity/Item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
     public function addChildren(ArrayCollection $collection = null)
158 158
     {
159 159
         foreach ($collection as $item) {
160
-            if($this->chidlren->contains($item) === false) {
160
+            if ($this->chidlren->contains($item) === false) {
161 161
                 $this->setChidlren($item);
162 162
             }
163 163
         }
Please login to merge, or discard this patch.
Entity/Menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function removeItem(ItemInterface $item)
140 140
     {
141
-        if($this->items->contains($item) === true) {
141
+        if ($this->items->contains($item) === true) {
142 142
             $this->items->remove($item);
143 143
         }
144 144
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     public function addItems(ArrayCollection $items)
156 156
     {
157 157
         foreach ($items as $item) {
158
-            if($this->items->contains($item) === false) {
158
+            if ($this->items->contains($item) === false) {
159 159
                 $this->setItem($item);
160 160
             }
161 161
         }
Please login to merge, or discard this patch.