Completed
Push — master ( e9a84e...21be5c )
by Aleksandar
26:24
created
data/phinx/seeds/Menu.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             'is_in_side'    => false,
41 41
             'order_no'      => 2,
42 42
             'page_uuid'     => null,
43
-            'category_uuid' => $categoryVideo['category_uuid']
43
+            'category_uuid' => $categoryVideo[ 'category_uuid' ]
44 44
         ])->save();
45 45
 
46 46
         // Insert events category in Menu
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             'is_in_side'    => false,
58 58
             'order_no'      => 3,
59 59
             'page_uuid'     => null,
60
-            'category_uuid' => $categoryEvent['category_uuid']
60
+            'category_uuid' => $categoryEvent[ 'category_uuid' ]
61 61
         ])->save();
62 62
 
63 63
         // Insert link to external web site
Please login to merge, or discard this patch.
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.
packages/Web/Action/VideoAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
packages/Web/Action/PostAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.