@@ -1008,7 +1008,7 @@ discard block |
||
| 1008 | 1008 | } |
| 1009 | 1009 | |
| 1010 | 1010 | $tagAttributes = array_map( |
| 1011 | - function ($attributeValue) { |
|
| 1011 | + function($attributeValue) { |
|
| 1012 | 1012 | if (is_array($attributeValue)) { |
| 1013 | 1013 | return implode(' ', $attributeValue); |
| 1014 | 1014 | } |
@@ -1329,7 +1329,7 @@ discard block |
||
| 1329 | 1329 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
| 1330 | 1330 | 'currentPage' => $currentPage, |
| 1331 | 1331 | 'totalPages' => $totalPages, |
| 1332 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
| 1332 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
| 1333 | 1333 | 'lastElement' => $lastElementNumber, |
| 1334 | 1334 | 'colspan' => $paginationColumns |
| 1335 | 1335 | ]) |
@@ -1504,7 +1504,7 @@ discard block |
||
| 1504 | 1504 | $params = [ |
| 1505 | 1505 | 'edit' => [ |
| 1506 | 1506 | $table => [ |
| 1507 | - (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1507 | + (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1508 | 1508 | ] |
| 1509 | 1509 | ], |
| 1510 | 1510 | 'returnUrl' => $this->listURL() |
@@ -1868,8 +1868,8 @@ discard block |
||
| 1868 | 1868 | $possibleTranslations = $this->possibleTranslations; |
| 1869 | 1869 | if ($table === 'pages') { |
| 1870 | 1870 | // Calculate possible translations for pages |
| 1871 | - $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 1872 | - $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;}); |
|
| 1871 | + $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 1872 | + $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; }); |
|
| 1873 | 1873 | } |
| 1874 | 1874 | |
| 1875 | 1875 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -1915,7 +1915,7 @@ discard block |
||
| 1915 | 1915 | { |
| 1916 | 1916 | $lang = $this->getLanguageService(); |
| 1917 | 1917 | // Load already selected fields, if any: |
| 1918 | - $setFields = (array)($this->setFields[$table]?? []); |
|
| 1918 | + $setFields = (array)($this->setFields[$table] ?? []); |
|
| 1919 | 1919 | // Request fields from table: |
| 1920 | 1920 | $fields = $this->makeFieldList($table, false, true); |
| 1921 | 1921 | // Add pseudo "control" fields |