@@ -946,7 +946,7 @@ discard block |
||
| 946 | 946 | } |
| 947 | 947 | |
| 948 | 948 | $tagAttributes = array_map( |
| 949 | - function ($attributeValue) { |
|
| 949 | + function($attributeValue) { |
|
| 950 | 950 | if (is_array($attributeValue)) { |
| 951 | 951 | return implode(' ', $attributeValue); |
| 952 | 952 | } |
@@ -1291,7 +1291,7 @@ discard block |
||
| 1291 | 1291 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
| 1292 | 1292 | 'currentPage' => $currentPage, |
| 1293 | 1293 | 'totalPages' => $totalPages, |
| 1294 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
| 1294 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
| 1295 | 1295 | 'lastElement' => $lastElementNumber, |
| 1296 | 1296 | 'colspan' => $paginationColumns |
| 1297 | 1297 | ]) |
@@ -1473,7 +1473,7 @@ discard block |
||
| 1473 | 1473 | $params = [ |
| 1474 | 1474 | 'edit' => [ |
| 1475 | 1475 | $table => [ |
| 1476 | - (0-(($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1476 | + (0 - (($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1477 | 1477 | ] |
| 1478 | 1478 | ], |
| 1479 | 1479 | 'returnUrl' => $this->listURL() |
@@ -1864,8 +1864,8 @@ discard block |
||
| 1864 | 1864 | $possibleTranslations = $this->possibleTranslations; |
| 1865 | 1865 | if ($table === 'pages') { |
| 1866 | 1866 | // Calculate possible translations for pages |
| 1867 | - $possibleTranslations = array_map(static fn ($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
| 1868 | - $possibleTranslations = array_filter($possibleTranslations, static fn ($languageUid) => $languageUid > 0); |
|
| 1867 | + $possibleTranslations = array_map(static fn($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); |
|
| 1868 | + $possibleTranslations = array_filter($possibleTranslations, static fn($languageUid) => $languageUid > 0); |
|
| 1869 | 1869 | } |
| 1870 | 1870 | |
| 1871 | 1871 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -1980,7 +1980,7 @@ discard block |
||
| 1980 | 1980 | } |
| 1981 | 1981 | |
| 1982 | 1982 | // Sort disabled fields to top |
| 1983 | - usort($checkboxes, function ($a, $b) { |
|
| 1983 | + usort($checkboxes, function($a, $b) { |
|
| 1984 | 1984 | return $b['disabled'] - $a['disabled']; |
| 1985 | 1985 | }); |
| 1986 | 1986 | |