@@ -37,7 +37,7 @@ |
||
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 { |
@@ -62,7 +62,7 @@ |
||
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; |
@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |