@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $startEntity = clone $defaultEntity; |
63 | 63 | |
64 | 64 | //create persist callable |
65 | - $myOnSuccessCallable = function ($form) use ($defaultEntity, $beforeCreateCallable, $successfulText, $formType, $startEntity, $buttonLabel) { |
|
65 | + $myOnSuccessCallable = function($form) use ($defaultEntity, $beforeCreateCallable, $successfulText, $formType, $startEntity, $buttonLabel) { |
|
66 | 66 | $manager = $this->getDoctrine()->getManager(); |
67 | 67 | |
68 | 68 | if (!\is_callable($beforeCreateCallable) || false !== $beforeCreateCallable($manager)) { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $successfulText = $translator->trans('form.successful.updated', [], 'framework'); |
105 | 105 | |
106 | 106 | //create persist callable |
107 | - $myOnSuccessCallable = function ($form) use ($entity, $beforeUpdateCallable, $successfulText) { |
|
107 | + $myOnSuccessCallable = function($form) use ($entity, $beforeUpdateCallable, $successfulText) { |
|
108 | 108 | $manager = $this->getDoctrine()->getManager(); |
109 | 109 | |
110 | 110 | if (!\is_callable($beforeUpdateCallable) || false !== $beforeUpdateCallable($manager)) { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $translator->trans('form.submit_buttons.delete', [], 'framework'), |
146 | 146 | $translator->trans('form.successful.deleted', [], 'framework'), |
147 | 147 | $beforeDeleteCallable ?? |
148 | - function () { |
|
148 | + function() { |
|
149 | 149 | return true; |
150 | 150 | } |
151 | 151 | ); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | private function handleDeleteFormInternal(Request $request, BaseEntity $entity, $formType, $buttonLabel, $successText, $beforeDeleteCallable) |
167 | 167 | { |
168 | - $myOnSuccessCallable = function ($form) use ($entity, $successText, $beforeDeleteCallable) { |
|
168 | + $myOnSuccessCallable = function($form) use ($entity, $successText, $beforeDeleteCallable) { |
|
169 | 169 | $manager = $this->getDoctrine()->getManager(); |
170 | 170 | |
171 | 171 | if (false !== $beforeDeleteCallable($entity, $manager)) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $myForm = $this->handleCreateForm( |
59 | 59 | $request, |
60 | 60 | $event, |
61 | - function () use ($event) { |
|
61 | + function() use ($event) { |
|
62 | 62 | return $this->prePersistActions($event); |
63 | 63 | } |
64 | 64 | ); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $myForm = $this->handleUpdateForm( |
88 | 88 | $request, |
89 | 89 | $event, |
90 | - function () use ($event) { |
|
90 | + function() use ($event) { |
|
91 | 91 | return $this->prePersistActions($event); |
92 | 92 | } |
93 | 93 | ); |
@@ -186,7 +186,7 @@ |
||
186 | 186 | |
187 | 187 | //write fields |
188 | 188 | $identifier = $payload->identifier; |
189 | - $timeNeededInSeconds = (int)$payload->timeNeededInSeconds; |
|
189 | + $timeNeededInSeconds = (int) $payload->timeNeededInSeconds; |
|
190 | 190 | |
191 | 191 | //get participant |
192 | 192 | $participant = $this->getDoctrine()->getRepository(Participant::class)->findOneBy(['identifier' => $identifier, 'event' => $event->getId()]); |