@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | 'placeholder' => 'Select', |
| 79 | 79 | ]); |
| 80 | 80 | |
| 81 | - $formModifier = function (FormInterface $form, $formType = null) use ($builder) { |
|
| 81 | + $formModifier = function(FormInterface $form, $formType = null) use ($builder) { |
|
| 82 | 82 | switch ($formType) { |
| 83 | 83 | case ChoiceType::class: |
| 84 | 84 | $optionsType = ChoiceFormOptionsArrayType::class; |
@@ -114,12 +114,12 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | $form->add($formOptions->getForm()); |
| 116 | 116 | }; |
| 117 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($formModifier) { |
|
| 117 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($formModifier) { |
|
| 118 | 118 | $data = $event->getData(); |
| 119 | 119 | $formType = $data['formType']; |
| 120 | 120 | $formModifier($event->getForm(), $formType); |
| 121 | 121 | }); |
| 122 | - $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $event) use ($formModifier) { |
|
| 122 | + $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $event) use ($formModifier) { |
|
| 123 | 123 | $formType = $event->getForm()->getData(); |
| 124 | 124 | $formModifier($event->getForm()->getParent(), $formType); |
| 125 | 125 | }); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $string = preg_replace_callback( |
| 73 | 73 | '/(.)@(.)/s', |
| 74 | - static function ($m) { |
|
| 74 | + static function($m) { |
|
| 75 | 75 | return '&#' . sprintf('%03d', ord($m[1])) . ';@&#' . sprintf('%03d', ord($m[2])) . ';'; |
| 76 | 76 | }, |
| 77 | 77 | $string |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | -EOF |
|
| 121 | +eof |
|
| 122 | 122 | ; |
| 123 | 123 | |
| 124 | 124 | return json_decode($json, true); |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | <info>php %command.full_name% 1000 --active=I --verified=2 --regdate='>20200101'</info> |
| 126 | 126 | |
| 127 | -EOT |
|
| 127 | +eot |
|
| 128 | 128 | ); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | } |
| 192 | 192 | $randTimeStamp = mt_rand($regDate->getTimestamp(), $this->nowUTC->getTimestamp()); |
| 193 | 193 | |
| 194 | - return \DateTime::createFromFormat('U', "${randTimeStamp}", $utcTz); |
|
| 194 | + return \DateTime::createFromFormat('U', "${randtimestamp}", $utcTz); |
|
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | private function insertUser(string $uname): void |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | Example running against default messages directory |
| 45 | 45 | |
| 46 | 46 | <info>php %command.full_name%</info> |
| 47 | -EOF |
|
| 47 | +eof |
|
| 48 | 48 | ) |
| 49 | 49 | ; |
| 50 | 50 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | return $this->requestStack->getCurrentRequest()->getLocale(); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - private function getLocalizedField(string $fieldName): string|array |
|
| 83 | + private function getLocalizedField(string $fieldName): string | array |
|
| 84 | 84 | { |
| 85 | 85 | $locale = $this->getLocale(); |
| 86 | 86 | if (array_key_exists($locale, $this->siteData) && isset($this->siteData[$locale][$fieldName])) { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public string $message = 'The fields are invalid.'; |
| 22 | 22 | |
| 23 | - public function getTargets(): string|array |
|
| 23 | + public function getTargets(): string | array |
|
| 24 | 24 | { |
| 25 | 25 | return self::CLASS_CONSTRAINT; |
| 26 | 26 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public string $message = 'The fields are invalid.'; |
| 22 | 22 | |
| 23 | - public function getTargets(): string|array |
|
| 23 | + public function getTargets(): string | array |
|
| 24 | 24 | { |
| 25 | 25 | return self::CLASS_CONSTRAINT; |
| 26 | 26 | } |
@@ -57,7 +57,8 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | $route = $request->attributes->get('_route', ''); |
| 60 | - if (str_starts_with($route, 'home')) { // TODO remove hardcoded assumption -> check if controller is a dashboard |
|
| 60 | + if (str_starts_with($route, 'home')) { |
|
| 61 | +// TODO remove hardcoded assumption -> check if controller is a dashboard |
|
| 61 | 62 | return; |
| 62 | 63 | } |
| 63 | 64 | |