Completed
Push — master ( f5e198...1a7910 )
by Aleksandar
27:14
created
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
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         callable $next = null
62 62
     ) {
63 63
         $params   = $request->getQueryParams();
64
-        $page     = isset($params['page']) ? $params['page'] : 1;
64
+        $page     = isset($params[ 'page' ]) ? $params[ 'page' ] : 1;
65 65
         $urlSlug  = $request->getAttribute('category');
66 66
         $category = $this->categoryService->getCategoryBySlug($urlSlug);
67 67
 
Please login to merge, or discard this patch.
packages/Web/Action/PostsAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         callable $next = null
62 62
     ) {
63 63
         $params   = $request->getQueryParams();
64
-        $page     = isset($params['page']) ? $params['page'] : 1;
64
+        $page     = isset($params[ 'page' ]) ? $params[ 'page' ] : 1;
65 65
         $urlSlug  = $request->getAttribute('category');
66 66
         $category = $this->categoryService->getCategoryBySlug($urlSlug);
67 67
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             }
72 72
 
73 73
             // Default category for all posts
74
-            $category = (object)[
74
+            $category = (object) [
75 75
                 'name'        => 'Svi članci',
76 76
                 'slug'        => 'all',
77 77
                 'title'       => 'Svi članci',
Please login to merge, or discard this patch.