@@ -54,7 +54,7 @@ discard block |
||
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 |
||
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 | } |
@@ -27,10 +27,10 @@ |
||
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 | } |
@@ -157,7 +157,7 @@ |
||
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 | } |
@@ -138,7 +138,7 @@ discard block |
||
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 |
||
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 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | |
20 | 20 | public function registerContainerConfiguration(LoaderInterface $loader) |
21 | 21 | { |
22 | - $loader->load(__DIR__.'/../config/config.yml'); |
|
22 | + $loader->load(__DIR__ . '/../config/config.yml'); |
|
23 | 23 | } |
24 | 24 | } |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | $_SERVER['env'] = 'test'; |
4 | 4 | use Doctrine\Common\Annotations\AnnotationRegistry; |
5 | -if (!is_file($loaderFile = __DIR__.'/../vendor/autoload.php')) { |
|
5 | +if (!is_file($loaderFile = __DIR__ . '/../vendor/autoload.php')) { |
|
6 | 6 | throw new \LogicException('Could not find autoload.php in vendor/. Did you run "composer install --dev"?'); |
7 | 7 | } |
8 | 8 | $loader = require $loaderFile; |