We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | $pages = []; |
| 332 | 332 | $pagesSect = []; |
| 333 | 333 | $aRange = []; |
| 334 | - $nRange = 5; // ToDo: should be made configurable |
|
| 334 | + $nRange = 5; // ToDo: should be made configurable |
|
| 335 | 335 | |
| 336 | 336 | // lower limit of the range |
| 337 | 337 | $nBottom = $currentPageNumber - $nRange; |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | |
| 347 | 347 | // check whether the first screen page is > 1, if yes then points must be added |
| 348 | 348 | if ($aRange[0] > 1) { |
| 349 | - array_push($pagesSect, ['label' => '...','startRecordNumber' => '...']); |
|
| 349 | + array_push($pagesSect, ['label' => '...', 'startRecordNumber' => '...']); |
|
| 350 | 350 | }; |
| 351 | 351 | $lastStartRecordNumberGrid = 0; // due to validity outside the loop |
| 352 | 352 | foreach (range($firstPage, $lastPage) as $i) { |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | // Check if screen page is in range |
| 391 | 391 | if (in_array($i, $aRange)) { |
| 392 | - array_push($pagesSect, ['label' => $i,'startRecordNumber' => $startRecordNumber]); |
|
| 392 | + array_push($pagesSect, ['label' => $i, 'startRecordNumber' => $startRecordNumber]); |
|
| 393 | 393 | }; |
| 394 | 394 | }; |
| 395 | 395 | }; |
@@ -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(); |