@@ -83,10 +83,10 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected array $filters = []; |
85 | 85 | |
86 | - /** |
|
87 | - * The filters name maps |
|
88 | - * @var array<string, string> |
|
89 | - */ |
|
86 | + /** |
|
87 | + * The filters name maps |
|
88 | + * @var array<string, string> |
|
89 | + */ |
|
90 | 90 | protected array $filterMaps = []; |
91 | 91 | |
92 | 92 | /** |
@@ -156,27 +156,27 @@ discard block |
||
156 | 156 | protected Template $template; |
157 | 157 | |
158 | 158 | /** |
159 | - * The RouteHelper instance |
|
160 | - * @var RouteHelper |
|
161 | - */ |
|
159 | + * The RouteHelper instance |
|
160 | + * @var RouteHelper |
|
161 | + */ |
|
162 | 162 | protected RouteHelper $routeHelper; |
163 | 163 | |
164 | 164 | /** |
165 | - * The Flash instance |
|
166 | - * @var Flash |
|
167 | - */ |
|
165 | + * The Flash instance |
|
166 | + * @var Flash |
|
167 | + */ |
|
168 | 168 | protected Flash $flash; |
169 | 169 | |
170 | 170 | /** |
171 | - * The Lang instance |
|
172 | - * @var Lang |
|
173 | - */ |
|
171 | + * The Lang instance |
|
172 | + * @var Lang |
|
173 | + */ |
|
174 | 174 | protected Lang $lang; |
175 | 175 | |
176 | 176 | /** |
177 | - * The LoggerInterface instance |
|
178 | - * @var LoggerInterface |
|
179 | - */ |
|
177 | + * The LoggerInterface instance |
|
178 | + * @var LoggerInterface |
|
179 | + */ |
|
180 | 180 | protected LoggerInterface $logger; |
181 | 181 | |
182 | 182 | /** |
@@ -560,10 +560,10 @@ discard block |
||
560 | 560 | { |
561 | 561 | } |
562 | 562 | |
563 | - /** |
|
564 | - * Ignore date filters if one of the given filters is present |
|
565 | - * @return array<string> $filters |
|
566 | - */ |
|
563 | + /** |
|
564 | + * Ignore date filters if one of the given filters is present |
|
565 | + * @return array<string> $filters |
|
566 | + */ |
|
567 | 567 | protected function getIgnoreDateFilters(): array |
568 | 568 | { |
569 | 569 | return []; |
@@ -607,19 +607,19 @@ discard block |
||
607 | 607 | ): void { |
608 | 608 | if ($this->all === false) { |
609 | 609 | $totalItems = $repository->filters($this->filters) |
610 | - ->query() |
|
611 | - ->count('id'); |
|
610 | + ->query() |
|
611 | + ->count('id'); |
|
612 | 612 | |
613 | 613 | $currentPage = (int) $this->param->get('page', 1); |
614 | 614 | |
615 | 615 | $this->pagination->setTotalItems($totalItems) |
616 | - ->setCurrentPage($currentPage); |
|
616 | + ->setCurrentPage($currentPage); |
|
617 | 617 | |
618 | 618 | $limit = $this->pagination->getItemsPerPage(); |
619 | 619 | $offset = $this->pagination->getOffset(); |
620 | 620 | |
621 | 621 | $query = $query->limit($limit) |
622 | - ->offset($offset); |
|
622 | + ->offset($offset); |
|
623 | 623 | } |
624 | 624 | |
625 | 625 | if (count($this->sorts) > 0) { |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | $this->addContext('maintenance_state', app()->isInMaintenance()); |
317 | 317 | |
318 | 318 | // Set nonce for Content Security Policy |
319 | - $nonces = $this->request->getAttribute(SecurityPolicy::class); |
|
319 | + $nonces = $this->request->getAttribute(SecurityPolicy::class); |
|
320 | 320 | |
321 | 321 | if ($nonces !== null) { |
322 | 322 | $this->addContext('style_nonce', $nonces['nonces']['style']); |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | protected function handleRestPagination( |
603 | 603 | RepositoryInterface $repository, |
604 | 604 | EntityQuery $query, |
605 | - string|array $sortFields = 'name', |
|
605 | + string | array $sortFields = 'name', |
|
606 | 606 | string $sortDir = 'ASC' |
607 | 607 | ): void { |
608 | 608 | if ($this->all === false) { |