@@ -233,7 +233,7 @@ |
||
233 | 233 | |
234 | 234 | $reflection = new \ReflectionClass($object); |
235 | 235 | $declaredPropertyNames = array_map( |
236 | - function (\ReflectionProperty $property) { |
|
236 | + function(\ReflectionProperty $property) { |
|
237 | 237 | return $property->getName(); |
238 | 238 | }, |
239 | 239 | $reflection->getProperties(\ReflectionProperty::IS_PUBLIC) |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $this->throwExceptionIfFrontendDoesNotExist(); |
139 | 139 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) |
140 | 140 | ->getQueryBuilderForTable($this->cacheTable); |
141 | - $cacheRow = $queryBuilder->select('content') |
|
141 | + $cacheRow = $queryBuilder->select('content') |
|
142 | 142 | ->from($this->cacheTable) |
143 | 143 | ->where( |
144 | 144 | $queryBuilder->expr()->eq( |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | // VERY simple quoting of tags is sufficient here for performance. Tags are already |
291 | 291 | // validated to not contain any bad characters, e.g. they are automatically generated |
292 | 292 | // inside this class and suffixed with a pure integer enforced by DB. |
293 | - $quotedTagList = array_map(function ($value) { |
|
293 | + $quotedTagList = array_map(function($value) { |
|
294 | 294 | return '\'' . $value . '\''; |
295 | 295 | }, $tags); |
296 | 296 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Form\FieldWizard; |
4 | 4 | |
5 | 5 | /* |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | ); |
70 | 70 | if ($defaultLanguageValue !== '') { |
71 | 71 | $html[] = '<div class="t3-form-original-language">'; |
72 | - $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][0]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
73 | - $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName); |
|
72 | + $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][0]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
73 | + $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName); |
|
74 | 74 | $html[] = '</div>'; |
75 | 75 | } |
76 | 76 | $additionalPreviewLanguages = $this->data['additionalLanguageRows']; |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | ); |
85 | 85 | if ($defaultLanguageValue !== '') { |
86 | 86 | $html[] = '<div class="t3-form-original-language">'; |
87 | - $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
88 | - $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName); |
|
87 | + $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
88 | + $html[] = $this->previewFieldValue($defaultLanguageValue, $fieldConfig, $fieldName); |
|
89 | 89 | $html[] = '</div>'; |
90 | 90 | } |
91 | 91 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | // If maxItems = 1 then automatically replace the current item file selector |
56 | 56 | $resultArray['additionalJavaScriptPost'][] = |
57 | 57 | 'TBE_EDITOR.clearBeforeSettingFormValueFromBrowseWin[' . GeneralUtility::quoteJSvalue($itemName) . '] = {' |
58 | - . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId) |
|
58 | + . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId) |
|
59 | 59 | . '}'; |
60 | 60 | } |
61 | 61 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Form\FieldWizard; |
4 | 4 | |
5 | 5 | /* |
@@ -67,15 +67,15 @@ discard block |
||
67 | 67 | $multipleFilenameSuffix = '[]'; |
68 | 68 | } |
69 | 69 | |
70 | - $html= []; |
|
70 | + $html = []; |
|
71 | 71 | $html[] = '<div id="' . $uploadFieldId . '">'; |
72 | - $html[] = '<input'; |
|
73 | - $html[] = ' type="file"'; |
|
74 | - $html[] = $selectorMultipleAttribute; |
|
75 | - $html[] = ' name="data_files' . $this->data['elementBaseName'] . $multipleFilenameSuffix . '"'; |
|
76 | - $html[] = ' size="35"'; |
|
77 | - $html[] = ' onchange="' . implode('', $parameterArray['fieldChangeFunc']) . '"'; |
|
78 | - $html[] = '/>'; |
|
72 | + $html[] = '<input'; |
|
73 | + $html[] = ' type="file"'; |
|
74 | + $html[] = $selectorMultipleAttribute; |
|
75 | + $html[] = ' name="data_files' . $this->data['elementBaseName'] . $multipleFilenameSuffix . '"'; |
|
76 | + $html[] = ' size="35"'; |
|
77 | + $html[] = ' onchange="' . implode('', $parameterArray['fieldChangeFunc']) . '"'; |
|
78 | + $html[] = '/>'; |
|
79 | 79 | $html[] = '</div>'; |
80 | 80 | |
81 | 81 | $result['html'] = implode(LF, $html); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Form\FieldWizard; |
4 | 4 | |
5 | 5 | /* |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | $html = []; |
58 | 58 | if (!empty($allowedHtml) || !empty($disallowedHtml)) { |
59 | 59 | $html[] = '<div class="help-block">'; |
60 | - $html[] = implode(LF, $allowedHtml); |
|
61 | - $html[] = implode(LF, $disallowedHtml); |
|
60 | + $html[] = implode(LF, $allowedHtml); |
|
61 | + $html[] = implode(LF, $disallowedHtml); |
|
62 | 62 | $html[] = '</div>'; |
63 | 63 | } |
64 | 64 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Form\FieldWizard; |
4 | 4 | |
5 | 5 | /* |
@@ -55,26 +55,26 @@ discard block |
||
55 | 55 | if ($allowed === '*') { |
56 | 56 | $label = $languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.allTables'); |
57 | 57 | $allowedTablesHtml[] = '<span>'; |
58 | - $allowedTablesHtml[] = htmlspecialchars($label); |
|
58 | + $allowedTablesHtml[] = htmlspecialchars($label); |
|
59 | 59 | $allowedTablesHtml[] = '</span>'; |
60 | 60 | } else { |
61 | 61 | $label = $languageService->sL($GLOBALS['TCA'][$tableName]['ctrl']['title']); |
62 | 62 | $onClick = []; |
63 | 63 | $onClick[] = 'setFormValueOpenBrowser('; |
64 | - $onClick[] = '\'db\','; |
|
65 | - $onClick[] = GeneralUtility::quoteJSvalue($itemName . '|||' . $tableName); |
|
64 | + $onClick[] = '\'db\','; |
|
65 | + $onClick[] = GeneralUtility::quoteJSvalue($itemName . '|||' . $tableName); |
|
66 | 66 | $onClick[] = ');'; |
67 | 67 | $onClick[] = 'return false;'; |
68 | 68 | $allowedTablesHtml[] = '<a href="#" onClick="' . htmlspecialchars(implode('', $onClick)) . '" class="btn btn-default">'; |
69 | - $allowedTablesHtml[] = $iconFactory->getIconForRecord($tableName, [], Icon::SIZE_SMALL)->render(); |
|
70 | - $allowedTablesHtml[] = htmlspecialchars($label); |
|
69 | + $allowedTablesHtml[] = $iconFactory->getIconForRecord($tableName, [], Icon::SIZE_SMALL)->render(); |
|
70 | + $allowedTablesHtml[] = htmlspecialchars($label); |
|
71 | 71 | $allowedTablesHtml[] = '</a>'; |
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | - $html= []; |
|
75 | + $html = []; |
|
76 | 76 | $html[] = '<div class="help-block">'; |
77 | - $html[] = implode(LF, $allowedTablesHtml); |
|
77 | + $html[] = implode(LF, $allowedTablesHtml); |
|
78 | 78 | $html[] = '</div>'; |
79 | 79 | |
80 | 80 | $result['html'] = implode(LF, $html); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace TYPO3\CMS\Backend\Form\FieldWizard; |
4 | 4 | |
5 | 5 | /* |
@@ -68,17 +68,17 @@ discard block |
||
68 | 68 | BackendUtility::getProcessedValue($table, $fieldName, $defaultLanguageRow[$fieldName], 0, 1) |
69 | 69 | ); |
70 | 70 | $html[] = '<div class="t3-form-original-language-diff">'; |
71 | - $html[] = '<div class="t3-form-original-language-diffheader">'; |
|
72 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.changeInOrig')); |
|
73 | - $html[] = '</div>'; |
|
74 | - $html[] = '<div class="t3-form-original-language-diffcontent">'; |
|
75 | - $html[] = '<div class="diff">'; |
|
76 | - $html[] = '<div class="diff-item">'; |
|
77 | - $html[] = '<div class="diff-item-result diff-item-result-inline">' . $diffResult . '</div>'; |
|
78 | - $html[] = '</div>'; |
|
79 | - $html[] = '</div>'; |
|
80 | - $html[] = '</div>'; |
|
81 | - $html[] = '</div>'; |
|
71 | + $html[] = '<div class="t3-form-original-language-diffheader">'; |
|
72 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.changeInOrig')); |
|
73 | + $html[] = '</div>'; |
|
74 | + $html[] = '<div class="t3-form-original-language-diffcontent">'; |
|
75 | + $html[] = '<div class="diff">'; |
|
76 | + $html[] = '<div class="diff-item">'; |
|
77 | + $html[] = '<div class="diff-item-result diff-item-result-inline">' . $diffResult . '</div>'; |
|
78 | + $html[] = '</div>'; |
|
79 | + $html[] = '</div>'; |
|
80 | + $html[] = '</div>'; |
|
81 | + $html[] = '</div>'; |
|
82 | 82 | } |
83 | 83 | $result['html'] = implode(LF, $html); |
84 | 84 | return $result; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $counter = 0; |
114 | 114 | foreach ($items as $itemKey => $itemDefinition) { |
115 | 115 | $label = $itemDefinition[0]; |
116 | - $elementHtml .= $this->renderSingleCheckboxElement($label, $counter, $formElementValue, $numberOfItems, $this->data['parameterArray'], $disabled); |
|
116 | + $elementHtml .= $this->renderSingleCheckboxElement($label, $counter, $formElementValue, $numberOfItems, $this->data['parameterArray'], $disabled); |
|
117 | 117 | $counter = $counter + 1; |
118 | 118 | } |
119 | 119 | } |
@@ -134,16 +134,16 @@ discard block |
||
134 | 134 | if (!$disabled) { |
135 | 135 | $html[] = $fieldInformationHtml; |
136 | 136 | } |
137 | - $html[] = '<div class="form-wizards-wrap">'; |
|
138 | - $html[] = '<div class="form-wizards-element">'; |
|
139 | - $html[] = $elementHtml; |
|
140 | - $html[] = '</div>'; |
|
137 | + $html[] = '<div class="form-wizards-wrap">'; |
|
138 | + $html[] = '<div class="form-wizards-element">'; |
|
139 | + $html[] = $elementHtml; |
|
140 | + $html[] = '</div>'; |
|
141 | 141 | if (!$disabled) { |
142 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
143 | - $html[] = $fieldWizardHtml; |
|
144 | - $html[] = '</div>'; |
|
142 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
143 | + $html[] = $fieldWizardHtml; |
|
144 | + $html[] = '</div>'; |
|
145 | 145 | } |
146 | - $html[] = '</div>'; |
|
146 | + $html[] = '</div>'; |
|
147 | 147 | $html[] = '</div>'; |
148 | 148 | |
149 | 149 | $resultArray['html'] = implode(LF, $html); |
@@ -145,8 +145,8 @@ discard block |
||
145 | 145 | if (!$disabled) { |
146 | 146 | $html[] = $fieldInformationHtml; |
147 | 147 | } |
148 | - $html[] = '<div class="form-wizards-wrap">'; |
|
149 | - $html[] = '<div class="form-wizards-element">'; |
|
148 | + $html[] = '<div class="form-wizards-wrap">'; |
|
149 | + $html[] = '<div class="form-wizards-element">'; |
|
150 | 150 | |
151 | 151 | // Add an empty hidden field which will send a blank value if all items are unselected. |
152 | 152 | $html[] = '<input type="hidden" class="select-checkbox" name="' . htmlspecialchars($parameterArray['itemFormElName']) . '" value="">'; |
@@ -170,22 +170,22 @@ discard block |
||
170 | 170 | // Render rows |
171 | 171 | foreach ($group['items'] as $item) { |
172 | 172 | $tableRows[] = '<tr class="' . $item['class'] . '">'; |
173 | - $tableRows[] = '<td class="col-checkbox">'; |
|
174 | - $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
173 | + $tableRows[] = '<td class="col-checkbox">'; |
|
174 | + $tableRows[] = '<input type="checkbox" class="t3js-checkbox" ' |
|
175 | 175 | . 'id="' . $item['id'] . '" ' |
176 | 176 | . 'name="' . htmlspecialchars($item['name']) . '" ' |
177 | 177 | . 'value="' . htmlspecialchars($item['value']) . '" ' |
178 | 178 | . 'onclick="' . htmlspecialchars($sOnChange) . '" ' |
179 | 179 | . ($item['checked'] ? 'checked=checked ' : '') |
180 | 180 | . ($item['disabled'] ? 'disabled=disabled ' : '') . '>'; |
181 | - $tableRows[] = '</td>'; |
|
182 | - $tableRows[] = '<td class="col-icon">'; |
|
183 | - $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . $item['icon'] . '</label>'; |
|
184 | - $tableRows[] = '</td>'; |
|
185 | - $tableRows[] = '<td class="col-title">'; |
|
186 | - $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . htmlspecialchars($item['title'], ENT_COMPAT, 'UTF-8', false) . '</label>'; |
|
187 | - $tableRows[] = '</td>'; |
|
188 | - $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
181 | + $tableRows[] = '</td>'; |
|
182 | + $tableRows[] = '<td class="col-icon">'; |
|
183 | + $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . $item['icon'] . '</label>'; |
|
184 | + $tableRows[] = '</td>'; |
|
185 | + $tableRows[] = '<td class="col-title">'; |
|
186 | + $tableRows[] = '<label class="label-block" for="' . $item['id'] . '">' . htmlspecialchars($item['title'], ENT_COMPAT, 'UTF-8', false) . '</label>'; |
|
187 | + $tableRows[] = '</td>'; |
|
188 | + $tableRows[] = '<td class="text-right">' . $item['help'] . '</td>'; |
|
189 | 189 | $tableRows[] = '</tr>'; |
190 | 190 | $resetGroup[] = 'document.editform[' . GeneralUtility::quoteJSvalue($item['name']) . '].checked=' . $item['checked'] . ';'; |
191 | 191 | } |
@@ -208,20 +208,20 @@ discard block |
||
208 | 208 | } |
209 | 209 | $checkboxId = uniqid($groupId); |
210 | 210 | $title = htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
211 | - $html[] = '<div class="table-responsive">'; |
|
212 | - $html[] = '<table class="table table-transparent table-hover">'; |
|
213 | - $html[] = '<thead>'; |
|
214 | - $html[] = '<tr>'; |
|
215 | - $html[] = '<th class="col-checkbox">'; |
|
216 | - $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-trigger="hover" data-placement="right" data-title="' . $title . '" data-toggle="tooltip" />'; |
|
217 | - $html[] = '</th>'; |
|
218 | - $html[] = '<th class="col-title" colspan="2"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
219 | - $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
220 | - $html[] = '</tr>'; |
|
221 | - $html[] = '</thead>'; |
|
222 | - $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
223 | - $html[] = '</table>'; |
|
224 | - $html[] = '</div>'; |
|
211 | + $html[] = '<div class="table-responsive">'; |
|
212 | + $html[] = '<table class="table table-transparent table-hover">'; |
|
213 | + $html[] = '<thead>'; |
|
214 | + $html[] = '<tr>'; |
|
215 | + $html[] = '<th class="col-checkbox">'; |
|
216 | + $html[] = '<input type="checkbox" id="' . $checkboxId . '" class="t3js-toggle-checkboxes" data-trigger="hover" data-placement="right" data-title="' . $title . '" data-toggle="tooltip" />'; |
|
217 | + $html[] = '</th>'; |
|
218 | + $html[] = '<th class="col-title" colspan="2"><label for="' . $checkboxId . '">' . $title . '</label></th>'; |
|
219 | + $html[] = '<th class="text-right">' . $resetGroupBtn . '</th>'; |
|
220 | + $html[] = '</tr>'; |
|
221 | + $html[] = '</thead>'; |
|
222 | + $html[] = '<tbody>' . implode(LF, $tableRows) . '</tbody>'; |
|
223 | + $html[] = '</table>'; |
|
224 | + $html[] = '</div>'; |
|
225 | 225 | if (is_array($group['header'])) { |
226 | 226 | $html[] = '</div>'; |
227 | 227 | } |
@@ -229,13 +229,13 @@ discard block |
||
229 | 229 | $html[] = '</div>'; |
230 | 230 | } |
231 | 231 | |
232 | - $html[] = '</div>'; |
|
232 | + $html[] = '</div>'; |
|
233 | 233 | if (!$disabled) { |
234 | - $html[] = '<div class="form-wizards-items-bottom">'; |
|
235 | - $html[] = $fieldWizardHtml; |
|
236 | - $html[] = '</div>'; |
|
234 | + $html[] = '<div class="form-wizards-items-bottom">'; |
|
235 | + $html[] = $fieldWizardHtml; |
|
236 | + $html[] = '</div>'; |
|
237 | 237 | } |
238 | - $html[] = '</div>'; |
|
238 | + $html[] = '</div>'; |
|
239 | 239 | $html[] = '</div>'; |
240 | 240 | } |
241 | 241 |