@@ -62,7 +62,7 @@ |
||
| 62 | 62 | public function createAspects(array $aspects, SiteLanguage $language, Site $site): array |
| 63 | 63 | { |
| 64 | 64 | $aspects = array_map( |
| 65 | - function ($settings) use ($language, $site) { |
|
| 65 | + function($settings) use ($language, $site) { |
|
| 66 | 66 | $type = (string)($settings['type'] ?? ''); |
| 67 | 67 | $aspect = $this->create($type, $settings); |
| 68 | 68 | return $this->enrich($aspect, $language, $site); |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | { |
| 201 | 201 | return array_filter( |
| 202 | 202 | $array, |
| 203 | - function ($key) { |
|
| 203 | + function($key) { |
|
| 204 | 204 | return !is_numeric($key); |
| 205 | 205 | }, |
| 206 | 206 | ARRAY_FILTER_USE_KEY |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | |
| 162 | 162 | $length = strlen(max($this->start, $this->end)); |
| 163 | 163 | $range = array_map( |
| 164 | - function ($value) use ($length) { |
|
| 164 | + function($value) use ($length) { |
|
| 165 | 165 | return str_pad($value, $length, '0', STR_PAD_LEFT); |
| 166 | 166 | }, |
| 167 | 167 | $range |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | } |
| 73 | 73 | return array_filter( |
| 74 | 74 | $results, |
| 75 | - function (array $result) { |
|
| 75 | + function(array $result) { |
|
| 76 | 76 | // default FrontendRestrictionContainer retrieves only live records |
| 77 | 77 | // (no specific workspace & move-placeholder resolving required here) |
| 78 | 78 | $pageId = (int)$result['pid']; |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | usort( |
| 50 | 50 | $results, |
| 51 | 51 | // orders records by there occurrence in $languageFallbackIds |
| 52 | - function (array $a, array $b) use ($languageFieldName, $languageIds): int { |
|
| 52 | + function(array $a, array $b) use ($languageFieldName, $languageIds): int { |
|
| 53 | 53 | $languageA = (int)$a[$languageFieldName]; |
| 54 | 54 | $languageB = (int)$b[$languageFieldName]; |
| 55 | 55 | return array_search($languageA, $languageIds, true) |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | return ''; |
| 152 | 152 | } |
| 153 | 153 | $redecorationPatterns = array_map( |
| 154 | - function (DecoratingEnhancerInterface $decorationEnhancers) { |
|
| 154 | + function(DecoratingEnhancerInterface $decorationEnhancers) { |
|
| 155 | 155 | $pattern = $decorationEnhancers->getRoutePathRedecorationPattern(); |
| 156 | 156 | return '(?:' . $pattern . ')'; |
| 157 | 157 | }, |
@@ -279,7 +279,7 @@ |
||
| 279 | 279 | // Try adding or editing |
| 280 | 280 | $content .= $this->editTaskAction(); |
| 281 | 281 | $sectionTitle = $this->getLanguageService()->getLL('action.' . $this->getCurrentAction()); |
| 282 | - } catch (\LogicException|\UnexpectedValueException|\OutOfBoundsException $e) { |
|
| 282 | + } catch (\LogicException | \UnexpectedValueException | \OutOfBoundsException $e) { |
|
| 283 | 283 | // Catching all types of exceptions that were previously handled and |
| 284 | 284 | // converted to messages |
| 285 | 285 | $content .= $this->listTasksAction(); |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | $inputTag->addAttribute('type', 'text'); |
| 436 | 436 | $inputTag->addAttribute('value', $currentValue); |
| 437 | 437 | $inputTag->addAttribute('class', 'form-control'); |
| 438 | - $html .= $inputTag->render(); |
|
| 438 | + $html .= $inputTag->render(); |
|
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | return $html; |
@@ -151,28 +151,28 @@ |
||
| 151 | 151 | |
| 152 | 152 | $html = []; |
| 153 | 153 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
| 154 | - $html[] = $fieldInformationHtml; |
|
| 155 | - $html[] = '<div class="form-control-wrap">'; |
|
| 156 | - $html[] = '<div class="form-wizards-wrap">'; |
|
| 157 | - $html[] = '<div class="form-wizards-element">'; |
|
| 158 | - $html[] = '<div class="t3editor-wrapper">'; |
|
| 159 | - $html[] = $editorHtml; |
|
| 160 | - $html[] = '</div>'; |
|
| 161 | - $html[] = '</div>'; |
|
| 154 | + $html[] = $fieldInformationHtml; |
|
| 155 | + $html[] = '<div class="form-control-wrap">'; |
|
| 156 | + $html[] = '<div class="form-wizards-wrap">'; |
|
| 157 | + $html[] = '<div class="form-wizards-element">'; |
|
| 158 | + $html[] = '<div class="t3editor-wrapper">'; |
|
| 159 | + $html[] = $editorHtml; |
|
| 160 | + $html[] = '</div>'; |
|
| 161 | + $html[] = '</div>'; |
|
| 162 | 162 | if (!empty($fieldControlHtml)) { |
| 163 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
| 164 | - $html[] = '<div class="btn-group">'; |
|
| 165 | - $html[] = $fieldControlHtml; |
|
| 166 | - $html[] = '</div>'; |
|
| 167 | - $html[] = '</div>'; |
|
| 163 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
| 164 | + $html[] = '<div class="btn-group">'; |
|
| 165 | + $html[] = $fieldControlHtml; |
|
| 166 | + $html[] = '</div>'; |
|
| 167 | + $html[] = '</div>'; |
|
| 168 | 168 | } |
| 169 | 169 | if (!empty($fieldWizardHtml)) { |
| 170 | 170 | $html[] = '<div class="form-wizards-items-bottom">'; |
| 171 | 171 | $html[] = $fieldWizardHtml; |
| 172 | 172 | $html[] = '</div>'; |
| 173 | 173 | } |
| 174 | - $html[] = '</div>'; |
|
| 175 | - $html[] = '</div>'; |
|
| 174 | + $html[] = '</div>'; |
|
| 175 | + $html[] = '</div>'; |
|
| 176 | 176 | $html[] = '</div>'; |
| 177 | 177 | |
| 178 | 178 | $this->resultArray['html'] = implode(LF, $html); |