@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * @internal |
| 171 | 171 | * @var array |
| 172 | 172 | */ |
| 173 | - protected $moduleData = []; |
|
| 173 | + protected $moduleData = []; |
|
| 174 | 174 | |
| 175 | 175 | /** |
| 176 | 176 | * Page id |
@@ -1200,7 +1200,7 @@ discard block |
||
| 1200 | 1200 | } |
| 1201 | 1201 | |
| 1202 | 1202 | $tagAttributes = array_map( |
| 1203 | - function ($attributeValue) { |
|
| 1203 | + function($attributeValue) { |
|
| 1204 | 1204 | if (is_array($attributeValue)) { |
| 1205 | 1205 | return implode(' ', $attributeValue); |
| 1206 | 1206 | } |
@@ -1521,7 +1521,7 @@ discard block |
||
| 1521 | 1521 | 'currentUrl' => $this->listURL('', $table, 'pointer'), |
| 1522 | 1522 | 'currentPage' => $currentPage, |
| 1523 | 1523 | 'totalPages' => $totalPages, |
| 1524 | - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), |
|
| 1524 | + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), |
|
| 1525 | 1525 | 'lastElement' => $lastElementNumber, |
| 1526 | 1526 | 'colspan' => $paginationColumns |
| 1527 | 1527 | ]) |
@@ -1696,7 +1696,7 @@ discard block |
||
| 1696 | 1696 | $params = [ |
| 1697 | 1697 | 'edit' => [ |
| 1698 | 1698 | $table => [ |
| 1699 | - (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1699 | + (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new' |
|
| 1700 | 1700 | ] |
| 1701 | 1701 | ], |
| 1702 | 1702 | 'returnUrl' => $this->listURL() |
@@ -2060,8 +2060,8 @@ discard block |
||
| 2060 | 2060 | $possibleTranslations = $this->possibleTranslations; |
| 2061 | 2061 | if ($table === 'pages') { |
| 2062 | 2062 | // Calculate possible translations for pages |
| 2063 | - $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 2064 | - $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;}); |
|
| 2063 | + $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser); |
|
| 2064 | + $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; }); |
|
| 2065 | 2065 | } |
| 2066 | 2066 | |
| 2067 | 2067 | // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: |
@@ -2107,7 +2107,7 @@ discard block |
||
| 2107 | 2107 | { |
| 2108 | 2108 | $lang = $this->getLanguageService(); |
| 2109 | 2109 | // Load already selected fields, if any: |
| 2110 | - $setFields = (array)($this->setFields[$table]?? []); |
|
| 2110 | + $setFields = (array)($this->setFields[$table] ?? []); |
|
| 2111 | 2111 | // Request fields from table: |
| 2112 | 2112 | $fields = $this->makeFieldList($table, false, true); |
| 2113 | 2113 | // Add pseudo "control" fields |