@@ -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; |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | { |
| 112 | 112 | $item = new Item(); |
| 113 | 113 | $item->setMenu($menu); |
| 114 | - $item->setName('Item '.$i); |
|
| 114 | + $item->setName('Item ' . $i); |
|
| 115 | 115 | $item->setPosition($i); |
| 116 | 116 | $item->setUri('http://alpixel.fr'); |
| 117 | 117 | |
@@ -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('default_locale')] ); |
|
| 34 | + $menuBuilder->addMethodCall('setDefaultLocale', [$container->getParameter('default_locale')]); |
|
| 35 | 35 | } |
| 36 | 36 | } |