Completed
Push — master ( 6f4e0b...12f334 )
by Florian
19s queued 16s
created
src/Entity/Traits/ContactInformationTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -215,16 +215,16 @@  discard block
 block discarded – undo
215 215
         $res = explode("\n", $this->getStreetAddress());
216 216
         $prefix = '';
217 217
         if (mb_strlen($this->getCountry()) > 0) {
218
-            $prefix = $this->getCountry().((mb_strlen($this->getPostalCode()) > 0) ? '-' : ' ');
218
+            $prefix = $this->getCountry() . ((mb_strlen($this->getPostalCode()) > 0) ? '-' : ' ');
219 219
         }
220 220
         if (mb_strlen($this->getPostalCode()) > 0) {
221
-            $prefix .= $this->getPostalCode().' ';
221
+            $prefix .= $this->getPostalCode() . ' ';
222 222
         }
223 223
         if (mb_strlen($this->getLocality()) > 0) {
224
-            $prefix .= $this->getLocality().' ';
224
+            $prefix .= $this->getLocality() . ' ';
225 225
         }
226 226
         if (mb_strlen($this->getCanton()) > 0) {
227
-            $prefix .= $this->getCanton().' ';
227
+            $prefix .= $this->getCanton() . ' ';
228 228
         }
229 229
         $res[] = trim($prefix);
230 230
 
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
     public function getAddress()
242 242
     {
243 243
         $street = str_replace("\n", ',', $this->getStreetAddress());
244
-        $locality = $this->postalCode.' '.$this->locality;
244
+        $locality = $this->postalCode . ' ' . $this->locality;
245 245
 
246
-        return $street.', '.$locality.', '.$this->canton.' '.$this->country;
246
+        return $street . ', ' . $locality . ', ' . $this->canton . ' ' . $this->country;
247 247
     }
248 248
 
249 249
     public function getName()
250 250
     {
251
-        return $this->givenName.' '.$this->familyName;
251
+        return $this->givenName . ' ' . $this->familyName;
252 252
     }
253 253
 }
Please login to merge, or discard this patch.
src/Service/CsvService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function streamCsv($filename, $data, $header = null)
32 32
     {
33 33
         $response = new StreamedResponse();
34
-        $response->setCallback(function () use ($header, $data) {
34
+        $response->setCallback(function() use ($header, $data) {
35 35
             $handle = fopen('php://output', 'w+');
36 36
             if (false === $handle) {
37 37
                 throw new \Exception('could not write to output');
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $response->setStatusCode(200);
46 46
         $response->headers->set('Content-Type', 'text/csv; charset=utf-8');
47
-        $response->headers->set('Content-Disposition', 'attachment; filename="'.$filename.'"');
47
+        $response->headers->set('Content-Disposition', 'attachment; filename="' . $filename . '"');
48 48
 
49 49
         return $response;
50 50
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         //UTF-8 BOM
60 60
         fwrite($handle, "\xEF\xBB\xBF");
61 61
         //set delimiter to specified
62
-        fwrite($handle, 'sep='.static::DELIMITER."\n");
62
+        fwrite($handle, 'sep=' . static::DELIMITER . "\n");
63 63
 
64 64
         if (\is_array($header)) {
65 65
             // Add the header of the CSV file
Please login to merge, or discard this patch.
src/Controller/EventController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,8 +163,8 @@
 block discarded – undo
163 163
         }
164 164
 
165 165
         $now = new \DateTime();
166
-        $eventPrefix = $event->getOrganizer().' - '.$event->getName();
167
-        $filename = $eventPrefix.'- '.$now->format('c').'.csv';
166
+        $eventPrefix = $event->getOrganizer() . ' - ' . $event->getName();
167
+        $filename = $eventPrefix . '- ' . $now->format('c') . '.csv';
168 168
 
169 169
         $header = array_keys($event->getAttendances()[0]->toArray());
170 170
         $values = [];
Please login to merge, or discard this patch.