@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | if ($env === 'dev' && strpos($link, 'http') === false) { |
| 28 | 28 | $dev = ($link[0] === '/') ? 'app_dev.php' : 'app_dev.php/'; |
| 29 | - $link = $dev.$link; |
|
| 29 | + $link = $dev . $link; |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | return $link; |
@@ -74,10 +74,3 @@ |
||
| 74 | 74 | 'template' => 'AlpixelMenuBundle:CRUD:list__action_item.html.twig', |
| 75 | 75 | ], |
| 76 | 76 | <<<<<<< HEAD |
| 77 | -======= |
|
| 78 | - 'edit' => [], |
|
| 79 | ->>>>>>> master |
|
| 80 | - ], |
|
| 81 | - ]); |
|
| 82 | - } |
|
| 83 | -} |
|
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | public function createQuery($context = 'list') |
| 13 | 13 | { |
| 14 | 14 | $query = parent::createQuery($context); |
| 15 | - $query->addOrderBy($query->getRootAlias().'.locale', 'ASC'); |
|
| 15 | + $query->addOrderBy($query->getRootAlias() . '.locale', 'ASC'); |
|
| 16 | 16 | |
| 17 | 17 | return $query; |
| 18 | 18 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | protected function configureRoutes(RouteCollection $collection) |
| 21 | 21 | { |
| 22 | 22 | $collection->remove('create'); |
| 23 | - $collection->add('item', $this->getRouterIdParameter().'/item'); |
|
| 23 | + $collection->add('item', $this->getRouterIdParameter() . '/item'); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | protected function configureFormFields(FormMapper $formMapper) |
@@ -73,11 +73,4 @@ discard block |
||
| 73 | 73 | 'item' => [ |
| 74 | 74 | 'template' => 'AlpixelMenuBundle:CRUD:list__action_item.html.twig', |
| 75 | 75 | ], |
| 76 | -<<<<<<< HEAD |
|
| 77 | -======= |
|
| 78 | - 'edit' => [], |
|
| 79 | ->>>>>>> master |
|
| 80 | - ], |
|
| 81 | - ]); |
|
| 82 | - } |
|
| 83 | -} |
|
| 76 | +<< << <<< HEAD |
|
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | protected function configureRoutes(RouteCollection $collection) |
| 27 | 27 | { |
| 28 | - $collection->add('move', $this->getRouterIdParameter().'/move/{position}'); |
|
| 28 | + $collection->add('move', $this->getRouterIdParameter() . '/move/{position}'); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function getPersistentParameters() |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $id = $this->getRequest()->query->getInt('menu'); |
| 45 | 45 | $query = parent::createQuery($context); |
| 46 | - $query->join($query->getRootAlias().'.menu', 'm') |
|
| 46 | + $query->join($query->getRootAlias() . '.menu', 'm') |
|
| 47 | 47 | ->where('m.id = :id') |
| 48 | 48 | ->setParameters([ |
| 49 | 49 | 'id' => $id, |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | 'label' => 'Menu', |
| 64 | 64 | 'required' => true, |
| 65 | 65 | 'property' => 'name', |
| 66 | - 'query_builder' => function (EntityRepository $entityRepository) use ($id) { |
|
| 66 | + 'query_builder' => function(EntityRepository $entityRepository) use ($id) { |
|
| 67 | 67 | $query = $entityRepository->createQuerybuilder('m'); |
| 68 | 68 | if ($id == null) { |
| 69 | 69 | return $query; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | 'label' => 'Menu', |
| 82 | 82 | 'required' => true, |
| 83 | 83 | 'property' => 'name', |
| 84 | - 'query_builder' => function (EntityRepository $entityRepository) use ($id) { |
|
| 84 | + 'query_builder' => function(EntityRepository $entityRepository) use ($id) { |
|
| 85 | 85 | $query = $entityRepository->createQuerybuilder('m'); |
| 86 | 86 | if ($id == null) { |
| 87 | 87 | return $query; |