@@ -137,11 +137,11 @@ |
||
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'], |
|
140 | + $entities = $this->serializer->deserialize($content, $class_name.'[]', $options['format'], |
|
141 | 141 | ['groups' => $groups, 'csv_delimiter' => $options['csv_separator']]); |
142 | 142 | |
143 | 143 | //Ensure we have an array of entitity elements. |
144 | - if(!is_array($entities)) { |
|
144 | + if (!is_array($entities)) { |
|
145 | 145 | $entities = [$entities]; |
146 | 146 | } |
147 | 147 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $em->remove($element); |
96 | 96 | }); |
97 | 97 | |
98 | - if($flush) { |
|
98 | + if ($flush) { |
|
99 | 99 | $em->flush(); |
100 | 100 | } |
101 | 101 | } |