Explorar o código

Correcion de error en EventListener/LocationListener.php en la funcion configureShowFields (falta cerrar un tab)

Your Name %!s(int64=7) %!d(string=hai) anos
pai
achega
ae8d73c03a
Modificáronse 1 ficheiros con 19 adicións e 20 borrados
  1. 19 20
      EventListener/LocationListener.php

+ 19 - 20
EventListener/LocationListener.php

@@ -19,21 +19,20 @@ class LocationListener
         if ($subject && $subject instanceof LocationInterface) {
             if ($mapper->hasOpenTab()) {
                 $mapper
-                        ->end()
-                        ->end();
+                    ->end()
+                    ->end();
             }
             $options = array(
                 'translation_domain' => 'MapBundle'
             );
             $mapper
-                    ->tab('Map', $options)
-                    ->with('Location', $options)
-                    ->add('location', LocationType::class, array(
-                        'label' => false,
-                    ))
-                    ->end()
-                    ->end()
-            ;
+                ->tab('Map', $options)
+                ->with('Location', $options)
+                ->add('location', LocationType::class, array(
+                    'label' => false,
+                ))
+                ->end()
+                ->end();
         }
     }
 
@@ -47,22 +46,22 @@ class LocationListener
         if ($subject && $subject instanceof LocationInterface) {
             if ($mapper->hasOpenTab()) {
                 $mapper
-                        ->end();
+                    ->end()
+                    ->end();
             }
             $options = array(
                 'translation_domain' => 'MapBundle',
             );
             if (!$mapper->has('location')) {
                 $mapper
-                        ->tab('Map', $options)
-                        ->with('Location', $options)
-                        ->add('location', null, array(
-                            'template' => 'LeafletBundle:CRUD:map_show_field.html.twig',
-                            'translation_domain' => 'MapBundle',
-                        ))
-                        ->end()
-                        ->end()
-                ;
+                    ->tab('Map', $options)
+                    ->with('Location', $options)
+                    ->add('location', null, array(
+                        'template' => 'LeafletBundle:CRUD:map_show_field.html.twig',
+                        'translation_domain' => 'MapBundle',
+                    ))
+                    ->end()
+                    ->end();
             }
         }
     }