Passed
Push — master ( f35f51...867c54 )
by Florian
02:58
created
src/Controller/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         foreach ($registrations as $registration) {
38 38
             $event = $registration->getEvent();
39 39
 
40
-            $key = $event->getStartDate()->format('c').'_'.$event->getId();
40
+            $key = $event->getStartDate()->format('c') . '_' . $event->getId();
41 41
             if (null !== $event->getClosedDate()) {
42 42
                 $upcomingRegistrations[$key] = $registration;
43 43
             } else {
Please login to merge, or discard this patch.
src/Controller/EventController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         /** @var Registration[] $organizers */
63 63
         $organizers = [];
64 64
         foreach ($registrations as $registration) {
65
-            $key = $registration->getCreatedAt()->format('c').'_'.$registration->getId();
65
+            $key = $registration->getCreatedAt()->format('c') . '_' . $registration->getId();
66 66
 
67 67
             if ($registration->getIsOrganizer()) {
68 68
                 $organizers[$key] = $registration;
Please login to merge, or discard this patch.
src/Extension/MyTwigExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function dateFormatFilter($date)
63 63
     {
64 64
         if ($date instanceof DateTime) {
65
-            return $this->prependDayName($date).', '.$date->format(DateTimeFormatter::DATE_FORMAT);
65
+            return $this->prependDayName($date) . ', ' . $date->format(DateTimeFormatter::DATE_FORMAT);
66 66
         }
67 67
 
68 68
         return '-';
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function dateTimeFormatFilter($date)
77 77
     {
78 78
         if ($date instanceof DateTime) {
79
-            return $this->prependDayName($date).', '.$date->format(DateTimeFormatter::DATE_TIME_FORMAT);
79
+            return $this->prependDayName($date) . ', ' . $date->format(DateTimeFormatter::DATE_TIME_FORMAT);
80 80
         }
81 81
 
82 82
         return '-';
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 $length = $breakpoint;
112 112
             }
113 113
 
114
-            return rtrim(mb_substr($value, 0, $length, $env->getCharset())).$separator;
114
+            return rtrim(mb_substr($value, 0, $length, $env->getCharset())) . $separator;
115 115
         }
116 116
 
117 117
         return $value;
@@ -124,6 +124,6 @@  discard block
 block discarded – undo
124 124
      */
125 125
     private function prependDayName(DateTime $date)
126 126
     {
127
-        return $this->translator->trans('date_time.weekdays.'.$date->format('D'), [], 'framework');
127
+        return $this->translator->trans('date_time.weekdays.' . $date->format('D'), [], 'framework');
128 128
     }
129 129
 }
Please login to merge, or discard this patch.