@@ -105,7 +105,7 @@ |
||
| 105 | 105 | return; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - $attributeIsEmpty = function ($name) use ($user) { |
|
| 108 | + $attributeIsEmpty = function($name) use ($user) { |
|
| 109 | 109 | if ($user->hasAttribute($name)) { |
| 110 | 110 | $v = $user->getAttributeValue($name); |
| 111 | 111 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | return $this->approvedDate; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - public function setApprovedDate(string|\DateTimeInterface $approvedDate): self |
|
| 115 | + public function setApprovedDate(string | \DateTimeInterface $approvedDate): self |
|
| 116 | 116 | { |
| 117 | 117 | if ($approvedDate instanceof \DateTimeInterface) { |
| 118 | 118 | $this->approvedDate = $approvedDate; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | return $this->registrationDate; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - public function setRegistrationDate(string|\DateTimeInterface $registrationDate): self |
|
| 153 | + public function setRegistrationDate(string | \DateTimeInterface $registrationDate): self |
|
| 154 | 154 | { |
| 155 | 155 | if ($registrationDate instanceof \DateTimeInterface) { |
| 156 | 156 | $this->registrationDate = $registrationDate; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | ->info('E-mail address to notify of registrations (leave blank for no notifications).') |
| 46 | 46 | ->defaultNull() |
| 47 | 47 | ->validate() |
| 48 | - ->ifTrue(static function ($v) { |
|
| 48 | + ->ifTrue(static function($v) { |
|
| 49 | 49 | return null !== $v && !filter_var($v, FILTER_VALIDATE_EMAIL); |
| 50 | 50 | }) |
| 51 | 51 | ->thenInvalid('Please enter a valid mail address.') |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ]; |
| 38 | 38 | |
| 39 | 39 | $definedRoles = []; |
| 40 | - array_walk_recursive($this->roleHierarchy, function ($role) use (&$roles) { |
|
| 40 | + array_walk_recursive($this->roleHierarchy, function($role) use (&$roles) { |
|
| 41 | 41 | $definedRoles[$role] = $role; |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return $this->form->getData(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function formAdd(FormInterface|string|int $child, string $type = null, array $options = []): self |
|
| 44 | + public function formAdd(FormInterface | string | int $child, string $type = null, array $options = []): self |
|
| 45 | 45 | { |
| 46 | 46 | $this->form->add($child, $type, $options); |
| 47 | 47 | |
@@ -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 | }); |
@@ -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 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | <info>php %command.full_name% AcmeFooBundle</info> |
| 45 | 45 | |
| 46 | -EOT |
|
| 46 | +eot |
|
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -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])) { |