@@ -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,28 +116,28 @@ discard block |
||
116 | 116 | $toggleAll = htmlspecialchars($languageService->sL('LLL:EXT:core/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[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
133 | - $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
134 | - $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
135 | - $html[] = '>'; |
|
136 | - $html[] = $resultArray['html']; |
|
137 | - $html[] = '</div>'; |
|
138 | - $html[] = implode(LF, $createElementsHtml); |
|
139 | - $html[] = '</div>'; |
|
140 | - $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[] = 'id="flexform-container-' . htmlspecialchars($flexFormFieldName) . '"'; |
|
133 | + $html[] = 'class="panel-group panel-hover t3-form-field-container-flexsection t3-flex-container"'; |
|
134 | + $html[] = 'data-t3-flex-allow-restructure="' . ($userHasAccessToDefaultLanguage ? '1' : '0') . '"'; |
|
135 | + $html[] = '>'; |
|
136 | + $html[] = $resultArray['html']; |
|
137 | + $html[] = '</div>'; |
|
138 | + $html[] = implode(LF, $createElementsHtml); |
|
139 | + $html[] = '</div>'; |
|
140 | + $html[] = '</div>'; |
|
141 | 141 | $html[] = '</div>'; |
142 | 142 | |
143 | 143 | $resultArray['html'] = implode(LF, $html); |
@@ -3572,7 +3572,7 @@ discard block |
||
3572 | 3572 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
3573 | 3573 | $replaceCount = 0; |
3574 | 3574 | |
3575 | - $replaceCallback = function ($match) use ($replaceArray, $search, &$replaceCount) { |
|
3575 | + $replaceCallback = function($match) use ($replaceArray, $search, &$replaceCount) { |
|
3576 | 3576 | $replaceCount++; |
3577 | 3577 | return preg_replace($search, $replaceArray[$replaceCount - 1][0], $match[0]); |
3578 | 3578 | }; |
@@ -3590,7 +3590,7 @@ discard block |
||
3590 | 3590 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
3591 | 3591 | $replaceCount = 0; |
3592 | 3592 | |
3593 | - $replaceCallback = function () use ($replaceArray, &$replaceCount) { |
|
3593 | + $replaceCallback = function() use ($replaceArray, &$replaceCount) { |
|
3594 | 3594 | $replaceCount++; |
3595 | 3595 | return $replaceArray[$replaceCount - 1][0]; |
3596 | 3596 | }; |
@@ -6073,7 +6073,7 @@ discard block |
||
6073 | 6073 | if (!$this->getFrontendBackendUser() instanceof AbstractUserAuthentication) { |
6074 | 6074 | $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('cache_treelist'); |
6075 | 6075 | try { |
6076 | - $connection->transactional(function ($connection) use ($cacheEntry) { |
|
6076 | + $connection->transactional(function($connection) use ($cacheEntry) { |
|
6077 | 6077 | $connection->insert('cache_treelist', $cacheEntry); |
6078 | 6078 | }); |
6079 | 6079 | } catch (\Throwable $e) { |
@@ -6260,7 +6260,7 @@ discard block |
||
6260 | 6260 | $conf['recursive'] = (int)$conf['recursive']; |
6261 | 6261 | if ($conf['recursive'] > 0) { |
6262 | 6262 | $pidList = GeneralUtility::trimExplode(',', $conf['pidInList'], true); |
6263 | - array_walk($pidList, function (&$storagePid) { |
|
6263 | + array_walk($pidList, function(&$storagePid) { |
|
6264 | 6264 | if ($storagePid === 'this') { |
6265 | 6265 | $storagePid = $this->getTypoScriptFrontendController()->id; |
6266 | 6266 | } |
@@ -159,7 +159,7 @@ |
||
159 | 159 | $importedContent = $this->loadAndParse($import['resource'], $fileName); |
160 | 160 | // override the imported content with the one from the current file |
161 | 161 | $content = ArrayUtility::replaceAndAppendScalarValuesRecursive($importedContent, $content); |
162 | - } catch (ParseException|YamlParseException|YamlFileLoadingException $exception) { |
|
162 | + } catch (ParseException | YamlParseException | YamlFileLoadingException $exception) { |
|
163 | 163 | $this->logger->error($exception->getMessage(), ['exception' => $exception]); |
164 | 164 | } |
165 | 165 | } |
@@ -370,7 +370,7 @@ |
||
370 | 370 | TYPO3.ModuleMenu.App.showModule(modName, addGetVars); |
371 | 371 | } |
372 | 372 | ' . $this->setStartupModule($request) |
373 | - . $this->handlePageEditing($request), |
|
373 | + . $this->handlePageEditing($request), |
|
374 | 374 | false |
375 | 375 | ); |
376 | 376 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $result['databaseRow'] |
83 | 83 | ); |
84 | 84 | $dataStructureArray = $flexFormTools->parseDataStructureByIdentifier($dataStructureIdentifier); |
85 | - } catch (InvalidParentRowException|InvalidParentRowLoopException|InvalidParentRowRootException|InvalidPointerFieldValueException|InvalidIdentifierException $e) { |
|
85 | + } catch (InvalidParentRowException | InvalidParentRowLoopException | InvalidParentRowRootException | InvalidPointerFieldValueException | InvalidIdentifierException $e) { |
|
86 | 86 | $dataStructureIdentifier = null; |
87 | 87 | } finally { |
88 | 88 | // Add the identifier to TCA to use it later during rendering |
@@ -130,7 +130,7 @@ |
||
130 | 130 | } |
131 | 131 | } else { |
132 | 132 | // This is when the public path is a subfolder (e.g. public/ or web/) |
133 | - $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath())+1); |
|
133 | + $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath()) + 1); |
|
134 | 134 | |
135 | 135 | $publicPathSubStructure = [ |
136 | 136 | [ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | 'active' => extension_loaded('Zend OPcache') && ini_get('opcache.enable') === '1', |
36 | 36 | 'version' => phpversion('Zend OPcache'), |
37 | 37 | 'warning' => self::isClearable() ? false : 'Either opcache_invalidate or opcache_reset are disabled in this installation. Clearing will not work.', |
38 | - 'clearCallback' => static function ($fileAbsPath) { |
|
38 | + 'clearCallback' => static function($fileAbsPath) { |
|
39 | 39 | if (self::isClearable()) { |
40 | 40 | if ($fileAbsPath !== null) { |
41 | 41 | opcache_invalidate($fileAbsPath); |
@@ -1142,7 +1142,7 @@ discard block |
||
1142 | 1142 | { |
1143 | 1143 | return array_filter( |
1144 | 1144 | $items, |
1145 | - function (DataMapItem $item) use ($type) { |
|
1145 | + function(DataMapItem $item) use ($type) { |
|
1146 | 1146 | return $item->getType() === $type; |
1147 | 1147 | } |
1148 | 1148 | ); |
@@ -1158,7 +1158,7 @@ discard block |
||
1158 | 1158 | { |
1159 | 1159 | $ids = array_filter( |
1160 | 1160 | $ids, |
1161 | - function ($id) { |
|
1161 | + function($id) { |
|
1162 | 1162 | return MathUtility::canBeInterpretedAsInteger($id); |
1163 | 1163 | } |
1164 | 1164 | ); |
@@ -1176,7 +1176,7 @@ discard block |
||
1176 | 1176 | { |
1177 | 1177 | return array_filter( |
1178 | 1178 | $ids, |
1179 | - function ($id) use ($tableName) { |
|
1179 | + function($id) use ($tableName) { |
|
1180 | 1180 | return $this->findItem($tableName, $id) === null; |
1181 | 1181 | } |
1182 | 1182 | ); |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | protected function mapRelationItemId(array $relationItems) |
1192 | 1192 | { |
1193 | 1193 | return array_map( |
1194 | - function (array $relationItem) { |
|
1194 | + function(array $relationItem) { |
|
1195 | 1195 | return (int)$relationItem['id']; |
1196 | 1196 | }, |
1197 | 1197 | $relationItems |
@@ -195,7 +195,7 @@ |
||
195 | 195 | $sheetData = []; |
196 | 196 | $sheetData['data'] = array_filter( |
197 | 197 | $flexForm['data'] ?? [], |
198 | - function ($key) use ($sheetIdentifier) { |
|
198 | + function($key) use ($sheetIdentifier) { |
|
199 | 199 | return $key === $sheetIdentifier; |
200 | 200 | }, |
201 | 201 | ARRAY_FILTER_USE_KEY |