@@ -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( |
@@ -248,7 +248,7 @@ |
||
248 | 248 | continue; |
249 | 249 | } |
250 | 250 | |
251 | - usort($formElementsByGroup[$groupName], function ($a, $b) { |
|
251 | + usort($formElementsByGroup[$groupName], function($a, $b) { |
|
252 | 252 | return $a['sorting'] - $b['sorting']; |
253 | 253 | }); |
254 | 254 | unset($formElementsByGroup[$groupName]['sorting']); |
@@ -240,7 +240,7 @@ |
||
240 | 240 | } |
241 | 241 | |
242 | 242 | // Normalize all items to "<table>_<uid>" format |
243 | - $currentValue = array_map(function ($item) { |
|
243 | + $currentValue = array_map(function($item) { |
|
244 | 244 | // Handle per-item table for "group" elements |
245 | 245 | if (is_array($item)) { |
246 | 246 | $item = $item['table'] . '_' . $item['uid']; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | // Define a lambda function to be applied to all members of this array dimension |
107 | 107 | // Call recursive if current value is of type array |
108 | 108 | // Write to $resultArray (by reference!) if types and value match |
109 | - $callback = function (&$value, $key) use ($needle, &$resultArray) { |
|
109 | + $callback = function(&$value, $key) use ($needle, &$resultArray) { |
|
110 | 110 | if ($value === $needle) { |
111 | 111 | $resultArray[$key] = $value; |
112 | 112 | } elseif (is_array($value)) { |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | if (empty($arrays)) { |
372 | 372 | return $arrays; |
373 | 373 | } |
374 | - $sortResult = uasort($arrays, function (array $a, array $b) use ($key, $ascending) { |
|
374 | + $sortResult = uasort($arrays, function(array $a, array $b) use ($key, $ascending) { |
|
375 | 375 | if (!isset($a[$key]) || !isset($b[$key])) { |
376 | 376 | throw new \RuntimeException('The specified sorting key "' . $key . '" is not available in the given array.', 1373727309); |
377 | 377 | } |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | */ |
848 | 848 | public static function filterRecursive(array $array, callable $callback = null): array |
849 | 849 | { |
850 | - $callback = $callback ?: function ($value) { |
|
850 | + $callback = $callback ?: function($value) { |
|
851 | 851 | return (bool)$value; |
852 | 852 | }; |
853 | 853 |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'dependencies' => $this->locales->getLocaleDependencies($iso), |
91 | 91 | ]; |
92 | 92 | } |
93 | - usort($languages, function ($a, $b) { |
|
93 | + usort($languages, function($a, $b) { |
|
94 | 94 | // Sort languages by name |
95 | 95 | if ($a['name'] === $b['name']) { |
96 | 96 | return 0; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | $extensions[] = $extension; |
153 | 153 | } |
154 | - usort($extensions, function ($a, $b) { |
|
154 | + usort($extensions, function($a, $b) { |
|
155 | 155 | // Sort extensions by key |
156 | 156 | if ($a['key'] === $b['key']) { |
157 | 157 | return 0; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $attributes[] = GeneralUtility::implodeAttributes($options['additionalAttributes'], true, true); |
82 | 82 | } |
83 | 83 | if (isset($options['data']) && is_array($options['data'])) { |
84 | - array_walk($options['data'], function (&$value, $key) { |
|
84 | + array_walk($options['data'], function(&$value, $key) { |
|
85 | 85 | $value = 'data-' . htmlspecialchars($key) . '="' . htmlspecialchars($value) . '"'; |
86 | 86 | }); |
87 | 87 | $attributes[] = implode(' ', $options['data']); |
@@ -1866,7 +1866,7 @@ discard block |
||
1866 | 1866 | $userGroupRecordPermissions = GeneralUtility::trimExplode(',', $this->groupData['file_permissions'] ?? '', true); |
1867 | 1867 | array_walk( |
1868 | 1868 | $userGroupRecordPermissions, |
1869 | - function ($permission) use (&$filePermissions) { |
|
1869 | + function($permission) use (&$filePermissions) { |
|
1870 | 1870 | $filePermissions[$permission] = true; |
1871 | 1871 | } |
1872 | 1872 | ); |
@@ -1876,7 +1876,7 @@ discard block |
||
1876 | 1876 | if (!empty($permissionsTsConfig)) { |
1877 | 1877 | array_walk( |
1878 | 1878 | $permissionsTsConfig, |
1879 | - function ($value, $permission) use (&$filePermissions) { |
|
1879 | + function($value, $permission) use (&$filePermissions) { |
|
1880 | 1880 | $filePermissions[$permission] = (bool)$value; |
1881 | 1881 | } |
1882 | 1882 | ); |
@@ -1905,7 +1905,7 @@ discard block |
||
1905 | 1905 | if (!empty($storageFilePermissions)) { |
1906 | 1906 | array_walk( |
1907 | 1907 | $storageFilePermissions, |
1908 | - function ($value, $permission) use (&$finalUserPermissions) { |
|
1908 | + function($value, $permission) use (&$finalUserPermissions) { |
|
1909 | 1909 | $finalUserPermissions[$permission] = (bool)$value; |
1910 | 1910 | } |
1911 | 1911 | ); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $additionalAttributes[] = GeneralUtility::implodeAttributes($options['additionalAttributes'], true, true); |
82 | 82 | } |
83 | 83 | if (isset($options['data']) && is_array($options['data'])) { |
84 | - array_walk($options['data'], function (&$value, $key) { |
|
84 | + array_walk($options['data'], function(&$value, $key) { |
|
85 | 85 | $value = 'data-' . htmlspecialchars($key) . '="' . htmlspecialchars($value) . '"'; |
86 | 86 | }); |
87 | 87 | $additionalAttributes[] = implode(' ', $options['data']); |