@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | return array_keys( |
84 | 84 | array_filter( |
85 | 85 | $GLOBALS['TCA'][$tableName]['columns'] ?? [], |
86 | - function (array $fieldConfiguration) { |
|
86 | + function(array $fieldConfiguration) { |
|
87 | 87 | return !empty( |
88 | 88 | $fieldConfiguration['config'] |
89 | 89 | ['behaviour']['allowLanguageSynchronization'] |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | } |
292 | 292 | return array_filter( |
293 | 293 | $fieldNames, |
294 | - function ($fieldName) use ($desiredState) { |
|
294 | + function($fieldName) use ($desiredState) { |
|
295 | 295 | return $this->states[$fieldName] === $desiredState; |
296 | 296 | } |
297 | 297 | ); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | } |
97 | 97 | |
98 | 98 | // Remove any item that is not an array (means, the stored uid is not available anymore) |
99 | - $mostRecentUsers = array_filter($mostRecentUsers, function ($record) { |
|
99 | + $mostRecentUsers = array_filter($mostRecentUsers, function($record) { |
|
100 | 100 | return is_array($record); |
101 | 101 | }); |
102 | 102 |
@@ -69,26 +69,26 @@ |
||
69 | 69 | $selectedItem['uid'] |
70 | 70 | ); |
71 | 71 | $recordsOverviewHtml[] = '<tr>'; |
72 | - $recordsOverviewHtml[] = '<td class="col-icon">'; |
|
73 | - $recordsOverviewHtml[] = $linkedIcon; |
|
74 | - $recordsOverviewHtml[] = '</td>'; |
|
75 | - $recordsOverviewHtml[] = '<td class="col-title">'; |
|
76 | - $recordsOverviewHtml[] = $linkedTitle; |
|
77 | - $recordsOverviewHtml[] = '<span class="text-muted">'; |
|
78 | - $recordsOverviewHtml[] = ' [' . $selectedItem['uid'] . ']'; |
|
79 | - $recordsOverviewHtml[] = '</span>'; |
|
80 | - $recordsOverviewHtml[] = '</td>'; |
|
72 | + $recordsOverviewHtml[] = '<td class="col-icon">'; |
|
73 | + $recordsOverviewHtml[] = $linkedIcon; |
|
74 | + $recordsOverviewHtml[] = '</td>'; |
|
75 | + $recordsOverviewHtml[] = '<td class="col-title">'; |
|
76 | + $recordsOverviewHtml[] = $linkedTitle; |
|
77 | + $recordsOverviewHtml[] = '<span class="text-muted">'; |
|
78 | + $recordsOverviewHtml[] = ' [' . $selectedItem['uid'] . ']'; |
|
79 | + $recordsOverviewHtml[] = '</span>'; |
|
80 | + $recordsOverviewHtml[] = '</td>'; |
|
81 | 81 | $recordsOverviewHtml[] = '</tr>'; |
82 | 82 | } |
83 | 83 | |
84 | 84 | $html = []; |
85 | 85 | if (!empty($recordsOverviewHtml)) { |
86 | 86 | $html[] = '<div class="table-fit">'; |
87 | - $html[] = '<table class="table table-white">'; |
|
88 | - $html[] = '<tbody>'; |
|
89 | - $html[] = implode(LF, $recordsOverviewHtml); |
|
90 | - $html[] = '</tbody>'; |
|
91 | - $html[] = '</table>'; |
|
87 | + $html[] = '<table class="table table-white">'; |
|
88 | + $html[] = '<tbody>'; |
|
89 | + $html[] = implode(LF, $recordsOverviewHtml); |
|
90 | + $html[] = '</tbody>'; |
|
91 | + $html[] = '</table>'; |
|
92 | 92 | $html[] = '</div>'; |
93 | 93 | } |
94 | 94 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | public function __toString() |
110 | 110 | { |
111 | - $filterNonPersistentKeys = function ($key) { |
|
111 | + $filterNonPersistentKeys = function($key) { |
|
112 | 112 | if (in_array($key, ['id', 'title', 'allowedAspectRatios', 'coverAreas'], true)) { |
113 | 113 | return false; |
114 | 114 | } |
@@ -52,7 +52,7 @@ |
||
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 | ); |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | $requestArguments = $this->request->getArguments(); |
415 | 415 | |
416 | 416 | $propertyPathsForWhichPropertyMappingShouldHappen = []; |
417 | - $registerPropertyPaths = function ($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
417 | + $registerPropertyPaths = function($propertyPath) use (&$propertyPathsForWhichPropertyMappingShouldHappen) { |
|
418 | 418 | $propertyPathParts = explode('.', $propertyPath); |
419 | 419 | $accumulatedPropertyPathParts = []; |
420 | 420 | foreach ($propertyPathParts as $propertyPathPart) { |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | } |
463 | 463 | |
464 | 464 | // The more parts the path has, the more early it is processed |
465 | - usort($propertyPathsForWhichPropertyMappingShouldHappen, function ($a, $b) { |
|
465 | + usort($propertyPathsForWhichPropertyMappingShouldHappen, function($a, $b) { |
|
466 | 466 | return substr_count($b, '.') - substr_count($a, '.'); |
467 | 467 | }); |
468 | 468 |
@@ -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); |
@@ -432,7 +432,7 @@ |
||
432 | 432 | { |
433 | 433 | if (isset($wizardGroup[$key])) { |
434 | 434 | $wizardGroup[$key] = GeneralUtility::trimExplode(',', $wizardGroup[$key]); |
435 | - $wizardGroup[$key] = array_map(function ($s) { |
|
435 | + $wizardGroup[$key] = array_map(function($s) { |
|
436 | 436 | return $s . '.'; |
437 | 437 | }, $wizardGroup[$key]); |
438 | 438 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | { |
195 | 195 | return array_filter( |
196 | 196 | $record, |
197 | - function (string $propertyName): bool { |
|
197 | + function(string $propertyName): bool { |
|
198 | 198 | return $propertyName[0] !== '_'; |
199 | 199 | }, |
200 | 200 | ARRAY_FILTER_USE_KEY |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | { |
212 | 212 | return array_filter( |
213 | 213 | $propertyNames, |
214 | - function (string $propertyName): bool { |
|
214 | + function(string $propertyName): bool { |
|
215 | 215 | return $propertyName[0] !== '_'; |
216 | 216 | } |
217 | 217 | ); |
@@ -418,8 +418,8 @@ |
||
418 | 418 | if (!$statement) { |
419 | 419 | $queryBuilder = static::getQueryBuilderForTable('pages'); |
420 | 420 | $queryBuilder->getRestrictions() |
421 | - ->removeAll() |
|
422 | - ->add(GeneralUtility::makeInstance(DeletedRestriction::class)); |
|
421 | + ->removeAll() |
|
422 | + ->add(GeneralUtility::makeInstance(DeletedRestriction::class)); |
|
423 | 423 | |
424 | 424 | $queryBuilder |
425 | 425 | ->select( |