Completed
Pull Request — master (#6)
by Benjamin
12:56
created
Controller/Admin/CRUD/ItemAdmin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.