Completed
Push — master ( f19773...a6de41 )
by Aleksandar
67:53 queued 44:08
created
packages/Web/Action/CategoryAction.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
packages/Web/Action/VideosAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
packages/Web/Action/HomeAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
packages/Web/Action/EventsAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.