@@ -73,7 +73,7 @@ |
||
73 | 73 | ->addViolation() |
74 | 74 | ; |
75 | 75 | } else { |
76 | - $granted = $this->permissionApi->hasPermission('.*', '.*', ACCESS_ADMIN, (int) $user['uid']); |
|
76 | + $granted = $this->permissionApi->hasPermission('.*', '.*', ACCESS_ADMIN, (int)$user['uid']); |
|
77 | 77 | if (!$granted) { |
78 | 78 | $this->context |
79 | 79 | ->buildViolation($this->trans('Error! You logged in to an account without Admin permissions')) |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'placeholder' => $this->trans('Select') |
98 | 98 | ]); |
99 | 99 | |
100 | - $formModifier = function (FormInterface $form, $formType = null) use ($builder) { |
|
100 | + $formModifier = function(FormInterface $form, $formType = null) use ($builder) { |
|
101 | 101 | switch ($formType) { |
102 | 102 | case ChoiceType::class: |
103 | 103 | $optionsType = ChoiceFormOptionsArrayType::class; |
@@ -133,12 +133,12 @@ discard block |
||
133 | 133 | } |
134 | 134 | $form->add($formOptions->getForm()); |
135 | 135 | }; |
136 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, static function (FormEvent $event) use ($formModifier) { |
|
136 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, static function(FormEvent $event) use ($formModifier) { |
|
137 | 137 | $data = $event->getData(); |
138 | 138 | $formType = $data['formType']; |
139 | 139 | $formModifier($event->getForm(), $formType); |
140 | 140 | }); |
141 | - $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function (FormEvent $event) use ($formModifier) { |
|
141 | + $builder->get('formType')->addEventListener(FormEvents::POST_SUBMIT, static function(FormEvent $event) use ($formModifier) { |
|
142 | 142 | $formType = $event->getForm()->getData(); |
143 | 143 | $formModifier($event->getForm()->getParent(), $formType); |
144 | 144 | }); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | if ($route->getTranslatable()) { |
73 | 73 | $languages = $container->get(LocaleApi::class)->getSupportedLocales(); |
74 | 74 | // TODO migrate this legacy call |
75 | - $isRequiredLangParam = true;//ZLanguage::isRequiredLangParam(); |
|
75 | + $isRequiredLangParam = true; //ZLanguage::isRequiredLangParam(); |
|
76 | 76 | if (!$isRequiredLangParam) { |
77 | 77 | $defaultLanguage = $this->variableApi->getSystemVar('language_i18n'); |
78 | 78 | unset($languages[array_search($defaultLanguage, $languages, true)]); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ->getPathWithBundlePrefix($route) |
89 | 89 | ); |
90 | 90 | |
91 | - $path = preg_replace_callback('#%(.*?)%#', static function ($matches) use ($container) { |
|
91 | + $path = preg_replace_callback('#%(.*?)%#', static function($matches) use ($container) { |
|
92 | 92 | return '<abbr title="' . htmlspecialchars($matches[0]) . '">' |
93 | 93 | . htmlspecialchars($container->getParameter($matches[1])) |
94 | 94 | . '</abbr>' |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | $defaults = $route->getDefaults(); |
99 | 99 | $requirements = $route->getRequirements(); |
100 | - $path = preg_replace_callback('#{(.*?)}#', function ($matches) use ($defaults, $requirements) { |
|
100 | + $path = preg_replace_callback('#{(.*?)}#', function($matches) use ($defaults, $requirements) { |
|
101 | 101 | $title = ''; |
102 | 102 | if (isset($defaults[$matches[1]])) { |
103 | 103 | $title .= $this->trans('Default: %s', ['%s' => htmlspecialchars($defaults[$matches[1]])]); |