Passed
Push — master ( 5a95b7...e0e49e )
by
unknown
14:45
created
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @internal
171 171
      * @var array
172 172
      */
173
-    protected $moduleData =  [];
173
+    protected $moduleData = [];
174 174
 
175 175
     /**
176 176
      * Page id
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
         // Implode it into a list of fields for the SQL-statement.
782 782
         $selFieldList = implode(',', $selectFields);
783 783
 
784
-        $firstElement = (($this->page -1) * $iLimit);
784
+        $firstElement = (($this->page - 1) * $iLimit);
785 785
         if ($firstElement > 2 && $iLimit > 0) {
786 786
             // Get the two previous rows for sorting if displaying page > 1
787 787
             $firstElement -= 2;
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
                     if ($totalItems > $itemsLimitPerTable) {
964 964
                         $countOnFirstPage = $totalItems > $itemsLimitSingleTable ? $itemsLimitSingleTable : $totalItems;
965 965
                         $hasMore = $totalItems > $itemsLimitSingleTable;
966
-                        $colspan =  (count($this->fieldArray) + 1);
966
+                        $colspan = (count($this->fieldArray) + 1);
967 967
                         $rowOutput .= '<tr><td colspan="' . $colspan . '">
968 968
 								<a href="' . htmlspecialchars($this->listURL() . '&table=' . rawurlencode($tableIdentifier)) . '" class="btn btn-default">'
969 969
                             . '<span class="t3-icon fa fa-chevron-down"></span> <i>[1 - ' . $countOnFirstPage . ($hasMore ? '+' : '') . ']</i></a>
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
         }
1207 1207
 
1208 1208
         $tagAttributes = array_map(
1209
-            function ($attributeValue) {
1209
+            function($attributeValue) {
1210 1210
                 if (is_array($attributeValue)) {
1211 1211
                     return implode(' ', $attributeValue);
1212 1212
                 }
@@ -1526,7 +1526,7 @@  discard block
 block discarded – undo
1526 1526
                 'currentUrl' => $this->listURL('', '-1', 'pointer'),
1527 1527
                 'currentPage' => $currentPage,
1528 1528
                 'totalPages' => $totalPages,
1529
-                'firstElement' => ((($currentPage -1) * $iLimit) + 1),
1529
+                'firstElement' => ((($currentPage - 1) * $iLimit) + 1),
1530 1530
                 'lastElement' => $lastElementNumber,
1531 1531
                 'colspan' => $paginationColumns
1532 1532
             ])
@@ -1701,7 +1701,7 @@  discard block
 block discarded – undo
1701 1701
                         $params = [
1702 1702
                             'edit' => [
1703 1703
                                 $table => [
1704
-                                    (0-($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new'
1704
+                                    (0 - ($row['_MOVE_PLH'] ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new'
1705 1705
                                 ]
1706 1706
                             ],
1707 1707
                             'returnUrl' => $this->listURL()
@@ -2065,8 +2065,8 @@  discard block
 block discarded – undo
2065 2065
         $possibleTranslations = $this->possibleTranslations;
2066 2066
         if ($table === 'pages') {
2067 2067
             // Calculate possible translations for pages
2068
-            $possibleTranslations = array_map(static function ($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser);
2069
-            $possibleTranslations = array_filter($possibleTranslations, static function ($languageUid) { return $languageUid > 0;});
2068
+            $possibleTranslations = array_map(static function($siteLanguage) { return $siteLanguage->getLanguageId(); }, $this->languagesAllowedForUser);
2069
+            $possibleTranslations = array_filter($possibleTranslations, static function($languageUid) { return $languageUid > 0; });
2070 2070
         }
2071 2071
 
2072 2072
         // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration:
@@ -2112,7 +2112,7 @@  discard block
 block discarded – undo
2112 2112
     {
2113 2113
         $lang = $this->getLanguageService();
2114 2114
         // Load already selected fields, if any:
2115
-        $setFields = (array)($this->setFields[$table]?? []);
2115
+        $setFields = (array)($this->setFields[$table] ?? []);
2116 2116
         // Request fields from table:
2117 2117
         $fields = $this->makeFieldList($table, false, true);
2118 2118
         // Add pseudo "control" fields
Please login to merge, or discard this patch.