@@ -1866,7 +1866,7 @@ discard block |
||
1866 | 1866 | $userGroupRecordPermissions = GeneralUtility::trimExplode(',', $this->groupData['file_permissions'] ?? '', true); |
1867 | 1867 | array_walk( |
1868 | 1868 | $userGroupRecordPermissions, |
1869 | - function ($permission) use (&$filePermissions) { |
|
1869 | + function($permission) use (&$filePermissions) { |
|
1870 | 1870 | $filePermissions[$permission] = true; |
1871 | 1871 | } |
1872 | 1872 | ); |
@@ -1876,7 +1876,7 @@ discard block |
||
1876 | 1876 | if (!empty($permissionsTsConfig)) { |
1877 | 1877 | array_walk( |
1878 | 1878 | $permissionsTsConfig, |
1879 | - function ($value, $permission) use (&$filePermissions) { |
|
1879 | + function($value, $permission) use (&$filePermissions) { |
|
1880 | 1880 | $filePermissions[$permission] = (bool)$value; |
1881 | 1881 | } |
1882 | 1882 | ); |
@@ -1905,7 +1905,7 @@ discard block |
||
1905 | 1905 | if (!empty($storageFilePermissions)) { |
1906 | 1906 | array_walk( |
1907 | 1907 | $storageFilePermissions, |
1908 | - function ($value, $permission) use (&$finalUserPermissions) { |
|
1908 | + function($value, $permission) use (&$finalUserPermissions) { |
|
1909 | 1909 | $finalUserPermissions[$permission] = (bool)$value; |
1910 | 1910 | } |
1911 | 1911 | ); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $additionalAttributes[] = GeneralUtility::implodeAttributes($options['additionalAttributes'], true, true); |
82 | 82 | } |
83 | 83 | if (isset($options['data']) && is_array($options['data'])) { |
84 | - array_walk($options['data'], function (&$value, $key) { |
|
84 | + array_walk($options['data'], function(&$value, $key) { |
|
85 | 85 | $value = 'data-' . htmlspecialchars($key) . '="' . htmlspecialchars($value) . '"'; |
86 | 86 | }); |
87 | 87 | $additionalAttributes[] = implode(' ', $options['data']); |
@@ -105,9 +105,9 @@ |
||
105 | 105 | |
106 | 106 | return !isset($result['maintained_until']) || |
107 | 107 | ( |
108 | - new \DateTimeImmutable($result['maintained_until']) >= |
|
109 | - new \DateTimeImmutable('now', new \DateTimeZone('UTC')) |
|
110 | - ); |
|
108 | + new \DateTimeImmutable($result['maintained_until']) >= |
|
109 | + new \DateTimeImmutable('now', new \DateTimeZone('UTC')) |
|
110 | + ); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -700,9 +700,9 @@ |
||
700 | 700 | $iconPath = PathUtility::stripPathSitePrefix($fullPath); |
701 | 701 | $this->iconFileNameCache[$imageType] = $imageInfo->getWidth() |
702 | 702 | ? '<img src="' . $iconPath |
703 | - . '" width="' . $imageInfo->getWidth() |
|
704 | - . '" height="' . $imageInfo->getHeight() |
|
705 | - . '" title="' . htmlspecialchars($alt) . '" alt="" />' |
|
703 | + . '" width="' . $imageInfo->getWidth() |
|
704 | + . '" height="' . $imageInfo->getHeight() |
|
705 | + . '" title="' . htmlspecialchars($alt) . '" alt="" />' |
|
706 | 706 | : ''; |
707 | 707 | } |
708 | 708 | } |
@@ -872,8 +872,8 @@ |
||
872 | 872 | ->bulkInsert( |
873 | 873 | 'index_stat_word', |
874 | 874 | $entries, |
875 | - [ 'word', 'tstamp', 'pageid' ], |
|
876 | - [ \PDO::PARAM_STR, \PDO::PARAM_INT, \PDO::PARAM_INT ] |
|
875 | + ['word', 'tstamp', 'pageid'], |
|
876 | + [\PDO::PARAM_STR, \PDO::PARAM_INT, \PDO::PARAM_INT] |
|
877 | 877 | ); |
878 | 878 | } |
879 | 879 |
@@ -565,7 +565,7 @@ |
||
565 | 565 | } else { |
566 | 566 | $pArray[$cEl['uid']]['_templates'][] = $row; |
567 | 567 | } |
568 | - uasort($pArray, function ($a, $b) { |
|
568 | + uasort($pArray, function($a, $b) { |
|
569 | 569 | return $a['sorting'] - $b['sorting']; |
570 | 570 | }); |
571 | 571 | } |
@@ -124,32 +124,32 @@ discard block |
||
124 | 124 | $html = []; |
125 | 125 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
126 | 126 | $html[] = $fieldInformationHtml; |
127 | - $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
128 | - $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
129 | - $html[] = '<div class="form-wizards-element">'; |
|
127 | + $html[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">'; |
|
128 | + $html[] = '<div class="form-wizards-wrap form-wizards-aside">'; |
|
129 | + $html[] = '<div class="form-wizards-element">'; |
|
130 | 130 | if (!$disabled) { |
131 | 131 | // Add an empty hidden field which will send a blank value if all items are unselected. |
132 | - $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
132 | + $html[] = '<input type="hidden" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
|
133 | 133 | } |
134 | - $html[] = $selectElement; |
|
135 | - $html[] = '</div>'; |
|
134 | + $html[] = $selectElement; |
|
135 | + $html[] = '</div>'; |
|
136 | 136 | if (!$disabled) { |
137 | 137 | if (!empty($fieldControlHtml)) { |
138 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
139 | - $html[] = $fieldControlHtml; |
|
140 | - $html[] = '</div>'; |
|
141 | - $html[] = '</div>'; |
|
138 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
139 | + $html[] = $fieldControlHtml; |
|
140 | + $html[] = '</div>'; |
|
141 | + $html[] = '</div>'; |
|
142 | 142 | } |
143 | - $html[] = '<p>'; |
|
144 | - $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
145 | - $html[] = '</p>'; |
|
143 | + $html[] = '<p>'; |
|
144 | + $html[] = '<em>' . htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.holdDownCTRL')) . '</em>'; |
|
145 | + $html[] = '</p>'; |
|
146 | 146 | if (!empty($fieldWizardHtml)) { |
147 | 147 | $html[] = '<div class="form-wizards-items-bottom">'; |
148 | 148 | $html[] = $fieldWizardHtml; |
149 | 149 | $html[] = '</div>'; |
150 | 150 | } |
151 | 151 | } |
152 | - $html[] = '</div>'; |
|
152 | + $html[] = '</div>'; |
|
153 | 153 | $html[] = '</div>'; |
154 | 154 | |
155 | 155 | $resultArray['html'] = implode(LF, $html); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | $html = []; |
197 | 197 | $html[] = '<select ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
198 | - $html[] = implode(LF, $optionElements); |
|
198 | + $html[] = implode(LF, $optionElements); |
|
199 | 199 | $html[] = '</select>'; |
200 | 200 | |
201 | 201 | return implode(LF, $html); |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | $html = []; |
79 | 79 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
80 | 80 | $html[] = $fieldInformationHtml; |
81 | - $html[] = '<div class="form-wizards-wrap">'; |
|
82 | - $html[] = '<div class="form-wizards-element">'; |
|
81 | + $html[] = '<div class="form-wizards-wrap">'; |
|
82 | + $html[] = '<div class="form-wizards-element">'; |
|
83 | 83 | foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) { |
84 | 84 | $label = $itemLabelAndValue[0]; |
85 | 85 | $value = $itemLabelAndValue[1]; |
@@ -87,26 +87,26 @@ discard block |
||
87 | 87 | $radioChecked = (string)$value === (string)$this->data['parameterArray']['itemFormElValue'] ? ' checked="checked"' : ''; |
88 | 88 | |
89 | 89 | $html[] = '<div class="radio' . $disabled . '">'; |
90 | - $html[] = '<label for="' . $radioId . '">'; |
|
91 | - $html[] = '<input type="radio"'; |
|
92 | - $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | - $html[] = ' id="' . $radioId . '"'; |
|
94 | - $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | - $html[] = $radioChecked; |
|
96 | - $html[] = $disabled; |
|
97 | - $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | - $html[] = '/>'; |
|
99 | - $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | - $html[] = '</label>'; |
|
90 | + $html[] = '<label for="' . $radioId . '">'; |
|
91 | + $html[] = '<input type="radio"'; |
|
92 | + $html[] = ' name="' . htmlspecialchars($this->data['parameterArray']['itemFormElName']) . '"'; |
|
93 | + $html[] = ' id="' . $radioId . '"'; |
|
94 | + $html[] = ' value="' . htmlspecialchars($value) . '"'; |
|
95 | + $html[] = $radioChecked; |
|
96 | + $html[] = $disabled; |
|
97 | + $html[] = ' onclick="' . htmlspecialchars(implode('', $this->data['parameterArray']['fieldChangeFunc'])) . '"'; |
|
98 | + $html[] = '/>'; |
|
99 | + $html[] = htmlspecialchars($this->appendValueToLabelInDebugMode($label, $value)); |
|
100 | + $html[] = '</label>'; |
|
101 | 101 | $html[] = '</div>'; |
102 | 102 | } |
103 | - $html[] = '</div>'; |
|
103 | + $html[] = '</div>'; |
|
104 | 104 | if (!$disabled && !empty($fieldWizardHtml)) { |
105 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | - $html[] = $fieldWizardHtml; |
|
107 | - $html[] = '</div>'; |
|
105 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
106 | + $html[] = $fieldWizardHtml; |
|
107 | + $html[] = '</div>'; |
|
108 | 108 | } |
109 | - $html[] = '</div>'; |
|
109 | + $html[] = '</div>'; |
|
110 | 110 | $html[] = '</div>'; |
111 | 111 | |
112 | 112 | $resultArray['html'] = implode(LF, $html); |
@@ -94,7 +94,7 @@ |
||
94 | 94 | return $this->slugFieldNamesPerTable[$tableName] = array_keys( |
95 | 95 | array_filter( |
96 | 96 | $GLOBALS['TCA'][$tableName]['columns'] ?? [], |
97 | - function (array $settings) { |
|
97 | + function(array $settings) { |
|
98 | 98 | return ($settings['config']['type'] ?? null) === 'slug'; |
99 | 99 | } |
100 | 100 | ) |
@@ -125,7 +125,7 @@ |
||
125 | 125 | ($module instanceof ConfigurableInterface && $module->isEnabled()) |
126 | 126 | || !($module instanceof ConfigurableInterface) |
127 | 127 | ) |
128 | - ) { |
|
128 | + ) { |
|
129 | 129 | $module->onSubmit($configurationToSave, $request); |
130 | 130 | } |
131 | 131 | if ($module instanceof SubmoduleProviderInterface) { |