@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | 'label' => 'Menu', |
97 | 97 | 'required' => true, |
98 | 98 | 'property' => 'name', |
99 | - 'query_builder' => function (EntityRepository $entityRepository) use ($idMenu) { |
|
99 | + 'query_builder' => function(EntityRepository $entityRepository) use ($idMenu) { |
|
100 | 100 | $query = $entityRepository->createQuerybuilder('m'); |
101 | 101 | if ($idMenu === 0) { |
102 | 102 | return $query; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | 'label' => 'Item parent', |
114 | 114 | 'required' => true, |
115 | 115 | 'property' => 'name', |
116 | - 'query_builder' => function (EntityRepository $entityRepository) use ($idItem) { |
|
116 | + 'query_builder' => function(EntityRepository $entityRepository) use ($idItem) { |
|
117 | 117 | $query = $entityRepository->createQuerybuilder('i'); |
118 | 118 | if ($idItem === 0) { |
119 | 119 | return $query; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | throw new UnexpectedValueException('The parameter $machineName must be a non empty string'); |
141 | 141 | } |
142 | 142 | |
143 | - if($locale === null && $this->request !== null) { |
|
143 | + if ($locale === null && $this->request !== null) { |
|
144 | 144 | $locale = $this->request->getLocale(); |
145 | 145 | } |
146 | 146 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | protected function getTree(KnpMenuItem $knpMenu, ItemInterface $item, KnpMenuItem $parent = null) |
180 | 180 | { |
181 | - if($parent === null) { |
|
181 | + if ($parent === null) { |
|
182 | 182 | $menuItem = $knpMenu->addChild($item); |
183 | 183 | } else { |
184 | 184 | $menuItem = $parent->addChild($item); |
@@ -186,10 +186,10 @@ discard block |
||
186 | 186 | |
187 | 187 | if (($uri = $item->getUri()) !== null) { |
188 | 188 | if ($uri[0] == '/') { |
189 | - $baseUri = $this->request->getBasePath() . |
|
190 | - $this->request->getBaseURL() . |
|
189 | + $baseUri = $this->request->getBasePath(). |
|
190 | + $this->request->getBaseURL(). |
|
191 | 191 | $uri; |
192 | - $uri = $this->request->getSchemeAndHttpHost() . $baseUri; |
|
192 | + $uri = $this->request->getSchemeAndHttpHost().$baseUri; |
|
193 | 193 | |
194 | 194 | if ($baseUri === $this->currentUri) { |
195 | 195 | $menuItem->setCurrent(true); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | else { |
71 | 71 | $router = $this->get('router'); |
72 | - $url= $router->generate('admin_alpixel_menu_menu_list'); |
|
72 | + $url = $router->generate('admin_alpixel_menu_menu_list'); |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | if (!$url) { |
86 | 86 | $router = $this->get('router'); |
87 | - $url= $router->generate('admin_alpixel_menu_menu_list'); |
|
87 | + $url = $router->generate('admin_alpixel_menu_menu_list'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | return new RedirectResponse($url); |