Completed
Push — master ( c02965...f19773 )
by Aleksandar
100:21 queued 75:50
created
packages/Article/src/Filter/ArticleFilter.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 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
                 [
20 20
                 'name'       => 'slug',
21 21
                 'required'   => true,
22
-                'filters'    => [['name' => 'StringTrim', 'options' => ['charlist' => '/']]],
22
+                'filters'    => [ [ 'name' => 'StringTrim', 'options' => [ 'charlist' => '/' ] ] ],
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,8 +31,8 @@  discard block
 block discarded – undo
31 31
                 [
32 32
                 'name'       => 'published_at',
33 33
                 'required'   => true,
34
-                'filters'    => [['name' => 'StringTrim']],
35
-                'validators' => [['name' => 'NotEmpty'], ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]]
34
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
35
+                'validators' => [ [ 'name' => 'NotEmpty' ], [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ] ]
36 36
                 ]
37 37
             );
38 38
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 [
55 55
                 'name'     => 'status',
56 56
                 'required' => false,
57
-                'filters'  => [['name' => 'Boolean']],
57
+                'filters'  => [ [ 'name' => 'Boolean' ] ],
58 58
                 ]
59 59
             );
60 60
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 [
63 63
                 'name'     => 'is_wysiwyg_editor',
64 64
                 'required' => false,
65
-                'filters'  => [['name' => 'Boolean']],
65
+                'filters'  => [ [ 'name' => 'Boolean' ] ],
66 66
                 ]
67 67
             );
68 68
 
Please login to merge, or discard this patch.
packages/Article/src/Filter/DiscussionFilter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 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
                 [
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/Filter/VideoFilter.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 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
                 [
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/EventFilter.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 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
                 [
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,8 +67,8 @@  discard block
 block discarded – undo
67 67
                 [
68 68
                 'name'       => 'start_at',
69 69
                 'required'   => true,
70
-                'filters'    => [['name' => 'StringTrim']],
71
-                'validators' => [['name' => 'NotEmpty'], ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]]
70
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
71
+                'validators' => [ [ 'name' => 'NotEmpty' ], [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ] ]
72 72
                 ]
73 73
             );
74 74
 
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
                 [
77 77
                 'name'       => 'end_at',
78 78
                 'required'   => true,
79
-                'filters'    => [['name' => 'StringTrim']],
80
-                'validators' => [['name' => 'NotEmpty'], ['name' => 'Date', 'options' => ['format' => 'Y-m-d H:i:s']]]
79
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
80
+                'validators' => [ [ 'name' => 'NotEmpty' ], [ 'name' => 'Date', 'options' => [ 'format' => 'Y-m-d H:i:s' ] ] ]
81 81
                 ]
82 82
             );
83 83
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
                 [
86 86
                 'name'       => 'longitude',
87 87
                 'required'   => true,
88
-                'filters'    => [['name' => 'StringTrim']],
89
-                'validators' => [['name' => 'NotEmpty']],
88
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
89
+                'validators' => [ [ 'name' => 'NotEmpty' ] ],
90 90
                 ]
91 91
             );
92 92
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
                 [
95 95
                 'name'       => 'latitude',
96 96
                 'required'   => true,
97
-                'filters'    => [['name' => 'StringTrim']],
98
-                'validators' => [['name' => 'NotEmpty']],
97
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
98
+                'validators' => [ [ 'name' => 'NotEmpty' ] ],
99 99
                 ]
100 100
             );
101 101
 
Please login to merge, or discard this patch.
packages/Article/src/Filter/PostFilter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -12,17 +12,17 @@  discard block
 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
                 [
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' => 100000]],
36
+                    [ 'name' => 'NotEmpty' ],
37
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 100000 ] ],
38 38
                 ],
39 39
                 ]
40 40
             );
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
                 [
44 44
                 'name'       => 'lead',
45 45
                 'required'   => true,
46
-                'filters'    => [['name' => 'StringTrim']],
46
+                'filters'    => [ [ 'name' => 'StringTrim' ] ],
47 47
                 'validators' => [
48
-                    ['name' => 'NotEmpty'],
49
-                    ['name' => 'StringLength', 'options' => ['min' => 2, 'max' => 50000]],
48
+                    [ 'name' => 'NotEmpty' ],
49
+                    [ 'name' => 'StringLength', 'options' => [ 'min' => 2, 'max' => 50000 ] ],
50 50
                 ],
51 51
                 ]
52 52
             );
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 [
56 56
                 'name'     => 'has_layout',
57 57
                 'required' => false,
58
-                'filters'  => [['name' => 'Boolean']],
58
+                'filters'  => [ [ 'name' => 'Boolean' ] ],
59 59
                 ]
60 60
             );
61 61
 
Please login to merge, or discard this patch.
packages/Article/tests/View/Helper/PostHelperTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,26 +16,26 @@
 block discarded – undo
16 16
     public function testForSelectShouldReturnArray()
17 17
     {
18 18
         $postService = $this->getMockBuilder('Article\Service\PostService')
19
-            ->setMethods(['getForSelect'])
19
+            ->setMethods([ 'getForSelect' ])
20 20
             ->disableOriginalConstructor()
21 21
             ->getMockForAbstractClass();
22 22
         $postService->expects(static::once())
23 23
             ->method('getForSelect')
24
-            ->willReturn([]);
24
+            ->willReturn([ ]);
25 25
         $postHelper = new \Article\View\Helper\PostHelper($postService);
26
-        static::assertSame([], $postHelper->forSelect());
26
+        static::assertSame([ ], $postHelper->forSelect());
27 27
     }
28 28
 
29 29
     public function testForWebShouldReturnArray()
30 30
     {
31 31
         $postService = $this->getMockBuilder('Article\Service\PostService')
32
-            ->setMethods(['getLatestWeb'])
32
+            ->setMethods([ 'getLatestWeb' ])
33 33
             ->disableOriginalConstructor()
34 34
             ->getMockForAbstractClass();
35 35
         $postService->expects(static::once())
36 36
             ->method('getLatestWeb')
37
-            ->willReturn([]);
37
+            ->willReturn([ ]);
38 38
         $postHelper = new \Article\View\Helper\PostHelper($postService);
39
-        static::assertSame([], $postHelper->forWeb());
39
+        static::assertSame([ ], $postHelper->forWeb());
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
packages/Article/tests/View/Helper/VideoHelperTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
     public function testGetLatestShouldReturnArray()
17 17
     {
18 18
         $videoService = $this->getMockBuilder('Article\Service\VideoService')
19
-            ->setMethods(['fetchLatest'])
19
+            ->setMethods([ 'fetchLatest' ])
20 20
             ->disableOriginalConstructor()
21 21
             ->getMockForAbstractClass();
22 22
         $videoService->expects(static::once())
23 23
             ->method('fetchLatest')
24
-            ->willReturn([]);
24
+            ->willReturn([ ]);
25 25
         $videoHelper = new \Article\View\Helper\VideoHelper($videoService);
26
-        static::assertSame([], $videoHelper->getLatest());
26
+        static::assertSame([ ], $videoHelper->getLatest());
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
packages/Article/tests/View/Helper/EventHelperTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@
 block discarded – undo
16 16
     public function testAllShouldReturnArray()
17 17
     {
18 18
         $eventService = $this->getMockBuilder('Article\Service\EventService')
19
-            ->setMethods(['fetchLatest'])
19
+            ->setMethods([ 'fetchLatest' ])
20 20
             ->disableOriginalConstructor()
21 21
             ->getMockForAbstractClass();
22 22
         $eventService->expects(static::once())
23 23
             ->method('fetchLatest')
24
-            ->willReturn([]);
24
+            ->willReturn([ ]);
25 25
         $eventHelper = new \Article\View\Helper\EventHelper($eventService);
26
-        static::assertSame([], $eventHelper->getLatest());
26
+        static::assertSame([ ], $eventHelper->getLatest());
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
packages/Article/tests/Factory/View/Helper/EventHelperFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
             ->disableOriginalConstructor()
11 11
             ->getMockForAbstractClass();
12 12
         $container = $this->getMockBuilder(\Interop\Container\ContainerInterface::class)
13
-            ->setMethods(['get'])
13
+            ->setMethods([ 'get' ])
14 14
             ->getMockForAbstractClass();
15 15
         $container->expects(static::at(0))
16 16
             ->method('get')
Please login to merge, or discard this patch.