Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Cv/test/CvTest/Factory/Form/EmploymentCollectionFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     private $target = EmploymentCollectionFactory::class;
38 38
 
39
-    private $inheritance = [ FactoryInterface::class ];
39
+    private $inheritance = [FactoryInterface::class];
40 40
 
41 41
     public function testInvokation()
42 42
     {
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/SkillCollectionFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 
38 38
     private $target = SkillCollectionFactory::class;
39 39
 
40
-    private $inheritance = [ FactoryInterface::class ];
40
+    private $inheritance = [FactoryInterface::class];
41 41
 
42 42
     public function testInvokation()
43 43
     {
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Form/EducationCollectionFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     private $target = EducationCollectionFactory::class;
37 37
 
38
-    private $inheritance = [ FactoryInterface::class ];
38
+    private $inheritance = [FactoryInterface::class];
39 39
 
40 40
     public function testInvokation()
41 41
     {
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/CvTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,17 +86,17 @@
 block discarded – undo
86 86
             [ 'status', ['value' => new Status(), 'default' => new Status() ]],
87 87
             [ 'status', ['value' => Status::NONPUBLIC, 'expect' => '@' . Status::class]],
88 88
             [ 'status', ['value' => Status::PUBLIC_TO_ALL, 'ignore_getter' => true,
89
-                         'pre' => function () use ($permissions2) {
90
-                             $this->target->setPermissions($permissions2);
91
-                         }]
89
+                            'pre' => function () use ($permissions2) {
90
+                                $this->target->setPermissions($permissions2);
91
+                            }]
92 92
             ],
93 93
             [ 'status', ['value' => Status::NONPUBLIC, 'ignore_getter' => true,
94
-                         'pre' => function () use ($permissions2) {
95
-                             $this->target->setPermissions($permissions2);
96
-                         },
97
-                         'post' => function () use ($permissions2) {
98
-                             $permissions2->__phpunit_verify();
99
-                         }]
94
+                            'pre' => function () use ($permissions2) {
95
+                                $this->target->setPermissions($permissions2);
96
+                            },
97
+                            'post' => function () use ($permissions2) {
98
+                                $permissions2->__phpunit_verify();
99
+                            }]
100 100
             ],
101 101
             [ 'attachments', $defaultOptions],
102 102
             [ 'user', ['value' => new User(), 'ignore_getter' => true,
Please login to merge, or discard this patch.
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
 
40 40
     private $target = Cv::class;
41 41
 
42
-    private $inheritance = [ AbstractIdentifiableEntity::class, CvInterface::class, DraftableEntityInterface::class ];
42
+    private $inheritance = [AbstractIdentifiableEntity::class, CvInterface::class, DraftableEntityInterface::class];
43 43
 
44 44
     public function propertiesProvider()
45 45
     {
46 46
         $coll = new ArrayCollection();
47 47
         $prefJob = new PreferredJob();
48
-        $defaultOptions = [ 'default' => $coll, 'value' => $coll ];
49
-        $indexedByOptions = function ($prop) use ($coll) {
50
-            return [ $prop, [ 'value' => $coll, 'getter_method' => 'get*IndexedById', 'expect' => '@' . IdentityWrapper::class]];
48
+        $defaultOptions = ['default' => $coll, 'value' => $coll];
49
+        $indexedByOptions = function($prop) use ($coll) {
50
+            return [$prop, ['value' => $coll, 'getter_method' => 'get*IndexedById', 'expect' => '@'.IdentityWrapper::class]];
51 51
         };
52 52
         $permissions = $this
53 53
             ->getMockBuilder(Permissions::class)
@@ -69,46 +69,46 @@  discard block
 block discarded – undo
69 69
 
70 70
 
71 71
         return [
72
-            [ 'educations', $defaultOptions],
73
-            [ 'employments',$defaultOptions],
74
-            [ 'skills',     $defaultOptions],
75
-            [ 'languageSkills', $defaultOptions],
76
-            [ 'nativeLanguages', ['default' => [], 'value' => []]],
77
-            [ 'preferredJob', [ 'default' => $prefJob, 'value' => $prefJob]],
78
-            [ 'user', new User() ],
79
-            [ 'contact', new Contact()],
80
-            [ 'contact', ['value' => new Info(), 'expect' => '@' . Contact::class ]],
72
+            ['educations', $defaultOptions],
73
+            ['employments', $defaultOptions],
74
+            ['skills', $defaultOptions],
75
+            ['languageSkills', $defaultOptions],
76
+            ['nativeLanguages', ['default' => [], 'value' => []]],
77
+            ['preferredJob', ['default' => $prefJob, 'value' => $prefJob]],
78
+            ['user', new User()],
79
+            ['contact', new Contact()],
80
+            ['contact', ['value' => new Info(), 'expect' => '@'.Contact::class]],
81 81
             $indexedByOptions('languageSkills'),
82 82
             $indexedByOptions('employments'),
83 83
             $indexedByOptions('educations'),
84 84
             $indexedByOptions('skills'),
85
-            [ 'isDraft', [ 'value' => false, 'getter_method' => '*']],
86
-            [ 'status', ['value' => new Status(), 'default' => new Status() ]],
87
-            [ 'status', ['value' => Status::NONPUBLIC, 'expect' => '@' . Status::class]],
88
-            [ 'status', ['value' => Status::PUBLIC_TO_ALL, 'ignore_getter' => true,
89
-                         'pre' => function () use ($permissions2) {
85
+            ['isDraft', ['value' => false, 'getter_method' => '*']],
86
+            ['status', ['value' => new Status(), 'default' => new Status()]],
87
+            ['status', ['value' => Status::NONPUBLIC, 'expect' => '@'.Status::class]],
88
+            ['status', ['value' => Status::PUBLIC_TO_ALL, 'ignore_getter' => true,
89
+                         'pre' => function() use ($permissions2) {
90 90
                              $this->target->setPermissions($permissions2);
91 91
                          }]
92 92
             ],
93
-            [ 'status', ['value' => Status::NONPUBLIC, 'ignore_getter' => true,
94
-                         'pre' => function () use ($permissions2) {
93
+            ['status', ['value' => Status::NONPUBLIC, 'ignore_getter' => true,
94
+                         'pre' => function() use ($permissions2) {
95 95
                              $this->target->setPermissions($permissions2);
96 96
                          },
97
-                         'post' => function () use ($permissions2) {
97
+                         'post' => function() use ($permissions2) {
98 98
                              $permissions2->__phpunit_verify();
99 99
                          }]
100 100
             ],
101
-            [ 'attachments', $defaultOptions],
102
-            [ 'user', ['value' => new User(), 'ignore_getter' => true,
103
-                        'pre' => function () use ($permissions) {
101
+            ['attachments', $defaultOptions],
102
+            ['user', ['value' => new User(), 'ignore_getter' => true,
103
+                        'pre' => function() use ($permissions) {
104 104
                             $this->target->setUser(new User())->setPermissions($permissions);
105 105
                         },
106
-                        'post' => function () use ($permissions) {
106
+                        'post' => function() use ($permissions) {
107 107
                             $permissions->__phpunit_verify();
108 108
                         }
109 109
             ]],
110 110
 
111
-            [ 'resourceId', ['value' => 'Entity/Cv', 'ignore_setter' => true ]],
111
+            ['resourceId', ['value' => 'Entity/Cv', 'ignore_setter' => true]],
112 112
         ];
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/ContactImageTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,18 +29,18 @@
 block discarded – undo
29 29
         ContactImage::class,
30 30
     ];
31 31
 
32
-    private $inheritance = [ FileEntity::class ];
32
+    private $inheritance = [FileEntity::class];
33 33
 
34 34
     public function propertiesProvider()
35 35
     {
36 36
         return [
37
-            [ 'contact', '@' . Contact::class ],
38
-            [ 'uri', [
39
-                'pre' => function () {
37
+            ['contact', '@'.Contact::class],
38
+            ['uri', [
39
+                'pre' => function() {
40 40
                     $this->target->setId('some-id')->setName('some-name');
41 41
                 },
42 42
                 'ignore_setter' => true,
43
-                'value' => '/file/Cv.ContactImage/some-id/' . urlencode('some-name'),
43
+                'value' => '/file/Cv.ContactImage/some-id/'.urlencode('some-name'),
44 44
             ]],
45 45
         ];
46 46
     }
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/EmploymentFieldsetTest.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -76,37 +76,37 @@
 block discarded – undo
76 76
                 ]
77 77
             ],
78 78
             [
79
-                 'type' => 'Core/Datepicker',
80
-                 'name' => 'endDate',
81
-                 'options' => [
82
-                     'label' => 'End date'
83
-                 ],
79
+                    'type' => 'Core/Datepicker',
80
+                    'name' => 'endDate',
81
+                    'options' => [
82
+                        'label' => 'End date'
83
+                    ],
84 84
             ],
85
-             [
86
-                 'type' => 'checkbox',
87
-                 'name' => 'currentIndicator',
88
-                 'options' => [
89
-                     'label' => 'ongoing'
90
-                 ]
91
-             ],
92
-             [
93
-                 'name' => 'organizationName',
94
-                 'options' => [
95
-                     'label' => 'Company Name'],
96
-                 'attributes' => [
97
-                     'title' =>  'please enter the name of the company'
98
-                 ],
99
-             ],
100
-             [
101
-                 'name' => 'description',
102
-                 'type' => 'Zend\Form\Element\Textarea',
103
-                 'options' => [
104
-                     'label' => 'Description',
105
-                 ],
106
-                 'attributes' => [
107
-                     'title' => 'please describe your position',
108
-                 ],
109
-             ],
85
+                [
86
+                    'type' => 'checkbox',
87
+                    'name' => 'currentIndicator',
88
+                    'options' => [
89
+                        'label' => 'ongoing'
90
+                    ]
91
+                ],
92
+                [
93
+                    'name' => 'organizationName',
94
+                    'options' => [
95
+                        'label' => 'Company Name'],
96
+                    'attributes' => [
97
+                        'title' =>  'please enter the name of the company'
98
+                    ],
99
+                ],
100
+                [
101
+                    'name' => 'description',
102
+                    'type' => 'Zend\Form\Element\Textarea',
103
+                    'options' => [
104
+                        'label' => 'Description',
105
+                    ],
106
+                    'attributes' => [
107
+                        'title' => 'please describe your position',
108
+                    ],
109
+                ],
110 110
         ];
111 111
 
112 112
         $addArgValidator = function ($arg) use ($add) {
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@  discard block
 block discarded – undo
47 47
             'mock' => [
48 48
                 'add',
49 49
                 'setName' => ['with' => 'employment', 'count' => 1, 'return' => '__self__'],
50
-                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class ], 'count' => 1, 'return' => '__self__'],
51
-                'setObject' => ['@with' => ['isInstanceOf', Employment::class ], 'count' => 1, 'return' => '__self__'],
50
+                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class], 'count' => 1, 'return' => '__self__'],
51
+                'setObject' => ['@with' => ['isInstanceOf', Employment::class], 'count' => 1, 'return' => '__self__'],
52 52
             ],
53 53
             'args' => false,
54 54
         ],
55 55
         '@testPopulateValues' => [
56
-            'mock' => [ 'get' ],
56
+            'mock' => ['get'],
57 57
         ],
58 58
     ];
59 59
 
60
-    private $inheritance = [ Fieldset::class, InputFilterProviderInterface::class, ViewPartialProviderInterface::class ];
60
+    private $inheritance = [Fieldset::class, InputFilterProviderInterface::class, ViewPartialProviderInterface::class];
61 61
 
62
-    private $traits = [ ViewPartialProviderTrait::class ];
62
+    private $traits = [ViewPartialProviderTrait::class];
63 63
 
64 64
     private $attributes = [
65 65
         'defaultPartial' => 'cv/form/employment',
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
              ],
110 110
         ];
111 111
 
112
-        $addArgValidator = function ($arg) use ($add) {
112
+        $addArgValidator = function($arg) use ($add) {
113 113
             static $count = 0;
114 114
 
115 115
             /* PPHUnit calls this callback again after all invokations are made
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
     public function populateValuesDataProvider()
138 138
     {
139 139
         return [
140
-            [ [ ], false ],
141
-            [ ['currentIndicator'=>true], false ],
142
-            [ ['currentIndicator' => false, 'endDate' => 'endDate' ], false ],
143
-            [ ['endDate' => 'endDate'], false ],
144
-            [ ['currentIndicator' => true, 'endDate' => 'endDate'], true ],
140
+            [[], false],
141
+            [['currentIndicator'=>true], false],
142
+            [['currentIndicator' => false, 'endDate' => 'endDate'], false],
143
+            [['endDate' => 'endDate'], false],
144
+            [['currentIndicator' => true, 'endDate' => 'endDate'], true],
145 145
         ];
146 146
     }
147 147
 
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/EducationFieldsetTest.php 2 patches
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -78,61 +78,61 @@
 block discarded – undo
78 78
                 ]
79 79
             ],
80 80
             [
81
-                 'type' => 'Core/Datepicker',
82
-                 'name' => 'endDate',
83
-                 'options' => [
84
-                     'label' => 'End date'
85
-                 ],
81
+                    'type' => 'Core/Datepicker',
82
+                    'name' => 'endDate',
83
+                    'options' => [
84
+                        'label' => 'End date'
85
+                    ],
86 86
             ],
87
-             [
88
-                 'type' => 'checkbox',
89
-                 'name' => 'currentIndicator',
90
-                 'options' => [
91
-                     'label' => 'ongoing'
92
-                 ]
93
-             ],
94
-             [
95
-                 'name' => 'competencyName',
96
-                 'options' => [
97
-                     'label' => 'Degree'],
98
-                 'attributes' => [
99
-                     'title' =>  'please enter the name of your qualification'
100
-                 ],
101
-             ],
102
-             [
103
-                 'name' => 'organizationName',
104
-                 'options' => [
105
-                     'label' => 'Organization Name'],
106
-                 'attributes' => [
107
-                     'title' =>  'please enter the name of the university or school'
108
-                 ],
109
-             ],
87
+                [
88
+                    'type' => 'checkbox',
89
+                    'name' => 'currentIndicator',
90
+                    'options' => [
91
+                        'label' => 'ongoing'
92
+                    ]
93
+                ],
94
+                [
95
+                    'name' => 'competencyName',
96
+                    'options' => [
97
+                        'label' => 'Degree'],
98
+                    'attributes' => [
99
+                        'title' =>  'please enter the name of your qualification'
100
+                    ],
101
+                ],
102
+                [
103
+                    'name' => 'organizationName',
104
+                    'options' => [
105
+                        'label' => 'Organization Name'],
106
+                    'attributes' => [
107
+                        'title' =>  'please enter the name of the university or school'
108
+                    ],
109
+                ],
110 110
             [
111
-                 'name' => 'country',
112
-                 'options' => [
113
-                     'label' => 'Country'],
114
-                 'attributes' => [
115
-                     'title' => /*@translate */ 'please select the country'
116
-                 ],
117
-             ],
118
-             [
119
-                 'name' => 'city',
120
-                 'options' => [
121
-                     'label' => 'City'],
122
-                 'attributes' => [
123
-                     'title' => 'please enter the name of the city'
124
-                 ],
125
-             ],
126
-             [
127
-                 'name' => 'description',
128
-                 'type' => 'Zend\Form\Element\Textarea',
129
-                 'options' => [
130
-                     'label' => 'Description',
131
-                 ],
132
-                 'attributes' => [
133
-                     'title' => 'please enter a description',
134
-                 ],
135
-             ],
111
+                    'name' => 'country',
112
+                    'options' => [
113
+                        'label' => 'Country'],
114
+                    'attributes' => [
115
+                        'title' => /*@translate */ 'please select the country'
116
+                    ],
117
+                ],
118
+                [
119
+                    'name' => 'city',
120
+                    'options' => [
121
+                        'label' => 'City'],
122
+                    'attributes' => [
123
+                        'title' => 'please enter the name of the city'
124
+                    ],
125
+                ],
126
+                [
127
+                    'name' => 'description',
128
+                    'type' => 'Zend\Form\Element\Textarea',
129
+                    'options' => [
130
+                        'label' => 'Description',
131
+                    ],
132
+                    'attributes' => [
133
+                        'title' => 'please enter a description',
134
+                    ],
135
+                ],
136 136
         ];
137 137
 
138 138
         $addArgValidator = function ($arg) use ($add) {
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@  discard block
 block discarded – undo
47 47
             'mock' => [
48 48
                 'add',
49 49
                 'setName' => ['with' => 'education', 'count' => 1, 'return' => '__self__'],
50
-                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class ], 'count' => 1, 'return' => '__self__'],
51
-                'setObject' => ['@with' => ['isInstanceOf', Education::class ], 'count' => 1, 'return' => '__self__'],
50
+                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class], 'count' => 1, 'return' => '__self__'],
51
+                'setObject' => ['@with' => ['isInstanceOf', Education::class], 'count' => 1, 'return' => '__self__'],
52 52
             ],
53 53
             'args' => false,
54 54
         ],
55 55
         '@testPopulateValues' => [
56
-            'mock' => [ 'get' ],
56
+            'mock' => ['get'],
57 57
         ],
58 58
     ];
59 59
 
60
-    private $inheritance = [ Fieldset::class, InputFilterProviderInterface::class, ViewPartialProviderInterface::class ];
60
+    private $inheritance = [Fieldset::class, InputFilterProviderInterface::class, ViewPartialProviderInterface::class];
61 61
 
62
-    private $traits = [ ViewPartialProviderTrait::class ];
62
+    private $traits = [ViewPartialProviderTrait::class];
63 63
 
64 64
     private $attributes = [
65 65
         'defaultPartial' => 'cv/form/education',
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
              ],
136 136
         ];
137 137
 
138
-        $addArgValidator = function ($arg) use ($add) {
138
+        $addArgValidator = function($arg) use ($add) {
139 139
             static $count = 0;
140 140
 
141 141
             /* PPHUnit calls this callback again after all invokations are made
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
     public function populateValuesDataProvider()
164 164
     {
165 165
         return [
166
-            [ [ ], false ],
167
-            [ ['currentIndicator'=>true], false ],
168
-            [ ['currentIndicator' => false, 'endDate' => 'endDate' ], false ],
169
-            [ ['endDate' => 'endDate'], false ],
170
-            [ ['currentIndicator' => true, 'endDate' => 'endDate'], true ],
166
+            [[], false],
167
+            [['currentIndicator'=>true], false],
168
+            [['currentIndicator' => false, 'endDate' => 'endDate'], false],
169
+            [['endDate' => 'endDate'], false],
170
+            [['currentIndicator' => true, 'endDate' => 'endDate'], true],
171 171
         ];
172 172
     }
173 173
 
Please login to merge, or discard this patch.
Install/test/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,11 +68,11 @@
 block discarded – undo
68 68
 
69 69
     public function testWritingConfigFileWorks()
70 70
     {
71
-        $dir = sys_get_temp_dir() . '/YawikConfigCreator-' . uniqid();
71
+        $dir = sys_get_temp_dir().'/YawikConfigCreator-'.uniqid();
72 72
 
73 73
         mkdir($dir);
74
-        mkdir($dir . '/config');
75
-        mkdir($dir . '/config/autoload');
74
+        mkdir($dir.'/config');
75
+        mkdir($dir.'/config/autoload');
76 76
 
77 77
         chdir($dir);
78 78
 
Please login to merge, or discard this patch.
module/Install/test/InstallTest/Controller/Plugin/UserCreatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         $dm = $this->createMock(DocumentManager::class);
55 55
 
56 56
         $this->target = new UserCreator($credentialFilter, $dm);
57
-        $this->credentialFilter= $credentialFilter;
57
+        $this->credentialFilter = $credentialFilter;
58 58
         $this->documentManager = $dm;
59 59
     }
60 60
 
Please login to merge, or discard this patch.