Completed
Push — master ( c11784...191fd3 )
by Aleksandar
24:03
created
packages/Article/src/Filter/EventFilter.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,73 +12,73 @@
 block discarded – undo
12 12
 
13 13
     public function getInputFilter()
14 14
     {
15
-        if(!$this->inputFilter) {
15
+        if (!$this->inputFilter) {
16 16
             $inputFilter = new InputFilter();
17 17
 
18 18
             $inputFilter->add([
19 19
                 'name'       => 'title',
20 20
                 'required'   => true,
21
-                'filters'    => [['name' => 'StringTrim']],
21
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
22 22
                 'validators' => [
23
-                    ['name' => 'NotEmpty'],
24
-                    ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 100]],
23
+                    [ 'name' => 'NotEmpty' ],
24
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100 ] ],
25 25
                 ],
26 26
             ]);
27 27
 
28 28
             $inputFilter->add([
29 29
                 'name'     => 'sub_title',
30 30
                 'required' => false,
31
-                'filters'  => [['name' => 'StringTrim']]
31
+                'filters'  => [ [ 'name' => 'StringTrim' ] ]
32 32
             ]);
33 33
 
34 34
             $inputFilter->add([
35 35
                 'name'     => 'place_name',
36 36
                 'required' => true,
37
-                'filters'  => [['name' => 'StringTrim']]
37
+                'filters'  => [ [ 'name' => 'StringTrim' ] ]
38 38
             ]);
39 39
 
40 40
             $inputFilter->add([
41 41
                 'name'     => 'event_url',
42 42
                 'required' => false,
43
-                'filters'  => [['name' => 'StringTrim']]
43
+                'filters'  => [ [ 'name' => 'StringTrim' ] ]
44 44
             ]);
45 45
 
46 46
             $inputFilter->add([
47 47
                 'name'       => 'body',
48 48
                 'required'   => true,
49
-                'filters'    => [['name' => 'StringTrim']],
49
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
50 50
                 'validators' => [
51
-                    ['name' => 'NotEmpty'],
52
-                    ['name' => 'StringLength', 'options' => ['min' => 2]],
51
+                    [ 'name' => 'NotEmpty' ],
52
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
53 53
                 ],
54 54
             ]);
55 55
 
56 56
             $inputFilter->add([
57 57
                 'name'       => 'start_at',
58 58
                 'required'   => true,
59
-                'filters'    => [['name' => 'StringTrim']],
60
-                'validators' => [['name' => 'NotEmpty'], ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]]
59
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
60
+                'validators' => [ [ 'name' => 'NotEmpty' ], [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ] ]
61 61
             ]);
62 62
 
63 63
             $inputFilter->add([
64 64
                 'name'       => 'end_at',
65 65
                 'required'   => true,
66
-                'filters'    => [['name' => 'StringTrim']],
67
-                'validators' => [['name' => 'NotEmpty'], ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]]
66
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
67
+                'validators' => [ [ 'name' => 'NotEmpty' ], [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ] ]
68 68
             ]);
69 69
 
70 70
             $inputFilter->add([
71 71
                 'name'       => 'longitude',
72 72
                 'required'   => true,
73
-                'filters'    => [['name' => 'StringTrim']],
74
-                'validators' => [['name' => 'NotEmpty']],
73
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
74
+                'validators' => [ [ 'name' => 'NotEmpty' ] ],
75 75
             ]);
76 76
 
77 77
             $inputFilter->add([
78 78
                 'name'       => 'latitude',
79 79
                 'required'   => true,
80
-                'filters'    => [['name' => 'StringTrim']],
81
-                'validators' => [['name' => 'NotEmpty']],
80
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
81
+                'validators' => [ [ 'name' => 'NotEmpty' ] ],
82 82
             ]);
83 83
 
84 84
             $this->inputFilter = $inputFilter;
Please login to merge, or discard this patch.
packages/Article/src/Filter/VideoFilter.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,56 +12,56 @@
 block discarded – undo
12 12
 
13 13
     public function getInputFilter()
14 14
     {
15
-        if(!$this->inputFilter) {
15
+        if (!$this->inputFilter) {
16 16
             $inputFilter = new InputFilter();
17 17
 
18 18
             $inputFilter->add([
19 19
                 'name'       => 'title',
20 20
                 'required'   => true,
21
-                'filters'    => [['name' => 'StringTrim']],
21
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
22 22
                 'validators' => [
23
-                    ['name' => 'NotEmpty'],
24
-                    ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 100]],
23
+                    [ 'name' => 'NotEmpty' ],
24
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100 ] ],
25 25
                 ],
26 26
             ]);
27 27
 
28 28
             $inputFilter->add([
29 29
                 'name'       => 'sub_title',
30 30
                 'required'   => false,
31
-                'filters'    => [['name' => 'StringTrim']],
31
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
32 32
                 'validators' => [
33
-                    ['name' => 'NotEmpty'],
34
-                    ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 500]],
33
+                    [ 'name' => 'NotEmpty' ],
34
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 500 ] ],
35 35
                 ],
36 36
             ]);
37 37
 
38 38
             $inputFilter->add([
39 39
                 'name'       => 'body',
40 40
                 'required'   => true,
41
-                'filters'    => [['name' => 'StringTrim']],
41
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
42 42
                 'validators' => [
43
-                    ['name' => 'NotEmpty'],
44
-                    ['name' => 'StringLength', 'options' => ['min' => 2]],
43
+                    [ 'name' => 'NotEmpty' ],
44
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
45 45
                 ],
46 46
             ]);
47 47
 
48 48
             $inputFilter->add([
49 49
                 'name'       => 'lead',
50 50
                 'required'   => true,
51
-                'filters'    => [['name' => 'StringTrim']],
51
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
52 52
                 'validators' => [
53
-                    ['name' => 'NotEmpty'],
54
-                    ['name' => 'StringLength', 'options' => ['min' => 2]],
53
+                    [ 'name' => 'NotEmpty' ],
54
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
55 55
                 ],
56 56
             ]);
57 57
 
58 58
             $inputFilter->add([
59 59
                 'name'       => 'video_url',
60 60
                 'required'   => true,
61
-                'filters'    => [['name' => 'StringTrim']],
61
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
62 62
                 'validators' => [
63
-                    ['name' => 'NotEmpty'],
64
-                    ['name' => 'StringLength'],
63
+                    [ 'name' => 'NotEmpty' ],
64
+                    [ 'name' => 'StringLength' ],
65 65
                 ],
66 66
             ]);
67 67
 
Please login to merge, or discard this patch.
packages/Article/src/Mapper/ArticleEventsMapper.php 1 patch
Spacing   +20 added lines, -20 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 Article\Mapper;
6 6
 
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
     public function getPaginationSelect($status = null)
37 37
     {
38 38
         $select = $this->getSql()->select()
39
-            ->columns(['title', 'body', 'longitude', 'latitude'])
39
+            ->columns([ 'title', 'body', 'longitude', 'latitude' ])
40 40
             ->join('articles', 'article_events.article_uuid = articles.article_uuid')
41
-            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', ['admin_user_id', 'first_name', 'last_name'])
42
-            ->where(['articles.type' => ArticleType::EVENT])
43
-            ->order(['created_at' => 'desc']);
41
+            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', [ 'admin_user_id', 'first_name', 'last_name' ])
42
+            ->where([ 'articles.type' => ArticleType::EVENT ])
43
+            ->order([ 'created_at' => 'desc' ]);
44 44
 
45
-        if($status) {
46
-            $select->where(['articles.status' => (int)$status]);
45
+        if ($status) {
46
+            $select->where([ 'articles.status' => (int) $status ]);
47 47
         }
48 48
 
49 49
         return $select;
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
         $select = $this->getSql()->select()
55 55
             ->join('articles', 'article_events.article_uuid = articles.article_uuid')
56 56
             ->join('category', 'category.category_uuid = articles.category_uuid',
57
-                ['category_slug' => 'slug', 'category_name' => 'name', 'category_id'], 'left')
58
-            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', ['admin_user_id'], 'left')
59
-            ->where(['articles.article_id' => $id]);
57
+                [ 'category_slug' => 'slug', 'category_name' => 'name', 'category_id' ], 'left')
58
+            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', [ 'admin_user_id' ], 'left')
59
+            ->where([ 'articles.article_id' => $id ]);
60 60
 
61 61
         return $this->selectWith($select)->current();
62 62
     }
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
         $select = $this->getSql()->select()
67 67
             ->join('articles', 'article_events.article_uuid = articles.article_uuid')
68 68
             ->join('category', 'category.category_uuid = articles.category_uuid',
69
-                ['category_slug' => 'slug', 'category_name' => 'name', 'category_id'], 'left')
70
-            ->where(['articles.slug' => $slug]);
69
+                [ 'category_slug' => 'slug', 'category_name' => 'name', 'category_id' ], 'left')
70
+            ->where([ 'articles.slug' => $slug ]);
71 71
 
72 72
         return $this->selectWith($select)->current();
73 73
     }
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
     public function getLatest($limit = 50)
76 76
     {
77 77
         $select = $this->getSql()->select()
78
-            ->join('articles', 'article_events.article_uuid = articles.article_uuid', ['article_id', 'slug', 'published_at'])
79
-            ->where(['articles.status' => 1])
80
-            ->order(['published_at' => 'desc'])
78
+            ->join('articles', 'article_events.article_uuid = articles.article_uuid', [ 'article_id', 'slug', 'published_at' ])
79
+            ->where([ 'articles.status' => 1 ])
80
+            ->order([ 'published_at' => 'desc' ])
81 81
             ->limit($limit);
82 82
 
83 83
         return $this->selectWith($select);
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
     public function getFuture()
87 87
     {
88 88
         $select = $this->getSql()->select()
89
-            ->where(['articles.status' => 1])
90
-            ->join('articles', 'articles.article_uuid = article_events.article_uuid', ['article_id', 'slug', 'published_at'])
89
+            ->where([ 'articles.status' => 1 ])
90
+            ->join('articles', 'articles.article_uuid = article_events.article_uuid', [ 'article_id', 'slug', 'published_at' ])
91 91
             ->order(new Expression('rand()'));
92 92
 
93 93
         $select->where->greaterThanOrEqualTo('end_at', date('Y-m-d H:i:s'));
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
     public function getPastSelect()
99 99
     {
100 100
         $select = $this->getSql()->select()
101
-            ->where(['articles.status' => 1])
102
-            ->join('articles', 'articles.article_uuid = article_events.article_uuid', ['article_id', 'slug', 'published_at'])
103
-            ->order(['start_at' => 'desc']);
101
+            ->where([ 'articles.status' => 1 ])
102
+            ->join('articles', 'articles.article_uuid = article_events.article_uuid', [ 'article_id', 'slug', 'published_at' ])
103
+            ->order([ 'start_at' => 'desc' ]);
104 104
 
105 105
         $select->where->lessThan('end_at', date('Y-m-d H:i:s'));
106 106
 
Please login to merge, or discard this patch.
packages/Article/src/Mapper/ArticleDiscussionsMapper.php 1 patch
Spacing   +8 added lines, -8 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 Article\Mapper;
6 6
 
@@ -21,21 +21,21 @@  discard block
 block discarded – undo
21 21
     public function getPaginationSelect()
22 22
     {
23 23
         return $this->getSql()->select()
24
-            ->columns(['title', 'body'])
24
+            ->columns([ 'title', 'body' ])
25 25
             ->join('articles', 'article_discussions.article_uuid = articles.article_uuid')
26
-            ->where(['articles.type' => ArticleType::DISCUSSION])
27
-            ->order(['created_at' => 'desc']);
26
+            ->where([ 'articles.type' => ArticleType::DISCUSSION ])
27
+            ->order([ 'created_at' => 'desc' ]);
28 28
     }
29 29
 
30 30
     public function get($id)
31 31
     {
32 32
         $select = $this->getSql()->select()
33
-            ->columns(['title', 'body'])
33
+            ->columns([ 'title', 'body' ])
34 34
             ->join('articles', 'article_discussions.article_uuid = articles.article_uuid')
35 35
             ->join('category', 'category.category_uuid = articles.category_uuid',
36
-                ['category_slug' => 'slug', 'category_name' => 'name', 'category_id'], 'left')
37
-            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', ['admin_user_id'], 'left')
38
-            ->where(['articles.article_id' => $id]);
36
+                [ 'category_slug' => 'slug', 'category_name' => 'name', 'category_id' ], 'left')
37
+            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', [ 'admin_user_id' ], 'left')
38
+            ->where([ 'articles.article_id' => $id ]);
39 39
 
40 40
         return $this->selectWith($select)->current();
41 41
     }
Please login to merge, or discard this patch.
packages/Article/src/Mapper/ArticleVideosMapper.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Article\Mapper;
5 5
 
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
     public function getPaginationSelect($isActive = null)
35 35
     {
36 36
         $select = $this->getSql()->select()
37
-            ->join('articles', 'article_videos.article_uuid = articles.article_uuid', ['slug', 'published_at', 'status', 'article_id'])
38
-            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', ['admin_user_id', 'first_name', 'last_name'])
39
-            ->where(['articles.type' => ArticleType::VIDEO])
40
-            ->order(['articles.created_at' => 'desc']);
37
+            ->join('articles', 'article_videos.article_uuid = articles.article_uuid', [ 'slug', 'published_at', 'status', 'article_id' ])
38
+            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', [ 'admin_user_id', 'first_name', 'last_name' ])
39
+            ->where([ 'articles.type' => ArticleType::VIDEO ])
40
+            ->order([ 'articles.created_at' => 'desc' ]);
41 41
 
42
-        if($isActive !== null) {
43
-            $select->where(['articles.status' => (int)$isActive]);
42
+        if ($isActive !== null) {
43
+            $select->where([ 'articles.status' => (int) $isActive ]);
44 44
         }
45 45
 
46 46
         return $select;
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
     public function get($id)
50 50
     {
51 51
         $select = $this->getSql()->select()
52
-            ->columns(['title', 'body', 'lead', 'featured_img', 'main_img', 'video_url', 'sub_title'])
52
+            ->columns([ 'title', 'body', 'lead', 'featured_img', 'main_img', 'video_url', 'sub_title' ])
53 53
             ->join('articles', 'article_videos.article_uuid = articles.article_uuid')
54 54
             ->join('category', 'category.category_uuid = articles.category_uuid',
55
-                ['category_slug' => 'slug', 'category_name' => 'name', 'category_id'], 'left')
56
-            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', ['admin_user_id'], 'left')
57
-            ->where(['articles.article_id' => $id]);
55
+                [ 'category_slug' => 'slug', 'category_name' => 'name', 'category_id' ], 'left')
56
+            ->join('admin_users', 'admin_users.admin_user_uuid = articles.admin_user_uuid', [ 'admin_user_id' ], 'left')
57
+            ->where([ 'articles.article_id' => $id ]);
58 58
 
59 59
         return $this->selectWith($select)->current();
60 60
     }
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     public function getLatest($limit = 50)
63 63
     {
64 64
         $select = $this->getSql()->select()
65
-            ->join('articles', 'article_videos.article_uuid = articles.article_uuid', ['article_id', 'slug', 'published_at'])
66
-            ->where(['articles.status' => 1])
67
-            ->order(['published_at' => 'desc'])
65
+            ->join('articles', 'article_videos.article_uuid = articles.article_uuid', [ 'article_id', 'slug', 'published_at' ])
66
+            ->where([ 'articles.status' => 1 ])
67
+            ->order([ 'published_at' => 'desc' ])
68 68
             ->limit($limit);
69 69
 
70 70
         return $this->selectWith($select);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $select = $this->getSql()->select()
76 76
             ->join('articles', 'article_videos.article_uuid = articles.article_uuid')
77
-            ->where(['articles.slug' => $slug]);
77
+            ->where([ 'articles.slug' => $slug ]);
78 78
 
79 79
         return $this->selectWith($select)->current();
80 80
     }
Please login to merge, or discard this patch.
packages/Article/src/Mapper/ArticleMapper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Article\Mapper;
5 5
 
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     public function getCategories($articleId)
46 46
     {
47 47
         $select = $this->getSql()->select()
48
-            ->columns([])
49
-            ->join('category', 'category.category_uuid = articles.category_uuid', ['name', 'slug', 'category_id'])
50
-            ->where(['articles.article_id' => $articleId]);
48
+            ->columns([ ])
49
+            ->join('category', 'category.category_uuid = articles.category_uuid', [ 'name', 'slug', 'category_id' ])
50
+            ->where([ 'articles.article_id' => $articleId ]);
51 51
 
52 52
         return $this->selectWith($select);
53 53
     }
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/VideoServiceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Article\Factory\Service;
5 5
 
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __invoke(ContainerInterface $container): VideoService
23 23
     {
24
-        $config = $container->get('config')['upload'];
25
-        $upload = new Upload($config['public_path'], $config['non_public_path']);
24
+        $config = $container->get('config')[ 'upload' ];
25
+        $upload = new Upload($config[ 'public_path' ], $config[ 'non_public_path' ]);
26 26
 
27 27
         return new VideoService(
28 28
             $container->get(ArticleMapper::class),
Please login to merge, or discard this patch.
packages/Article/src/Factory/Service/PostServiceFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Article\Factory\Service;
5 5
 
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function __invoke(ContainerInterface $container): PostService
22 22
     {
23
-        $config = $container->get('config')['upload'];
24
-        $upload = new Upload($config['public_path'], $config['non_public_path']);
23
+        $config = $container->get('config')[ 'upload' ];
24
+        $upload = new Upload($config[ 'public_path' ], $config[ 'non_public_path' ]);
25 25
 
26 26
         return new PostService(
27 27
             $container->get(ArticleMapper::class),
Please login to merge, or discard this patch.