Completed
Push — master ( 63a43a...66f803 )
by
unknown
55:43 queued 30:40
created
packages/Category/src/Mapper/CategoryMapper.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@
 block discarded – undo
44 44
         return $select;
45 45
     }
46 46
 
47
+    /**
48
+     * @param integer $limit
49
+     */
47 50
     public function getCategoryPostsSelect($categoryId = null, $limit = null)
48 51
     {
49 52
         $select = $this->getSql()->select()
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function get($id)
34 34
     {
35
-        return $this->select(['category_id' => $id])->current();
35
+        return $this->select([ 'category_id' => $id ])->current();
36 36
     }
37 37
 
38 38
     public function getPaginationSelect()
39 39
     {
40
-        $select = $this->getSql()->select()->order(['name' => 'asc']);
40
+        $select = $this->getSql()->select()->order([ 'name' => 'asc' ]);
41 41
 
42 42
         return $select;
43 43
     }
@@ -45,21 +45,21 @@  discard block
 block discarded – undo
45 45
     public function getCategoryPostsSelect($categoryId = null, $limit = null)
46 46
     {
47 47
         $select = $this->getSql()->select()
48
-            ->columns(['category_name' => 'name', 'category_slug' => 'slug'])
48
+            ->columns([ 'category_name' => 'name', 'category_slug' => 'slug' ])
49 49
             ->join(
50 50
                 'articles',
51 51
                 'articles.category_uuid = category.category_uuid',
52
-                ['article_id', 'slug', 'admin_user_uuid', 'published_at']
53
-            )->join('article_posts', 'article_posts.article_uuid = articles.article_uuid', ['*'], 'right')
52
+                [ 'article_id', 'slug', 'admin_user_uuid', 'published_at' ]
53
+            )->join('article_posts', 'article_posts.article_uuid = articles.article_uuid', [ '*' ], 'right')
54 54
             ->join(
55 55
                 'admin_users',
56 56
                 'admin_users.admin_user_uuid = articles.admin_user_uuid',
57
-                ['admin_user_id', 'first_name', 'last_name', 'face_img']
58
-            )->where(['articles.status' => 1])
59
-            ->order(['published_at' => 'desc']);
57
+                [ 'admin_user_id', 'first_name', 'last_name', 'face_img' ]
58
+            )->where([ 'articles.status' => 1 ])
59
+            ->order([ 'published_at' => 'desc' ]);
60 60
 
61 61
         if ($categoryId) {
62
-            $select->where(['category_id' => $categoryId]);
62
+            $select->where([ 'category_id' => $categoryId ]);
63 63
         }
64 64
 
65 65
         if ($limit) {
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
         $select->where->notEqualTo('slug', 'events');
92 92
 
93 93
         if ($inHomepage !== null) {
94
-            $select->where(['is_in_homepage' => $inHomepage]);
94
+            $select->where([ 'is_in_homepage' => $inHomepage ]);
95 95
         }
96 96
 
97 97
         if ($inCategoryList !== null) {
98
-            $select->where(['is_in_category_list' => $inCategoryList]);
98
+            $select->where([ 'is_in_category_list' => $inCategoryList ]);
99 99
         }
100 100
 
101 101
         if ($limit) {
Please login to merge, or discard this patch.
packages/Article/src/ConfigProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         return [
12 12
             'templates' => [
13 13
                 'paths' => [
14
-                    'article' => [__DIR__ . '/../templates/article'],
14
+                    'article' => [ __DIR__ . '/../templates/article' ],
15 15
                 ],
16 16
             ],
17 17
 
@@ -51,49 +51,49 @@  discard block
 block discarded – undo
51 51
                     'name'            => 'admin.posts',
52 52
                     'path'            => '/admin/posts',
53 53
                     'middleware'      => Controller\PostController::class,
54
-                    'allowed_methods' => ['GET'],
54
+                    'allowed_methods' => [ 'GET' ],
55 55
                 ],
56 56
                 [
57 57
                     'name'            => 'admin.posts.action',
58 58
                     'path'            => '/admin/posts/:action/:id',
59 59
                     'middleware'      => Controller\PostController::class,
60
-                    'allowed_methods' => ['GET', 'POST'],
60
+                    'allowed_methods' => [ 'GET', 'POST' ],
61 61
                 ],
62 62
                 [
63 63
                     'name'            => 'admin.discussions',
64 64
                     'path'            => '/admin/discussions',
65 65
                     'middleware'      => Controller\DiscussionController::class,
66
-                    'allowed_methods' => ['GET', 'POST']
66
+                    'allowed_methods' => [ 'GET', 'POST' ]
67 67
                 ],
68 68
                 [
69 69
                     'name'            => 'admin.discussions.action',
70 70
                     'path'            => '/admin/discussions/:action/:id',
71 71
                     'middleware'      => Controller\DiscussionController::class,
72
-                    'allowed_methods' => ['GET', 'POST']
72
+                    'allowed_methods' => [ 'GET', 'POST' ]
73 73
                 ],
74 74
                 [
75 75
                     'name'            => 'admin.events',
76 76
                     'path'            => '/admin/events',
77 77
                     'middleware'      => Controller\EventController::class,
78
-                    'allowed_methods' => ['GET', 'POST']
78
+                    'allowed_methods' => [ 'GET', 'POST' ]
79 79
                 ],
80 80
                 [
81 81
                     'name'            => 'admin.events.action',
82 82
                     'path'            => '/admin/events/:action/:id',
83 83
                     'middleware'      => Controller\EventController::class,
84
-                    'allowed_methods' => ['GET', 'POST']
84
+                    'allowed_methods' => [ 'GET', 'POST' ]
85 85
                 ],
86 86
                 [
87 87
                     'name'            => 'admin.videos',
88 88
                     'path'            => '/admin/videos',
89 89
                     'middleware'      => Controller\VideoController::class,
90
-                    'allowed_methods' => ['GET', 'POST']
90
+                    'allowed_methods' => [ 'GET', 'POST' ]
91 91
                 ],
92 92
                 [
93 93
                     'name'            => 'admin.videos.action',
94 94
                     'path'            => '/admin/videos/:action/:id',
95 95
                     'middleware'      => Controller\VideoController::class,
96
-                    'allowed_methods' => ['GET', 'POST']
96
+                    'allowed_methods' => [ 'GET', 'POST' ]
97 97
                 ]
98 98
             ],
99 99
 
Please login to merge, or discard this patch.
packages/Article/src/Factory/Service/EventServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
      */
20 20
     public function __invoke(ContainerInterface $container)
21 21
     {
22
-        $config = $container->get('config')['upload'];
23
-        $upload = new Upload($config['public_path'], $config['non_public_path']);
22
+        $config = $container->get('config')[ 'upload' ];
23
+        $upload = new Upload($config[ 'public_path' ], $config[ 'non_public_path' ]);
24 24
 
25 25
         return new EventService(
26 26
             $container->get(ArticleMapper::class),
Please login to merge, or discard this patch.
packages/Article/src/Factory/Controller/DiscussionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Article\Factory\Controller;
5 5
 
Please login to merge, or discard this patch.
packages/Newsletter/src/Service/NewsletterServiceFactory.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 Newsletter\Service;
6 6
 
Please login to merge, or discard this patch.
packages/Newsletter/src/Mapper/NewsletterMapperFactory.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 Newsletter\Mapper;
6 6
 
Please login to merge, or discard this patch.
packages/Newsletter/src/Web/Action/HandlePostActionFactory.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 Newsletter\Web\Action;
6 6
 
Please login to merge, or discard this patch.
packages/Newsletter/src/ConfigProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
         return [
10 10
             'templates' => [
11 11
                 'paths' => [
12
-                    'newsletter' => [__DIR__ . '/../templates/newsletter'],
12
+                    'newsletter' => [ __DIR__ . '/../templates/newsletter' ],
13 13
                 ],
14 14
             ],
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
                     'name'            => 'newsletter-post',
27 27
                     'path'            => '/newsletter',
28 28
                     'middleware'      => Web\Action\HandlePostAction::class,
29
-                    'allowed_methods' => ['POST'],
29
+                    'allowed_methods' => [ 'POST' ],
30 30
                 ],
31 31
             ],
32 32
         ];
Please login to merge, or discard this patch.
packages/Category/src/ConfigProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
         return [
10 10
             'templates' => [
11 11
                 'paths' => [
12
-                    'category' => [__DIR__ . '/../templates/category'],
12
+                    'category' => [ __DIR__ . '/../templates/category' ],
13 13
                 ],
14 14
             ],
15 15
 
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
                     'name'            => 'admin.categories',
31 31
                     'path'            => '/admin/categories',
32 32
                     'middleware'      => Controller\IndexController::class,
33
-                    'allowed_methods' => ['GET'],
33
+                    'allowed_methods' => [ 'GET' ],
34 34
                 ],
35 35
                 [
36 36
                     'name'            => 'admin.categories.action',
37 37
                     'path'            => '/admin/categories/:action/:id',
38 38
                     'middleware'      => Controller\IndexController::class,
39
-                    'allowed_methods' => ['GET', 'POST']
39
+                    'allowed_methods' => [ 'GET', 'POST' ]
40 40
                 ],
41 41
             ],
42 42
 
Please login to merge, or discard this patch.