@@ -184,7 +184,7 @@ |
||
184 | 184 | protected function resetConstraintsOnMemoryExhaustionError() |
185 | 185 | { |
186 | 186 | $reservedMemory = new \SplFixedArray(187500); // 3M |
187 | - register_shutdown_function(function () use (&$reservedMemory): void { |
|
187 | + register_shutdown_function(function() use (&$reservedMemory): void { |
|
188 | 188 | $reservedMemory = null; // free the reserved memory |
189 | 189 | $error = error_get_last(); |
190 | 190 | if (strpos($error['message'], 'Allowed memory size of') !== false) { |
@@ -2785,7 +2785,7 @@ |
||
2785 | 2785 | $this->processingFolder = $this->createFolderObject($data['identifier'], $data['name']); |
2786 | 2786 | } |
2787 | 2787 | } |
2788 | - } catch (InsufficientFolderWritePermissionsException|ResourcePermissionsUnavailableException $e) { |
|
2788 | + } catch (InsufficientFolderWritePermissionsException | ResourcePermissionsUnavailableException $e) { |
|
2789 | 2789 | $this->processingFolder = GeneralUtility::makeInstance( |
2790 | 2790 | InaccessibleFolder::class, |
2791 | 2791 | $this, |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $combinedIdentifier = ($data['storage'] ?? '0') . ':' . $data['identifier']; |
69 | 69 | try { |
70 | 70 | $folder = $this->getResourceFactory()->getFolderObjectFromCombinedIdentifier($combinedIdentifier); |
71 | - } catch (FolderDoesNotExistException|InsufficientFolderAccessPermissionsException $e) { |
|
71 | + } catch (FolderDoesNotExistException | InsufficientFolderAccessPermissionsException $e) { |
|
72 | 72 | $folder = null; |
73 | 73 | } |
74 | 74 | return ['folder' => $folder]; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | $constraints = []; |
69 | 69 | if ($demand->hasSourceHosts()) { |
70 | - $constraints[] =$queryBuilder->expr()->in( |
|
70 | + $constraints[] = $queryBuilder->expr()->in( |
|
71 | 71 | 'source_host', |
72 | 72 | $queryBuilder->createNamedParameter($demand->getSourceHosts(), Connection::PARAM_STR_ARRAY) |
73 | 73 | ); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | */ |
109 | 109 | protected function checkPermissionOfWidgets(array $widgets): array |
110 | 110 | { |
111 | - return array_filter($widgets, function ($identifier) { |
|
111 | + return array_filter($widgets, function($identifier) { |
|
112 | 112 | return $this->getBackendUser()->check('available_widgets', $identifier); |
113 | 113 | }, ARRAY_FILTER_USE_KEY); |
114 | 114 | } |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | if ($defaultLanguageValue !== '') { |
73 | 73 | $iconIdentifier = $this->data['systemLanguageRows'][0]['flagIconIdentifier'] ?: 'flags-multiple'; |
74 | 74 | $html[] = '<div class="t3-form-original-language">'; |
75 | - $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
76 | - $html[] = $this->previewFieldValue($defaultLanguageValue); |
|
75 | + $html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render(); |
|
76 | + $html[] = $this->previewFieldValue($defaultLanguageValue); |
|
77 | 77 | $html[] = '</div>'; |
78 | 78 | } |
79 | 79 | $additionalPreviewLanguages = $this->data['additionalLanguageRows']; |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | ) ?? ''; |
88 | 88 | if ($defaultLanguageValue !== '') { |
89 | 89 | $html[] = '<div class="t3-form-original-language">'; |
90 | - $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
91 | - $html[] = $this->previewFieldValue($defaultLanguageValue); |
|
90 | + $html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][$previewLanguage['sys_language_uid']]['flagIconIdentifier'], Icon::SIZE_SMALL)->render(); |
|
91 | + $html[] = $this->previewFieldValue($defaultLanguageValue); |
|
92 | 92 | $html[] = '</div>'; |
93 | 93 | } |
94 | 94 | } |
@@ -70,17 +70,17 @@ |
||
70 | 70 | BackendUtility::getProcessedValue($table, $fieldName, $defaultLanguageRow[$fieldName], 0, true) |
71 | 71 | ); |
72 | 72 | $html[] = '<div class="t3-form-original-language-diff">'; |
73 | - $html[] = '<div class="t3-form-original-language-diffheader">'; |
|
74 | - $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.changeInOrig')); |
|
75 | - $html[] = '</div>'; |
|
76 | - $html[] = '<div class="t3-form-original-language-diffcontent">'; |
|
77 | - $html[] = '<div class="diff">'; |
|
78 | - $html[] = '<div class="diff-item">'; |
|
79 | - $html[] = '<div class="diff-item-result diff-item-result-inline">' . $diffResult . '</div>'; |
|
80 | - $html[] = '</div>'; |
|
81 | - $html[] = '</div>'; |
|
82 | - $html[] = '</div>'; |
|
83 | - $html[] = '</div>'; |
|
73 | + $html[] = '<div class="t3-form-original-language-diffheader">'; |
|
74 | + $html[] = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.changeInOrig')); |
|
75 | + $html[] = '</div>'; |
|
76 | + $html[] = '<div class="t3-form-original-language-diffcontent">'; |
|
77 | + $html[] = '<div class="diff">'; |
|
78 | + $html[] = '<div class="diff-item">'; |
|
79 | + $html[] = '<div class="diff-item-result diff-item-result-inline">' . $diffResult . '</div>'; |
|
80 | + $html[] = '</div>'; |
|
81 | + $html[] = '</div>'; |
|
82 | + $html[] = '</div>'; |
|
83 | + $html[] = '</div>'; |
|
84 | 84 | } |
85 | 85 | $result['html'] = implode(LF, $html); |
86 | 86 | return $result; |
@@ -128,9 +128,9 @@ |
||
128 | 128 | |
129 | 129 | $html = []; |
130 | 130 | $html[] = '<a ' . GeneralUtility::implodeAttributes($linkAttributes, true) . '>'; |
131 | - $html[] = '<span title="' . htmlspecialchars($title) . '">'; |
|
132 | - $html[] = $iconFactory->getIcon($icon, Icon::SIZE_SMALL)->render(); |
|
133 | - $html[] = '</span>'; |
|
131 | + $html[] = '<span title="' . htmlspecialchars($title) . '">'; |
|
132 | + $html[] = $iconFactory->getIcon($icon, Icon::SIZE_SMALL)->render(); |
|
133 | + $html[] = '</span>'; |
|
134 | 134 | $html[] = '</a>'; |
135 | 135 | |
136 | 136 | $finalControlResult = $this->initializeResultArray(); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | // Ignore new indexes that work on columns that need changes |
163 | 163 | foreach ($changedTable->addedIndexes as $indexName => $addedIndex) { |
164 | 164 | $indexColumns = array_map( |
165 | - function ($columnName) { |
|
165 | + function($columnName) { |
|
166 | 166 | // Strip MySQL prefix length information to get real column names |
167 | 167 | $columnName = preg_replace('/\(\d+\)$/', '', $columnName) ?? ''; |
168 | 168 | // Strip mssql '[' and ']' from column names |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $tablesForConnection = array_keys( |
257 | 257 | array_filter( |
258 | 258 | $GLOBALS['TYPO3_CONF_VARS']['DB']['TableMapping'], |
259 | - function ($tableConnectionName) use ($connectionName) { |
|
259 | + function($tableConnectionName) use ($connectionName) { |
|
260 | 260 | return $tableConnectionName === $connectionName; |
261 | 261 | } |
262 | 262 | ) |
@@ -1096,7 +1096,7 @@ discard block |
||
1096 | 1096 | { |
1097 | 1097 | return array_filter( |
1098 | 1098 | $tableDiffs, |
1099 | - function ($table) use ($validTableNames) { |
|
1099 | + function($table) use ($validTableNames) { |
|
1100 | 1100 | if ($table instanceof Table) { |
1101 | 1101 | $tableName = $table->getName(); |
1102 | 1102 | } else { |
@@ -1141,7 +1141,7 @@ discard block |
||
1141 | 1141 | |
1142 | 1142 | // Remove the length information from column names for indexes if required. |
1143 | 1143 | $cleanedColumnNames = array_map( |
1144 | - function (string $columnName) use ($connection) { |
|
1144 | + function(string $columnName) use ($connection) { |
|
1145 | 1145 | if ($connection->getDatabasePlatform() instanceof MySqlPlatform) { |
1146 | 1146 | // Returning the unquoted, unmodified version of the column name since |
1147 | 1147 | // it can include the length information for BLOB/TEXT columns which |