@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Web\Action; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | callable $next = null |
61 | 61 | ) { |
62 | 62 | $params = $request->getQueryParams(); |
63 | - $page = isset($params['page']) ? $params['page'] : 1; |
|
63 | + $page = isset($params[ 'page' ]) ? $params[ 'page' ] : 1; |
|
64 | 64 | $urlSlug = $request->getAttribute('category'); |
65 | 65 | $categories = $this->categoryService->getCategories(true); |
66 | 66 | $category = $this->categoryService->getCategoryBySlug($urlSlug); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return $next($request, $response); |
71 | 71 | } |
72 | 72 | |
73 | - $category = (object)[ |
|
73 | + $category = (object) [ |
|
74 | 74 | 'name' => 'Svi članci', |
75 | 75 | 'slug' => 'all', |
76 | 76 | 'title' => 'Svi članci', |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Web\Action; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | callable $next = null |
61 | 61 | ) { |
62 | 62 | $params = $request->getQueryParams(); |
63 | - $page = isset($params['page']) ? $params['page'] : 1; |
|
63 | + $page = isset($params[ 'page' ]) ? $params[ 'page' ] : 1; |
|
64 | 64 | $videos = $this->videoService->fetchWebArticles($page, 5); |
65 | 65 | $category = $this->categoryService->getCategoryBySlug('videos'); |
66 | 66 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Web\Action; |
6 | 6 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $page = $this->pageService->getHomepage(); |
56 | 56 | |
57 | 57 | return new HtmlResponse($this->template->render('web::home', |
58 | - ['page' => $page, 'layout' => 'layout/web'])); |
|
58 | + [ 'page' => $page, 'layout' => 'layout/web' ])); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Web\Action; |
6 | 6 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | callable $next = null |
61 | 61 | ) { |
62 | 62 | $params = $request->getQueryParams(); |
63 | - $page = isset($params['page']) ? $params['page'] : 1; |
|
63 | + $page = isset($params[ 'page' ]) ? $params[ 'page' ] : 1; |
|
64 | 64 | $futureEvents = $this->eventService->fetchFutureEvents(); |
65 | 65 | $pastEvents = $this->eventService->fetchPastEventsPagination($page, 10); |
66 | 66 | $category = $this->categoryService->getCategoryBySlug('events'); |