Completed
Push — master ( 664946...004c79 )
by Jan
03:07
created
src/Controller/AttachmentTypeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
             foreach ($errors as $name => $error) {
123 123
                 /** @var $error ConstraintViolationList */
124
-                $this->addFlash('error', $name . ":" . $error);
124
+                $this->addFlash('error', $name.":".$error);
125 125
             }
126 126
         }
127 127
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
         $entities = $em->getRepository(AttachmentType::class)->findAll();
174 174
 
175
-        return $exporter->exportEntityFromRequest($entities,$request);
175
+        return $exporter->exportEntityFromRequest($entities, $request);
176 176
     }
177 177
 
178 178
     /**
Please login to merge, or discard this patch.
src/Form/ImportType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,12 +60,12 @@
 block discarded – undo
60 60
         //Disable import if user is not allowed to create elements.
61 61
         $entity = new $data['entity_class'];
62 62
         $perm_name = "create";
63
-        $disabled = ! $this->security->isGranted($perm_name, $entity);
63
+        $disabled = !$this->security->isGranted($perm_name, $entity);
64 64
 
65 65
         $builder
66 66
 
67 67
             ->add('format', ChoiceType::class, ['choices' =>
68
-                ['JSON' => 'json', 'XML' => 'xml','CSV'=>'csv' ,'YAML' => 'yaml'], 'label' => 'export.format',
68
+                ['JSON' => 'json', 'XML' => 'xml', 'CSV'=>'csv', 'YAML' => 'yaml'], 'label' => 'export.format',
69 69
                 'disabled' => $disabled])
70 70
             ->add('csv_separator', TextType::class, ['data' => ';', 'label' => 'import.csv_separator',
71 71
                 'disabled' => $disabled])
Please login to merge, or discard this patch.