Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Jobs/test/JobsTest/Listener/PublisherTest.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -131,62 +131,62 @@  discard block
 block discarded – undo
131 131
                 ->will($this->returnValue('<html />'));
132 132
 
133 133
         $this->viewPhpRendererStrategy = $this->getMockBuilder('\Laminas\View\Strategy\PhpRendererStrategy')
134
-                          ->disableOriginalConstructor()
135
-                          ->getMock();
134
+                            ->disableOriginalConstructor()
135
+                            ->getMock();
136 136
 
137 137
         $this->viewPhpRendererStrategy->expects($this->once())
138
-                          ->method('getRenderer')
139
-                          ->will($this->returnValue($this->renderer));
138
+                            ->method('getRenderer')
139
+                            ->will($this->returnValue($this->renderer));
140 140
 
141 141
         $this->response = $this->getMockBuilder('\Laminas\Http\Response')
142
-                                              ->disableOriginalConstructor()
143
-                                              ->getMock();
142
+                                                ->disableOriginalConstructor()
143
+                                                ->getMock();
144 144
 
145 145
         $this->jobEvent = $this->getMockBuilder('\Jobs\Listener\Events\JobEvent')
146
-                               ->disableOriginalConstructor()
147
-                               ->getMock();
146
+                                ->disableOriginalConstructor()
147
+                                ->getMock();
148 148
 
149 149
         $this->job = $this->getMockBuilder('\Jobs\Entity\Job')
150
-                          ->disableOriginalConstructor()
151
-                          ->getMock();
150
+                            ->disableOriginalConstructor()
151
+                            ->getMock();
152 152
 
153 153
         $this->publisher = $this->getMockBuilder('\Jobs\Entity\Publisher')
154
-                          ->disableOriginalConstructor()
155
-                          ->getMock();
154
+                            ->disableOriginalConstructor()
155
+                            ->getMock();
156 156
 
157 157
         $this->publisher->expects($this->at(0))
158
-                           ->method('__get')
159
-                           ->with('externalId')
160
-                           ->will($this->returnValue('externalId32'));
158
+                            ->method('__get')
159
+                            ->with('externalId')
160
+                            ->will($this->returnValue('externalId32'));
161 161
 
162 162
         $this->publisher->expects($this->at(1))
163
-                           ->method('__get')
164
-                           ->with('reference')
165
-                           ->will($this->returnValue('reference32'));
163
+                            ->method('__get')
164
+                            ->with('reference')
165
+                            ->will($this->returnValue('reference32'));
166 166
 
167 167
         $this->publisher->expects($this->any())
168
-                              ->method('__set')
169
-                              ->will($this->returnCallback($staticClassPrefix . 'publisherSetter'));
168
+                                ->method('__set')
169
+                                ->will($this->returnCallback($staticClassPrefix . 'publisherSetter'));
170 170
 
171 171
         $this->htmlAbsPathFilter = $this->getMockBuilder('\Core\Filter\HtmlAbsPathFilter')
172 172
                                     ->disableOriginalConstructor()
173 173
                                     ->getMock();
174 174
 
175 175
         $this->htmlAbsPathFilter->expects($this->any())
176
-                              ->method('filter')
177
-                              ->will($this->returnCallback($staticClassPrefix . 'absPathFilter'));
176
+                                ->method('filter')
177
+                                ->will($this->returnCallback($staticClassPrefix . 'absPathFilter'));
178 178
 
179 179
         $this->filterManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
180
-                                     ->disableOriginalConstructor()
181
-                                     ->getMock();
180
+                                        ->disableOriginalConstructor()
181
+                                        ->getMock();
182 182
 
183 183
         $this->filterManager->expects($this->at(0))
184 184
                         ->method('get')
185 185
                         ->willReturn($this->htmlAbsPathFilter);
186 186
 
187 187
         $this->restClient = $this->getMockBuilder('\Core\Service\RestClient')
188
-                                 ->disableOriginalConstructor()
189
-                                 ->getMock();
188
+                                    ->disableOriginalConstructor()
189
+                                    ->getMock();
190 190
 
191 191
         //$this->restClient->expects($this->at(0))
192 192
         //                   ->method('getHost')
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
             ->will($this->returnValue($this->response));
203 203
 
204 204
         $this->organization = $this->getMockBuilder('\Organizations\Entity\Organization')
205
-                                 ->disableOriginalConstructor()
206
-                                 ->getMock();
205
+                                    ->disableOriginalConstructor()
206
+                                    ->getMock();
207 207
 
208 208
         $this->organization->expects($this->at(0))
209 209
                         ->method('__get')
@@ -211,21 +211,21 @@  discard block
 block discarded – undo
211 211
                         ->will($this->returnValue('name32'));
212 212
 
213 213
         $this->provider = $this->getMockBuilder('\Jobs\Options\ProviderOptions')
214
-                                   ->disableOriginalConstructor()
215
-                                   ->getMock();
214
+                                    ->disableOriginalConstructor()
215
+                                    ->getMock();
216 216
 
217 217
         $this->providerChannel = $this->getMockBuilder('\Jobs\Options\ChannelOptions')
218
-                                      ->disableOriginalConstructor()
219
-                                      ->getMock();
218
+                                        ->disableOriginalConstructor()
219
+                                        ->getMock();
220 220
 
221 221
         $this->providerChannel->expects($this->any())
222
-                              ->method('__get')
223
-                              ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter'));
222
+                                ->method('__get')
223
+                                ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter'));
224 224
 
225 225
         $this->provider->expects($this->any(0))
226
-                       ->method('__get')
227
-                       ->with('channels')
228
-                       ->willReturn(array('bbb value' => $this->providerChannel));
226
+                        ->method('__get')
227
+                        ->with('channels')
228
+                        ->willReturn(array('bbb value' => $this->providerChannel));
229 229
 
230 230
         $this->viewModel = $this->getMockBuilder('\Laminas\View\Model\ViewModel')
231 231
                                 ->disableOriginalConstructor()
@@ -306,13 +306,13 @@  discard block
 block discarded – undo
306 306
     protected function setRestReturn($referenceUpdate, $applyIdUpdate)
307 307
     {
308 308
         $this->response->expects($this->any())
309
-                       ->method('getBody')
310
-                       ->will($this->returnValue(json_encode(
311
-                           array(
312
-                               'referenceUpdate' => $referenceUpdate,
313
-                               'applyIdUpdate' => $applyIdUpdate
314
-                           )
315
-                       )));
309
+                        ->method('getBody')
310
+                        ->will($this->returnValue(json_encode(
311
+                            array(
312
+                                'referenceUpdate' => $referenceUpdate,
313
+                                'applyIdUpdate' => $applyIdUpdate
314
+                            )
315
+                        )));
316 316
     }
317 317
 
318 318
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/JobEventManagerFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
         $expectedIdentifiers = array('Jobs', 'Jobs/Events');
50 50
         $eventManager = new EventManager();
51 51
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
52
-                         ->disableOriginalConstructor()
53
-                         ->getMock();
52
+                            ->disableOriginalConstructor()
53
+                            ->getMock();
54 54
 
55 55
         $services->expects($this->once())->method('get')->with('EventManager')->willReturn($eventManager);
56 56
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Model/ApiJobDehydratorFactoryTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,12 +57,12 @@
 block discarded – undo
57 57
                 ->willReturn($urlHelper);
58 58
 
59 59
         $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
60
-                                   ->disableOriginalConstructor()
61
-                                   ->getMock();
60
+                                    ->disableOriginalConstructor()
61
+                                    ->getMock();
62 62
 
63 63
         $serviceManagerMock->expects($this->once())->method('get')
64
-                           ->with('ViewHelperManager')
65
-                           ->willReturn($helpers);
64
+                            ->with('ViewHelperManager')
65
+                            ->willReturn($helpers);
66 66
 
67 67
         $service = $target->__invoke($serviceManagerMock, 'irrelevant');
68 68
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/ModuleOptionsFactoryTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@
 block discarded – undo
24 24
     public function testFactory($config)
25 25
     {
26 26
         $serviceManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
27
-                               ->disableOriginalConstructor()->getMock();
27
+                                ->disableOriginalConstructor()->getMock();
28 28
 
29 29
 
30 30
 
31 31
         if (isset($config['core_options'])) {
32 32
             $coreOptions = new \Core\Options\ModuleOptions($config['core_options']);
33 33
             $serviceManager->expects($this->exactly(2))
34
-                           ->method('get')
35
-                           ->withConsecutive(array('Config'), array('Core/Options'))
36
-                           ->will($this->onConsecutiveCalls($config, $coreOptions));
34
+                            ->method('get')
35
+                            ->withConsecutive(array('Config'), array('Core/Options'))
36
+                            ->will($this->onConsecutiveCalls($config, $coreOptions));
37 37
         } else {
38 38
             $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config);
39 39
         }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/MailSenderFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -45,17 +45,17 @@
 block discarded – undo
45 45
         ));
46 46
 
47 47
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
48
-                         ->disableOriginalConstructor()
49
-                         ->getMock();
48
+                            ->disableOriginalConstructor()
49
+                            ->getMock();
50 50
 
51 51
         $services->expects($this->exactly(3))
52
-                 ->method('get')
53
-                 ->withConsecutive(
54
-                     array('Core/MailService'),
55
-                     array('Jobs/Options'),
56
-                     array('Core/Options')
57
-                 )
58
-                 ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
52
+                    ->method('get')
53
+                    ->withConsecutive(
54
+                        array('Core/MailService'),
55
+                        array('Jobs/Options'),
56
+                        array('Core/Options')
57
+                    )
58
+                    ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
59 59
 
60 60
         $expectedOptions = array(
61 61
             'siteName' => $coreOptions->getSiteName(),
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/MultipostingMultiCheckboxFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
     {
53 53
         $select = $this->getMockBuilder('Jobs\Form\MultipostingSelect')->disableOriginalConstructor()->getMock();
54 54
         $select->expects($this->once())
55
-               ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes');
55
+                ->method('setViewPartial')->with('jobs/form/multiposting-checkboxes');
56 56
 
57 57
         $select->expects($this->once())
58
-               ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js'));
58
+                ->method('setHeadscripts')->with(array('modules/Jobs/js/form.multiposting-checkboxes.js'));
59 59
 
60 60
         $factory = $this->getMockBuilder('\Laminas\ServiceManager\FactoryInterface')
61 61
                         ->setMethods(array('__invoke'))
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/HiringOrganizationSelectFactoryTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,21 +78,21 @@
 block discarded – undo
78 78
         $this->user = $user;
79 79
 
80 80
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
81
-                     ->disableOriginalConstructor()
82
-                     ->getMock();
81
+                        ->disableOriginalConstructor()
82
+                        ->getMock();
83 83
 
84 84
         $auth->expects($this->once())
85
-             ->method('getUser')
86
-             ->willReturn($user);
85
+                ->method('getUser')
86
+                ->willReturn($user);
87 87
 
88 88
         $services = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
89
-                         ->disableOriginalConstructor()
90
-                         ->getMock();
89
+                            ->disableOriginalConstructor()
90
+                            ->getMock();
91 91
 
92 92
         $services->expects($this->once())
93
-                 ->method('get')
94
-                 ->with('AuthenticationService')
95
-                 ->willReturn($auth);
93
+                    ->method('get')
94
+                    ->with('AuthenticationService')
95
+                    ->willReturn($auth);
96 96
         
97 97
         $this->services = $services;
98 98
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Filter/ChannelPricesFactoryTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@
 block discarded – undo
43 43
         $provider=new ProviderOptions();
44 44
 
45 45
         $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
46
-                                   ->disableOriginalConstructor()
47
-                                   ->getMock();
46
+                                    ->disableOriginalConstructor()
47
+                                    ->getMock();
48 48
 
49 49
 
50 50
         $serviceManagerMock
Please login to merge, or discard this patch.
module/Cv/src/Form/SearchForm.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -33,44 +33,44 @@
 block discarded – undo
33 33
     protected function addElements()
34 34
     {
35 35
         $this->add(
36
-             [
37
-                 'name' => 'l',
38
-                 'type' => 'LocationSelect',
39
-                 'options' => [
40
-                     'label' => /*@translate*/ 'Location',
41
-                     'span' => 3,
42
-                     'location_entity' => Location::class,
43
-                 ],
44
-                 'attributes' => [
45
-                     'data-width' => '100%',
46
-                 ],
47
-             ]
36
+                [
37
+                    'name' => 'l',
38
+                    'type' => 'LocationSelect',
39
+                    'options' => [
40
+                        'label' => /*@translate*/ 'Location',
41
+                        'span' => 3,
42
+                        'location_entity' => Location::class,
43
+                    ],
44
+                    'attributes' => [
45
+                        'data-width' => '100%',
46
+                    ],
47
+                ]
48 48
         );
49 49
 
50 50
         $this->add(
51
-             [
52
-                 'name' => 'd',
53
-                 'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select
54
-                 'options' => [
55
-                     'label' => /*@translate*/ 'Distance',
56
-                     'value_options' => [
57
-                         '5' => '5 km',
58
-                         '10' => '10 km',
59
-                         '20' => '20 km',
60
-                         '50' => '50 km',
61
-                         '100' => '100 km'
62
-                     ],
63
-                     'span' => 4,
51
+                [
52
+                    'name' => 'd',
53
+                    'type' => 'Core\Form\Element\Select', //Laminas\Form\Element\Select
54
+                    'options' => [
55
+                        'label' => /*@translate*/ 'Distance',
56
+                        'value_options' => [
57
+                            '5' => '5 km',
58
+                            '10' => '10 km',
59
+                            '20' => '20 km',
60
+                            '50' => '50 km',
61
+                            '100' => '100 km'
62
+                        ],
63
+                        'span' => 4,
64 64
 
65
-                 ],
66
-                 'attributes' => [
67
-                     'value' => '10', // default distance
68
-                     'data-searchbox' => -1,  // hide the search box
69
-                     'data-allowclear' => 'false', // allow to clear a selected value
70
-                     'data-placeholder' => /*@translate*/ 'Distance',
71
-                     'data-width' => '100%',
72
-                 ]
73
-             ]
65
+                    ],
66
+                    'attributes' => [
67
+                        'value' => '10', // default distance
68
+                        'data-searchbox' => -1,  // hide the search box
69
+                        'data-allowclear' => 'false', // allow to clear a selected value
70
+                        'data-placeholder' => /*@translate*/ 'Distance',
71
+                        'data-width' => '100%',
72
+                    ]
73
+                ]
74 74
         );
75 75
     }
76 76
 }
Please login to merge, or discard this patch.