@@ -105,7 +105,7 @@ |
||
| 105 | 105 | ArrayProcessing::class, |
| 106 | 106 | 'selectablePrototypeNames', |
| 107 | 107 | '^([\d]+)\.identifier$', |
| 108 | - function ($_, $value) { |
|
| 108 | + function($_, $value) { |
|
| 109 | 109 | return $value; |
| 110 | 110 | } |
| 111 | 111 | ) |
@@ -307,7 +307,7 @@ |
||
| 307 | 307 | // * mixed cases of the above |
| 308 | 308 | return preg_replace_callback( |
| 309 | 309 | '/{([^}]+)}/', |
| 310 | - function ($matches) use ($formRuntime) { |
|
| 310 | + function($matches) use ($formRuntime) { |
|
| 311 | 311 | $value = $this->resolveRuntimeReference( |
| 312 | 312 | $matches[1], |
| 313 | 313 | $formRuntime |
@@ -44,10 +44,10 @@ |
||
| 44 | 44 | { |
| 45 | 45 | return new ExpressionFunction( |
| 46 | 46 | 'getFormValue', |
| 47 | - function () { |
|
| 47 | + function() { |
|
| 48 | 48 | // Not implemented, we only use the evaluator |
| 49 | 49 | }, |
| 50 | - function ($arguments, $field) { |
|
| 50 | + function($arguments, $field) { |
|
| 51 | 51 | return $arguments['formValues'][$field] ?? null; |
| 52 | 52 | } |
| 53 | 53 | ); |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | if (is_array($inheritances)) { |
| 194 | 194 | $deprecatedMixinInheritances = array_filter( |
| 195 | 195 | $inheritances, |
| 196 | - function (string $inheritance): bool { |
|
| 196 | + function(string $inheritance): bool { |
|
| 197 | 197 | return StringUtility::beginsWith($inheritance, 'TYPO3.CMS.Form.mixins.'); |
| 198 | 198 | } |
| 199 | 199 | ); |
@@ -809,7 +809,7 @@ |
||
| 809 | 809 | $keys = $this->formSettings['persistenceManager']['sortByKeys'] ?? ['name', 'fileUid']; |
| 810 | 810 | $ascending = $this->formSettings['persistenceManager']['sortAscending'] ?? true; |
| 811 | 811 | |
| 812 | - usort($forms, function (array $a, array $b) use ($keys) { |
|
| 812 | + usort($forms, function(array $a, array $b) use ($keys) { |
|
| 813 | 813 | foreach ($keys as $key) { |
| 814 | 814 | if (isset($a[$key]) && isset($b[$key])) { |
| 815 | 815 | $diff = strcasecmp((string)$a[$key], (string)$b[$key]); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | public function getShortInfo(): string |
| 58 | 58 | { |
| 59 | - $errorsAndWarnings = array_filter(InMemoryLogWriter::$log, function (LogRecord $entry) { |
|
| 59 | + $errorsAndWarnings = array_filter(InMemoryLogWriter::$log, function(LogRecord $entry) { |
|
| 60 | 60 | return LogLevel::normalizeLevel($entry->getLevel()) <= 4; |
| 61 | 61 | }); |
| 62 | 62 | return sprintf($this->getLanguageService()->sL( |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | $intScripts = $GLOBALS['TSFE']->config['INTincScript'] ?? []; |
| 86 | 86 | |
| 87 | 87 | foreach ($intScripts as $intScriptName => $intScriptConf) { |
| 88 | - $info = isset($intScriptConf['type']) ? ['TYPE' => $intScriptConf['type']] : []; |
|
| 88 | + $info = isset($intScriptConf['type']) ? ['TYPE' => $intScriptConf['type']] : []; |
|
| 89 | 89 | foreach ($intScriptConf['conf'] as $key => $conf) { |
| 90 | 90 | if (is_array($conf)) { |
| 91 | 91 | $conf = ArrayUtility::flatten($conf); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | 'storagePid' => implode(',', $this->getStorageFolders()), |
| 154 | 154 | 'permaloginStatus' => $this->getPermaloginStatus(), |
| 155 | 155 | 'redirectURL' => $this->redirectHandler->getLoginFormRedirectUrl($this->configuration, $this->isRedirectDisabled()), |
| 156 | - 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer'): '', |
|
| 156 | + 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer') : '', |
|
| 157 | 157 | 'referer' => $this->requestHandler->getPropertyFromGetAndPost('referer'), |
| 158 | 158 | 'noRedirect' => $this->isRedirectDisabled(), |
| 159 | 159 | ] |
@@ -132,28 +132,28 @@ |
||
| 132 | 132 | |
| 133 | 133 | $html = []; |
| 134 | 134 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 135 | - $html[] = $fieldInformationHtml; |
|
| 136 | - $html[] = '<div class="form-control-wrap">'; |
|
| 137 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 138 | - $html[] = '<div class="form-wizards-element">'; |
|
| 139 | - $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
| 140 | - $html[] = htmlspecialchars($value); |
|
| 141 | - $html[] = '</textarea>'; |
|
| 142 | - $html[] = '</div>'; |
|
| 135 | + $html[] = $fieldInformationHtml; |
|
| 136 | + $html[] = '<div class="form-control-wrap">'; |
|
| 137 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 138 | + $html[] = '<div class="form-wizards-element">'; |
|
| 139 | + $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
| 140 | + $html[] = htmlspecialchars($value); |
|
| 141 | + $html[] = '</textarea>'; |
|
| 142 | + $html[] = '</div>'; |
|
| 143 | 143 | if (!empty($fieldControlHtml)) { |
| 144 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 145 | - $html[] = '<div class="btn-group">'; |
|
| 146 | - $html[] = $fieldControlHtml; |
|
| 147 | - $html[] = '</div>'; |
|
| 148 | - $html[] = '</div>'; |
|
| 144 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 145 | + $html[] = '<div class="btn-group">'; |
|
| 146 | + $html[] = $fieldControlHtml; |
|
| 147 | + $html[] = '</div>'; |
|
| 148 | + $html[] = '</div>'; |
|
| 149 | 149 | } |
| 150 | 150 | if (!empty($fieldWizardHtml)) { |
| 151 | 151 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 152 | 152 | $html[] = $fieldWizardHtml; |
| 153 | 153 | $html[] = '</div>'; |
| 154 | 154 | } |
| 155 | - $html[] = '</div>'; |
|
| 156 | - $html[] = '</div>'; |
|
| 155 | + $html[] = '</div>'; |
|
| 156 | + $html[] = '</div>'; |
|
| 157 | 157 | $html[] = '</div>'; |
| 158 | 158 | |
| 159 | 159 | $resultArray['html'] = implode(LF, $html); |