Completed
Push — master ( 63a43a...66f803 )
by
unknown
55:43 queued 30:40
created
packages/Article/src/Filter/EventFilter.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
                 [
20 20
                     'name' => 'title',
21 21
                     'required' => true,
22
-                    'filters' => [['name' => 'StringTrim']],
22
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
23 23
                     'validators' => [
24
-                        ['name' => 'NotEmpty'],
25
-                        ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 100]],
24
+                        [ 'name' => 'NotEmpty' ],
25
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100 ] ],
26 26
                     ],
27 27
                 ]
28 28
             );
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
                 [
32 32
                     'name' => 'sub_title',
33 33
                     'required' => false,
34
-                    'filters' => [['name' => 'StringTrim']]
34
+                    'filters' => [ [ 'name' => 'StringTrim' ] ]
35 35
                 ]
36 36
             );
37 37
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 [
40 40
                     'name' => 'place_name',
41 41
                     'required' => true,
42
-                    'filters' => [['name' => 'StringTrim']]
42
+                    'filters' => [ [ 'name' => 'StringTrim' ] ]
43 43
                 ]
44 44
             );
45 45
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                 [
48 48
                     'name' => 'event_url',
49 49
                     'required' => false,
50
-                    'filters' => [['name' => 'StringTrim']]
50
+                    'filters' => [ [ 'name' => 'StringTrim' ] ]
51 51
                 ]
52 52
             );
53 53
 
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
                 [
56 56
                     'name' => 'body',
57 57
                     'required' => true,
58
-                    'filters' => [['name' => 'StringTrim']],
58
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
59 59
                     'validators' => [
60
-                        ['name' => 'NotEmpty'],
61
-                        ['name' => 'StringLength', 'options' => ['min' => 2]],
60
+                        [ 'name' => 'NotEmpty' ],
61
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
62 62
                     ],
63 63
                 ]
64 64
             );
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
                 [
68 68
                     'name' => 'start_at',
69 69
                     'required' => true,
70
-                    'filters' => [['name' => 'StringTrim']],
70
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
71 71
                     'validators' => [
72
-                        ['name' => 'NotEmpty'],
73
-                        ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]
72
+                        [ 'name' => 'NotEmpty' ],
73
+                        [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ]
74 74
                     ]
75 75
                 ]
76 76
             );
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
                 [
80 80
                     'name' => 'end_at',
81 81
                     'required' => true,
82
-                    'filters' => [['name' => 'StringTrim']],
82
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
83 83
                     'validators' => [
84
-                        ['name' => 'NotEmpty'],
85
-                        ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]
84
+                        [ 'name' => 'NotEmpty' ],
85
+                        [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ]
86 86
                     ]
87 87
                 ]
88 88
             );
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
                 [
92 92
                     'name' => 'longitude',
93 93
                     'required' => true,
94
-                    'filters' => [['name' => 'StringTrim']],
95
-                    'validators' => [['name' => 'NotEmpty']],
94
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
95
+                    'validators' => [ [ 'name' => 'NotEmpty' ] ],
96 96
                 ]
97 97
             );
98 98
 
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
                 [
101 101
                     'name' => 'latitude',
102 102
                     'required' => true,
103
-                    'filters' => [['name' => 'StringTrim']],
104
-                    'validators' => [['name' => 'NotEmpty']],
103
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
104
+                    'validators' => [ [ 'name' => 'NotEmpty' ] ],
105 105
                 ]
106 106
             );
107 107
 
Please login to merge, or discard this patch.
packages/Article/src/Filter/VideoFilter.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
                 [
20 20
                     'name' => 'title',
21 21
                     'required' => true,
22
-                    'filters' => [['name' => 'StringTrim']],
22
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
23 23
                     'validators' => [
24
-                        ['name' => 'NotEmpty'],
25
-                        ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 100]],
24
+                        [ 'name' => 'NotEmpty' ],
25
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100 ] ],
26 26
                     ],
27 27
                 ]
28 28
             );
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
                 [
32 32
                     'name' => 'sub_title',
33 33
                     'required' => false,
34
-                    'filters' => [['name' => 'StringTrim']],
34
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
35 35
                     'validators' => [
36
-                        ['name' => 'NotEmpty'],
37
-                        ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 500]],
36
+                        [ 'name' => 'NotEmpty' ],
37
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 500 ] ],
38 38
                     ],
39 39
                 ]
40 40
             );
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
                 [
44 44
                     'name' => 'body',
45 45
                     'required' => true,
46
-                    'filters' => [['name' => 'StringTrim']],
46
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
47 47
                     'validators' => [
48
-                        ['name' => 'NotEmpty'],
49
-                        ['name' => 'StringLength', 'options' => ['min' => 2]],
48
+                        [ 'name' => 'NotEmpty' ],
49
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
50 50
                     ],
51 51
                 ]
52 52
             );
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
                 [
56 56
                     'name' => 'lead',
57 57
                     'required' => true,
58
-                    'filters' => [['name' => 'StringTrim']],
58
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
59 59
                     'validators' => [
60
-                        ['name' => 'NotEmpty'],
61
-                        ['name' => 'StringLength', 'options' => ['min' => 2]],
60
+                        [ 'name' => 'NotEmpty' ],
61
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2 ] ],
62 62
                     ],
63 63
                 ]
64 64
             );
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
                 [
68 68
                     'name' => 'video_url',
69 69
                     'required' => true,
70
-                    'filters' => [['name' => 'StringTrim']],
70
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
71 71
                     'validators' => [
72
-                        ['name' => 'NotEmpty'],
73
-                        ['name' => 'StringLength'],
72
+                        [ 'name' => 'NotEmpty' ],
73
+                        [ 'name' => 'StringLength' ],
74 74
                     ],
75 75
                 ]
76 76
             );
Please login to merge, or discard this patch.
packages/Article/src/Filter/DiscussionFilter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
                 [
20 20
                     'name' => 'title',
21 21
                     'required' => true,
22
-                    'filters' => [['name' => 'StringTrim']],
22
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
23 23
                     'validators' => [
24
-                        ['name' => 'NotEmpty'],
25
-                        ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 100]],
24
+                        [ 'name' => 'NotEmpty' ],
25
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100 ] ],
26 26
                     ],
27 27
                 ]
28 28
             );
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
                 [
32 32
                     'name' => 'body',
33 33
                     'required' => true,
34
-                    'filters' => [['name' => 'StringTrim']],
34
+                    'filters' => [ [ 'name' => 'StringTrim' ] ],
35 35
                     'validators' => [
36
-                        ['name' => 'NotEmpty'],
37
-                        ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 1500]],
36
+                        [ 'name' => 'NotEmpty' ],
37
+                        [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 1500 ] ],
38 38
                     ],
39 39
                 ]
40 40
             );
Please login to merge, or discard this patch.
packages/Article/src/Factory/Service/VideoServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
      */
21 21
     public function __invoke(ContainerInterface $container): VideoService
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 VideoService(
27 27
             $container->get(ArticleMapper::class),
Please login to merge, or discard this patch.
packages/Article/src/Factory/Service/PostServiceFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 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.
packages/Newsletter/src/Web/Action/HandlePostAction.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
 namespace Newsletter\Web\Action;
4 4
 
5 5
 use Psr\Http\Message\ResponseInterface as Response;
@@ -20,13 +20,13 @@  discard block
 block discarded – undo
20 20
     {
21 21
         try {
22 22
             $data = $request->getParsedBody();
23
-            $email = isset($data['email']) ? $data['email'] : null;
23
+            $email = isset($data[ 'email' ]) ? $data[ 'email' ] : null;
24 24
 
25 25
             $this->newsletterService->registerNew($email);
26 26
 
27
-            return new JsonResponse(['message' => 'Uspešno ste se prijavili.']);
27
+            return new JsonResponse([ 'message' => 'Uspešno ste se prijavili.' ]);
28 28
         } catch (\Exception $e) {
29
-            return new JsonResponse(['message' => $e->getMessage()], $e->getCode());
29
+            return new JsonResponse([ 'message' => $e->getMessage() ], $e->getCode());
30 30
         }
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
packages/Newsletter/src/Service/NewsletterService.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
 namespace Newsletter\Service;
4 4
 
5 5
 use Newsletter\Mapper\NewsletterMapper;
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
             throw new \Exception('Email is not valid!', 400);
20 20
         }
21 21
 
22
-        $current = $this->newsletterMapper->select(['email' => $email])->current();
22
+        $current = $this->newsletterMapper->select([ 'email' => $email ])->current();
23 23
 
24 24
         if (!$current) {
25
-            return $this->newsletterMapper->insert(['email' => $email]);
25
+            return $this->newsletterMapper->insert([ 'email' => $email ]);
26 26
         }
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
packages/Page/src/ConfigProvider.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
 namespace Page;
4 4
 
5 5
 use Zend\ServiceManager\Factory\InvokableFactory;
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
                     'page/pagination' => __DIR__ . '/../templates/partial/pagination.php',
15 15
                 ],
16 16
                 'paths' => [
17
-                    'page' => [__DIR__ . '/../templates/page'],
17
+                    'page' => [ __DIR__ . '/../templates/page' ],
18 18
                 ],
19 19
             ],
20 20
 
@@ -32,13 +32,13 @@  discard block
 block discarded – undo
32 32
                     'name'            => 'admin.pages',
33 33
                     'path'            => '/admin/pages',
34 34
                     'middleware'      => Controller\PageController::class,
35
-                    'allowed_methods' => ['GET'],
35
+                    'allowed_methods' => [ 'GET' ],
36 36
                 ],
37 37
                 [
38 38
                     'name'            => 'admin.pages.action',
39 39
                     'path'            => '/admin/pages/:action/:id',
40 40
                     'middleware'      => Controller\PageController::class,
41
-                    'allowed_methods' => ['GET', 'POST']
41
+                    'allowed_methods' => [ 'GET', 'POST' ]
42 42
                 ]
43 43
             ],
44 44
 
Please login to merge, or discard this patch.
packages/Page/src/Mapper/PageMapperFactory.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
 namespace Page\Mapper;
4 4
 
5 5
 use Page\Entity\Page;
Please login to merge, or discard this patch.