@@ -3846,7 +3846,7 @@ discard block |
||
3846 | 3846 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
3847 | 3847 | $replaceCount = 0; |
3848 | 3848 | |
3849 | - $replaceCallback = function ($match) use ($replaceArray, $search, &$replaceCount) { |
|
3849 | + $replaceCallback = function($match) use ($replaceArray, $search, &$replaceCount) { |
|
3850 | 3850 | $replaceCount++; |
3851 | 3851 | return preg_replace($search, $replaceArray[$replaceCount - 1][0], $match[0]); |
3852 | 3852 | }; |
@@ -3865,7 +3865,7 @@ discard block |
||
3865 | 3865 | $replaceArray = $typoScriptService->explodeConfigurationForOptionSplit([$replace], $splitCount); |
3866 | 3866 | $replaceCount = 0; |
3867 | 3867 | |
3868 | - $replaceCallback = function () use ($replaceArray, $search, &$replaceCount) { |
|
3868 | + $replaceCallback = function() use ($replaceArray, $search, &$replaceCount) { |
|
3869 | 3869 | $replaceCount++; |
3870 | 3870 | return $replaceArray[$replaceCount - 1][0]; |
3871 | 3871 | }; |
@@ -6483,7 +6483,7 @@ discard block |
||
6483 | 6483 | $conf['recursive'] = (int)$conf['recursive']; |
6484 | 6484 | if ($conf['recursive'] > 0) { |
6485 | 6485 | $pidList = GeneralUtility::trimExplode(',', $conf['pidInList'], true); |
6486 | - array_walk($pidList, function (&$storagePid) { |
|
6486 | + array_walk($pidList, function(&$storagePid) { |
|
6487 | 6487 | if ($storagePid === 'this') { |
6488 | 6488 | $storagePid = $this->getTypoScriptFrontendController()->id; |
6489 | 6489 | } |
@@ -883,7 +883,7 @@ |
||
883 | 883 | $filePointerPathParts = explode('/', substr($filename, 4)); |
884 | 884 | |
885 | 885 | // remove file part, determine whether to load setup or constants |
886 | - list($includeType, ) = explode('.', array_pop($filePointerPathParts)); |
|
886 | + list($includeType,) = explode('.', array_pop($filePointerPathParts)); |
|
887 | 887 | |
888 | 888 | if (in_array($includeType, ['setup', 'constants'])) { |
889 | 889 | // adapt extension key to required format (no underscores) |
@@ -172,8 +172,8 @@ |
||
172 | 172 | |
173 | 173 | // Check for remaining edges in the graph |
174 | 174 | $cycles = []; |
175 | - array_walk($dependencyGraph, function ($dependencies, $fromId) use (&$cycles) { |
|
176 | - array_walk($dependencies, function ($dependency, $toId) use (&$cycles, $fromId) { |
|
175 | + array_walk($dependencyGraph, function($dependencies, $fromId) use (&$cycles) { |
|
176 | + array_walk($dependencies, function($dependency, $toId) use (&$cycles, $fromId) { |
|
177 | 177 | if ($dependency) { |
178 | 178 | $cycles[] = $fromId . '->' . $toId; |
179 | 179 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | foreach ($headers as $name => $headerValues) { |
320 | 320 | $this->validateHeaderName($name); |
321 | 321 | // check if all values are correct |
322 | - array_walk($headerValues, function ($value, $key, Message $messageObject) { |
|
322 | + array_walk($headerValues, function($value, $key, Message $messageObject) { |
|
323 | 323 | if (!$messageObject->isValidHeaderValue($value)) { |
324 | 324 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717268); |
325 | 325 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | */ |
360 | 360 | protected function arrayContainsOnlyStrings(array $data) |
361 | 361 | { |
362 | - return array_reduce($data, function ($original, $item) { |
|
362 | + return array_reduce($data, function($original, $item) { |
|
363 | 363 | return is_string($item) ? $original : false; |
364 | 364 | }, true); |
365 | 365 | } |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | protected function validateHeaderValues(array $values) |
375 | 375 | { |
376 | - array_walk($values, function ($value, $key, Message $messageObject) { |
|
376 | + array_walk($values, function($value, $key, Message $messageObject) { |
|
377 | 377 | if (!$messageObject->isValidHeaderValue($value)) { |
378 | 378 | throw new \InvalidArgumentException('Invalid header value for header "' . $key . '"', 1436717269); |
379 | 379 | } |
@@ -1091,7 +1091,7 @@ discard block |
||
1091 | 1091 | { |
1092 | 1092 | return array_filter( |
1093 | 1093 | $items, |
1094 | - function (DataMapItem $item) use ($type) { |
|
1094 | + function(DataMapItem $item) use ($type) { |
|
1095 | 1095 | return $item->getType() === $type; |
1096 | 1096 | } |
1097 | 1097 | ); |
@@ -1108,7 +1108,7 @@ discard block |
||
1108 | 1108 | { |
1109 | 1109 | return array_filter( |
1110 | 1110 | $ids, |
1111 | - function ($id) use ($numeric) { |
|
1111 | + function($id) use ($numeric) { |
|
1112 | 1112 | return MathUtility::canBeInterpretedAsInteger($id) === $numeric; |
1113 | 1113 | } |
1114 | 1114 | ); |
@@ -1125,7 +1125,7 @@ discard block |
||
1125 | 1125 | { |
1126 | 1126 | return array_filter( |
1127 | 1127 | $ids, |
1128 | - function ($id) use ($tableName) { |
|
1128 | + function($id) use ($tableName) { |
|
1129 | 1129 | return $this->findItem($tableName, $id) === null; |
1130 | 1130 | } |
1131 | 1131 | ); |
@@ -1140,7 +1140,7 @@ discard block |
||
1140 | 1140 | protected function mapRelationItemId(array $relationItems) |
1141 | 1141 | { |
1142 | 1142 | return array_map( |
1143 | - function (array $relationItem) { |
|
1143 | + function(array $relationItem) { |
|
1144 | 1144 | return (int)$relationItem['id']; |
1145 | 1145 | }, |
1146 | 1146 | $relationItems |
@@ -2326,7 +2326,7 @@ discard block |
||
2326 | 2326 | if ($status === 'update') { |
2327 | 2327 | $dbAnalysis->writeMM($tcaFieldConf['MM'], $id, 0); |
2328 | 2328 | $newFiles = implode(',', $dbAnalysis->getValueArray()); |
2329 | - list(, , $recFieldName) = explode(':', $recFID); |
|
2329 | + list(,, $recFieldName) = explode(':', $recFID); |
|
2330 | 2330 | if ($currentFilesForHistory != $newFiles) { |
2331 | 2331 | $this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory; |
2332 | 2332 | $this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$recFieldName] = $newFiles; |
@@ -2575,7 +2575,7 @@ discard block |
||
2575 | 2575 | */ |
2576 | 2576 | public function checkValue_inline($res, $value, $tcaFieldConf, $PP, $field, array $additionalData = null) |
2577 | 2577 | { |
2578 | - list($table, $id, , $status) = $PP; |
|
2578 | + list($table, $id,, $status) = $PP; |
|
2579 | 2579 | $this->checkValueForInline($res, $value, $tcaFieldConf, $table, $id, $status, $field, $additionalData); |
2580 | 2580 | } |
2581 | 2581 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | public function renderTceformsSelectDropdown(&$PA) |
42 | 42 | { |
43 | 43 | $allowedStorageIds = array_map( |
44 | - function (\TYPO3\CMS\Core\Resource\ResourceStorage $storage) { |
|
44 | + function(\TYPO3\CMS\Core\Resource\ResourceStorage $storage) { |
|
45 | 45 | return $storage->getUid(); |
46 | 46 | }, |
47 | 47 | $this->getBackendUserAuthentication()->getFileStorages() |
@@ -286,7 +286,7 @@ |
||
286 | 286 | // VERY simple quoting of tags is sufficient here for performance. Tags are already |
287 | 287 | // validated to not contain any bad characters, e.g. they are automatically generated |
288 | 288 | // inside this class and suffixed with a pure integer enforced by DB. |
289 | - $quotedTagList = array_map(function ($value) { |
|
289 | + $quotedTagList = array_map(function($value) { |
|
290 | 290 | return '\'' . $value . '\''; |
291 | 291 | }, $tags); |
292 | 292 |
@@ -384,10 +384,10 @@ |
||
384 | 384 | |
385 | 385 | $content = []; |
386 | 386 | $content[] = '<div class="' . implode(' ', $paletteFieldClasses) . '">'; |
387 | - $content[] = '<label class="t3js-formengine-label">'; |
|
388 | - $content[] = $label; |
|
389 | - $content[] = '</label>'; |
|
390 | - $content[] = $element['fieldHtml']; |
|
387 | + $content[] = '<label class="t3js-formengine-label">'; |
|
388 | + $content[] = $label; |
|
389 | + $content[] = '</label>'; |
|
390 | + $content[] = $element['fieldHtml']; |
|
391 | 391 | $content[] = '</div>'; |
392 | 392 | |
393 | 393 | return implode(LF, $content); |