We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -351,7 +351,8 @@ discard block |
||
| 351 | 351 | $lastStartRecordNumberGrid = 0; // due to validity outside the loop |
| 352 | 352 | foreach (range($firstPage, $lastPage) as $i) { |
| 353 | 353 | // detect which pagination is active: ListView or GridView |
| 354 | - if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') { // ListView |
|
| 354 | + if (get_class($pagination) == 'TYPO3\CMS\Core\Pagination\SimplePagination') { |
|
| 355 | +// ListView |
|
| 355 | 356 | $lastStartRecordNumberGrid = $i; // save last $startRecordNumber for LastPage button |
| 356 | 357 | |
| 357 | 358 | $pages[$i] = [ |
@@ -364,7 +365,8 @@ discard block |
||
| 364 | 365 | if (in_array($i, $aRange)) { |
| 365 | 366 | array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $i]); |
| 366 | 367 | }; |
| 367 | - } else { // GridView |
|
| 368 | + } else { |
|
| 369 | +// GridView |
|
| 368 | 370 | // to calculate the values for generation the links for the pagination pages |
| 369 | 371 | /** @var \Kitodo\Dlf\Pagination\PageGridPaginator $paginator */ |
| 370 | 372 | $itemsPerPage = $paginator->getPublicItemsPerPage(); |