@@ -300,9 +300,9 @@ |
||
300 | 300 | // Back |
301 | 301 | if ($this->returnUrl) { |
302 | 302 | $backButton = $buttonBar->makeLinkButton() |
303 | - ->setHref($this->returnUrl) |
|
304 | - ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.goBack')) |
|
305 | - ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-view-go-back', Icon::SIZE_SMALL)); |
|
303 | + ->setHref($this->returnUrl) |
|
304 | + ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.goBack')) |
|
305 | + ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-view-go-back', Icon::SIZE_SMALL)); |
|
306 | 306 | $buttonBar->addButton($backButton); |
307 | 307 | } |
308 | 308 |
@@ -233,7 +233,7 @@ |
||
233 | 233 | 'EXT:backend/Resources/Private/Templates/ContentElement/MoveElement.html' |
234 | 234 | )); |
235 | 235 | $view->assignMultiple($assigns); |
236 | - $this->content .= $view->render(); |
|
236 | + $this->content .= $view->render(); |
|
237 | 237 | } |
238 | 238 | // Setting up the buttons and markers for docheader |
239 | 239 | $this->getButtons(); |
@@ -168,7 +168,7 @@ |
||
168 | 168 | $replacement['###PAGE_TSCONFIG_ID###'] = (int)$fieldTSconfig['PAGE_TSCONFIG_ID']; |
169 | 169 | } |
170 | 170 | if (isset($fieldTSconfig['PAGE_TSCONFIG_IDLIST'])) { |
171 | - $replacement['###PAGE_TSCONFIG_IDLIST###'] = implode(',', GeneralUtility::intExplode(',', $fieldTSconfig['PAGE_TSCONFIG_IDLIST'])); |
|
171 | + $replacement['###PAGE_TSCONFIG_IDLIST###'] = implode(',', GeneralUtility::intExplode(',', $fieldTSconfig['PAGE_TSCONFIG_IDLIST'])); |
|
172 | 172 | } |
173 | 173 | if (isset($fieldTSconfig['PAGE_TSCONFIG_STR'])) { |
174 | 174 | $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($fieldConfig['foreign_table']); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | if (!is_array($pageIdsToClear)) { |
68 | 68 | $pageIdsToClear = [(int)$pageIdsToClear]; |
69 | 69 | } |
70 | - $tags = array_map(function ($item) { |
|
70 | + $tags = array_map(function($item) { |
|
71 | 71 | return 'pageId_' . $item; |
72 | 72 | }, $pageIdsToClear); |
73 | 73 | $this->cacheManager->flushCachesInGroupByTags('pages', $tags); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | $dataProvider->setTableName($tableName); |
54 | 54 | if ($tableName == $table) { |
55 | 55 | // The uid of the currently opened row can not be selected in a table relation to "self" |
56 | - $unselectableUids = [ $currentValue['uid'] ]; |
|
56 | + $unselectableUids = [$currentValue['uid']]; |
|
57 | 57 | $dataProvider->setItemUnselectableList($unselectableUids); |
58 | 58 | } |
59 | 59 | } else { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | // Prepare processedTca: Remove all column definitions except the one that contains |
42 | 42 | // our tree definition. This way only this field is calculated, everything else is ignored. |
43 | - if (!isset($GLOBALS['TCA'][$tableName]) || !is_array($GLOBALS['TCA'][$tableName])) { |
|
43 | + if (!isset($GLOBALS['TCA'][$tableName]) || !is_array($GLOBALS['TCA'][$tableName])) { |
|
44 | 44 | throw new \RuntimeException( |
45 | 45 | 'TCA for table ' . $tableName . ' not found', |
46 | 46 | 1479386729 |
@@ -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\FormDataProvider; |
4 | 4 | |
5 | 5 | /* |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | ); |
273 | 273 | } |
274 | 274 | $fieldName = $conditionArray[1]; |
275 | - $allowedOperators = [ 'REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT' ]; |
|
275 | + $allowedOperators = ['REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT']; |
|
276 | 276 | if (empty($conditionArray[2]) || !in_array($conditionArray[2], $allowedOperators)) { |
277 | 277 | throw new \RuntimeException( |
278 | 278 | 'Field condition "' . $conditionString . '" must have a valid operator as third part, non or invalid one given.' |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | 1481401892 |
304 | 304 | ); |
305 | 305 | } |
306 | - } elseif (in_array($namedConditionArray['operator'], [ '>', '<', '>=', '<=', 'BIT', '!BIT' ])) { |
|
306 | + } elseif (in_array($namedConditionArray['operator'], ['>', '<', '>=', '<=', 'BIT', '!BIT'])) { |
|
307 | 307 | if (!MathUtility::canBeInterpretedAsInteger($operand)) { |
308 | 308 | throw new \RuntimeException( |
309 | 309 | 'Field condition "' . $conditionString . '" with comparison operator ' . $namedConditionArray['operator'] |
@@ -78,22 +78,22 @@ discard block |
||
78 | 78 | } |
79 | 79 | $containerTemplateHtml = []; |
80 | 80 | $containerTemplateHtml[] = '<a'; |
81 | - $containerTemplateHtml[] = 'href="#"'; |
|
82 | - $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
83 | - $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
81 | + $containerTemplateHtml[] = 'href="#"'; |
|
82 | + $containerTemplateHtml[] = 'class="btn btn-default t3js-flex-container-add"'; |
|
83 | + $containerTemplateHtml[] = 'data-vanillauid="' . (int)$this->data['vanillaUid'] . '"'; |
|
84 | 84 | // no int cast for databaseRow uid, this can be "NEW1234..." |
85 | - $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
86 | - $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
87 | - $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
88 | - $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
89 | - $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
90 | - $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
91 | - $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
92 | - $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
93 | - $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
85 | + $containerTemplateHtml[] = 'data-databaserowuid="' . htmlspecialchars($this->data['databaseRow']['uid']) . '"'; |
|
86 | + $containerTemplateHtml[] = 'data-command="' . htmlspecialchars($this->data['command']) . '"'; |
|
87 | + $containerTemplateHtml[] = 'data-tablename="' . htmlspecialchars($this->data['tableName']) . '"'; |
|
88 | + $containerTemplateHtml[] = 'data-fieldname="' . htmlspecialchars($this->data['fieldName']) . '"'; |
|
89 | + $containerTemplateHtml[] = 'data-recordtypevalue="' . $this->data['recordTypeValue'] . '"'; |
|
90 | + $containerTemplateHtml[] = 'data-datastructureidentifier="' . htmlspecialchars($flexFormDataStructureIdentifier) . '"'; |
|
91 | + $containerTemplateHtml[] = 'data-flexformsheetname="' . htmlspecialchars($flexFormSheetName) . '"'; |
|
92 | + $containerTemplateHtml[] = 'data-flexformfieldname="' . htmlspecialchars($flexFormFieldName) . '"'; |
|
93 | + $containerTemplateHtml[] = 'data-flexformcontainername="' . htmlspecialchars($flexFormContainerName) . '"'; |
|
94 | 94 | $containerTemplateHtml[] = '>'; |
95 | - $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
96 | - $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
95 | + $containerTemplateHtml[] = $iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render(); |
|
96 | + $containerTemplateHtml[] = htmlspecialchars(GeneralUtility::fixed_lgd_cs($containerTitle, 30)); |
|
97 | 97 | $containerTemplateHtml[] = '</a>'; |
98 | 98 | $containerTemplatesHtml[] = implode(LF, $containerTemplateHtml); |
99 | 99 | } |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | $createElementsHtml = []; |
102 | 102 | if ($userHasAccessToDefaultLanguage) { |
103 | 103 | $createElementsHtml[] = '<div class="t3-form-field-add-flexsection">'; |
104 | - $createElementsHtml[] = '<div class="btn-group">'; |
|
105 | - $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
106 | - $createElementsHtml[] = '</div>'; |
|
104 | + $createElementsHtml[] = '<div class="btn-group">'; |
|
105 | + $createElementsHtml[] = implode('', $containerTemplatesHtml); |
|
106 | + $createElementsHtml[] = '</div>'; |
|
107 | 107 | $createElementsHtml[] = '</div>'; |
108 | 108 | } |
109 | 109 | |
@@ -116,27 +116,27 @@ discard block |
||
116 | 116 | $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.toggleall')); |
117 | 117 | $html = []; |
118 | 118 | $html[] = '<div class="panel panel-tab">'; |
119 | - $html[] = '<div class="panel-body">'; |
|
120 | - $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
121 | - $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
122 | - $html[] = '<h4>'; |
|
123 | - $html[] = htmlspecialchars($sectionTitle); |
|
124 | - $html[] = '</h4>'; |
|
125 | - $html[] = '</div>'; |
|
126 | - $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
127 | - $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
128 | - $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
129 | - $html[] = '</a>'; |
|
130 | - $html[] = '</div>'; |
|
131 | - $html[] = '<div'; |
|
132 | - $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
133 | - $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
134 | - $html[] = '>'; |
|
135 | - $html[] = $resultArray['html']; |
|
136 | - $html[] = '</div>'; |
|
137 | - $html[] = implode(LF, $createElementsHtml); |
|
138 | - $html[] = '</div>'; |
|
139 | - $html[] = '</div>'; |
|
119 | + $html[] = '<div class="panel-body">'; |
|
120 | + $html[] = '<div class="t3-form-field-container t3-form-flex">'; |
|
121 | + $html[] = '<div class="t3-form-field-label-flexsection">'; |
|
122 | + $html[] = '<h4>'; |
|
123 | + $html[] = htmlspecialchars($sectionTitle); |
|
124 | + $html[] = '</h4>'; |
|
125 | + $html[] = '</div>'; |
|
126 | + $html[] = '<div class="t3js-form-field-toggle-flexsection t3-form-flexsection-toggle">'; |
|
127 | + $html[] = '<a class="btn btn-default" href="#" title="' . $toggleAll . '">'; |
|
128 | + $html[] = $iconFactory->getIcon('actions-move-right', Icon::SIZE_SMALL)->render() . $toggleAll; |
|
129 | + $html[] = '</a>'; |
|
130 | + $html[] = '</div>'; |
|
131 | + $html[] = '<div'; |
|
132 | + $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
133 | + $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
134 | + $html[] = '>'; |
|
135 | + $html[] = $resultArray['html']; |
|
136 | + $html[] = '</div>'; |
|
137 | + $html[] = implode(LF, $createElementsHtml); |
|
138 | + $html[] = '</div>'; |
|
139 | + $html[] = '</div>'; |
|
140 | 140 | $html[] = '</div>'; |
141 | 141 | |
142 | 142 | $resultArray['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 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
5 | 5 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $subPartColumns = array_filter( |
54 | 54 | $tableIndexes, |
55 | - function ($column) { |
|
55 | + function($column) { |
|
56 | 56 | return $column['Sub_Part']; |
57 | 57 | } |
58 | 58 | ); |