Completed
Push — master ( a46bcd...68aa75 )
by Jan
03:05
created
src/Services/EntityExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         //Ensure that we always serialize an array. This makes it easier to import the data again.
100
-        if(is_array($entity)) {
100
+        if (is_array($entity)) {
101 101
             $entity_array = $entity;
102 102
         } else {
103 103
             $entity_array = [$entity];
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             }
131 131
 
132 132
 
133
-            $filename = "export_" . $entity_name . "_" . $level . "." . $format;
133
+            $filename = "export_".$entity_name."_".$level.".".$format;
134 134
 
135 135
             // Create the disposition of the file
136 136
             $disposition = $response->headers->makeDisposition(
Please login to merge, or discard this patch.
src/Services/EntityImporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,10 +137,10 @@
 block discarded – undo
137 137
         }
138 138
 
139 139
         //The [] behind class_name denotes that we expect an array.
140
-        $entities = $this->serializer->deserialize($content, $class_name . '[]', $options['format'], ['groups' => $groups]);
140
+        $entities = $this->serializer->deserialize($content, $class_name.'[]', $options['format'], ['groups' => $groups]);
141 141
 
142 142
         //Ensure we have an array of entitity elements.
143
-        if(!is_array($entities)) {
143
+        if (!is_array($entities)) {
144 144
             $entities = [$entities];
145 145
         }
146 146
 
Please login to merge, or discard this patch.
src/Form/ImportType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $builder
52 52
 
53 53
             ->add('format', ChoiceType::class, ['choices' =>
54
-                ['JSON' => 'json', 'XML' => 'xml','CSV'=>'csv' ,'YAML' => 'yaml']])
54
+                ['JSON' => 'json', 'XML' => 'xml', 'CSV'=>'csv', 'YAML' => 'yaml']])
55 55
             ->add('csv_separator', TextType::class, ['data' => ';'])
56 56
             ->add('parent', EntityType::class, ['class' => $data['entity_class'], 'choice_label' => 'full_path',
57 57
                 'attr' => ['class' => 'selectpicker', 'data-live-search' => true], 'required' => false, 'label' => 'parent.label',
Please login to merge, or discard this patch.
src/Controller/AttachmentTypeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
             foreach ($errors as $name => $error) {
121 121
                 /** @var $error ConstraintViolationList */
122
-                $this->addFlash('error', $name . ":" . $error);
122
+                $this->addFlash('error', $name.":".$error);
123 123
             }
124 124
         }
125 125
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     {
167 167
         $entities = $em->getRepository(AttachmentType::class)->findAll();
168 168
 
169
-        return $exporter->exportEntityFromRequest($entities,$request);
169
+        return $exporter->exportEntityFromRequest($entities, $request);
170 170
     }
171 171
 
172 172
     /**
Please login to merge, or discard this patch.