@@ -62,7 +62,7 @@ |
||
| 62 | 62 | 'message' => htmlspecialchars( |
| 63 | 63 | $this->getLanguageService()->sL('LLL:EXT:recordlist/Resources/Private/Language/locallang.xlf:updateColumnView.nothingUpdated') |
| 64 | 64 | ) |
| 65 | - ]); |
|
| 65 | + ]); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $backendUser = $this->getBackendUserAuthentication(); |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | // Sort standard columns by their resolved label |
| 168 | - usort($columns, static fn ($a, $b) => $a['label'] <=> $b['label']); |
|
| 168 | + usort($columns, static fn($a, $b) => $a['label'] <=> $b['label']); |
|
| 169 | 169 | |
| 170 | 170 | // Disabled columns go first, followed by standard columns |
| 171 | 171 | // and special columns, which do not have a label. |
@@ -1079,7 +1079,7 @@ discard block |
||
| 1079 | 1079 | } |
| 1080 | 1080 | |
| 1081 | 1081 | $tagAttributes = array_map( |
| 1082 | - function ($attributeValue) { |
|
| 1082 | + function($attributeValue) { |
|
| 1083 | 1083 | if (is_array($attributeValue)) { |
| 1084 | 1084 | return implode(' ', $attributeValue); |
| 1085 | 1085 | } |
@@ -1374,7 +1374,7 @@ discard block |
||
| 1374 | 1374 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
| 1375 | 1375 | 'currentPage' => $currentPage, |
| 1376 | 1376 | 'totalPages' => $totalPages, |
| 1377 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
| 1377 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
| 1378 | 1378 | 'lastElement' => $lastElementNumber, |
| 1379 | 1379 | 'colspan' => $paginationColumns |
| 1380 | 1380 | ]) |
@@ -1549,7 +1549,7 @@ discard block |
||
| 1549 | 1549 | $params = [ |
| 1550 | 1550 | 'edit' => [ |
| 1551 | 1551 | $table => [ |
| 1552 | - (0-(($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1552 | + (0 - (($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1553 | 1553 | ] |
| 1554 | 1554 | ], |
| 1555 | 1555 | 'returnUrl' => $this->listURL() |
@@ -1961,8 +1961,8 @@ discard block |
||
| 1961 | 1961 | $possibleTranslations = $this->possibleTranslations; |
| 1962 | 1962 | if ($table === 'pages') { |
| 1963 | 1963 | // Calculate possible translations for pages |
| 1964 | - $possibleTranslations = array_map(static fn ($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
| 1965 | - $possibleTranslations = array_filter($possibleTranslations, static fn ($languageUid) => $languageUid > 0); |
|
| 1964 | + $possibleTranslations = array_map(static fn($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
| 1965 | + $possibleTranslations = array_filter($possibleTranslations, static fn($languageUid) => $languageUid > 0); |
|
| 1966 | 1966 | } |
| 1967 | 1967 | |
| 1968 | 1968 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |