Completed
Pull Request — master (#638)
by Mathias
15:23
created
module/Jobs/test/JobsTest/Form/ListFilterLocationTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     public function testInit()
26 26
     {
27 27
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterLocationFieldset')
28
-                       ->setMethods(array('add', 'parentInit'))
29
-                       ->disableOriginalConstructor()
30
-                       ->getMock();
28
+                        ->setMethods(array('add', 'parentInit'))
29
+                        ->disableOriginalConstructor()
30
+                        ->getMock();
31 31
 
32 32
         $add1 = [
33 33
             'name'    => 'l',
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         ];
62 62
 
63 63
         $target->expects($this->exactly(2))
64
-               ->method('add')
65
-               ->withConsecutive(
66
-                   [$add1],
67
-                   [$add2]
68
-               )->will($this->returnSelf());
64
+                ->method('add')
65
+                ->withConsecutive(
66
+                    [$add1],
67
+                    [$add2]
68
+                )->will($this->returnSelf());
69 69
 
70 70
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
71 71
         $target->init();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 {
19 19
     public function testConstructor()
20 20
     {
21
-        $target= new ListFilterLocationFieldset();
21
+        $target = new ListFilterLocationFieldset();
22 22
         $this->assertInstanceOf('Jobs\Form\ListFilterLocationFieldset', $target);
23 23
     }
24 24
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ),
55 55
             'attributes' => [
56 56
                 'value'            => '10', // default distance
57
-                'data-searchbox'   => -1,  // hide the search box
57
+                'data-searchbox'   => -1, // hide the search box
58 58
                 'data-allowclear'  => 'false', // allow to clear a selected value
59 59
                 'data-placeholder' => 'Distance',
60 60
             ]
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JsonLdTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     private $target = JsonLd::class;
35 35
 
36
-    private $inheritance = [ AbstractHelper::class ];
36
+    private $inheritance = [AbstractHelper::class];
37 37
 
38 38
     public function propertiesProvider()
39 39
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JobOrganizationNameTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     private $target = JobOrganizationName::class;
37 37
 
38
-    private $inheritance = [ AbstractHelper::class ];
38
+    private $inheritance = [AbstractHelper::class];
39 39
 
40 40
     public function invokeTestData()
41 41
     {
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
         $job4->setOrganization($org);
59 59
 
60 60
         return [
61
-            [ $job1, '', 'TestCompany' ],
62
-            [ $job2, '', 'OrgName'],
63
-            [ $job3, 'DefaultName', 'DefaultName' ],
64
-            [ $job4, '', 'Override'],
61
+            [$job1, '', 'TestCompany'],
62
+            [$job2, '', 'OrgName'],
63
+            [$job3, 'DefaultName', 'DefaultName'],
64
+            [$job4, '', 'Override'],
65 65
         ];
66 66
     }
67 67
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/AdminEditLinkTest.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
         'args' => 'getConstructorArgs',
37 37
     ];
38 38
 
39
-    private $inheritance = [ AbstractHelper::class ];
39
+    private $inheritance = [AbstractHelper::class];
40 40
 
41 41
     private function getConstructorArgs()
42 42
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/LoadActiveOrganizationsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
         $this->paginatorMock = $paginator;
60 60
 
61
-        return [ $paginator ];
61
+        return [$paginator];
62 62
     }
63 63
 
64 64
     public function testConstruction()
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/GetOrganizationManagersTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $wf = new WorkflowSettings();
109 109
         $wf->setAcceptApplicationByDepartmentManager($flag('acceptApplication'))
110
-           ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
110
+            ->setAssignDepartmentManagersToJobs($flag('assignManagers'));
111 111
 
112 112
         $org->expects($this->once())->method('getWorkflowSettings')->willReturn($wf);
113 113
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     private function createOrganization(array $spec)
96 96
     {
97
-        $flag = function ($key) use ($spec) {
97
+        $flag = function($key) use ($spec) {
98 98
             return isset($spec[$key]) && $spec[$key];
99 99
         };
100 100
         $org = $this
Please login to merge, or discard this patch.
module/Auth/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Controller/RegisterControllerTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $postData = array(
136 136
             'name' => uniqid('name'),
137
-            'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl'
137
+            'email' => uniqid('email').'@'.uniqid('host').'.com.pl'
138 138
         );
139 139
 
140 140
         $request = new Request();
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     {
182 182
         $postData = array(
183 183
             'name' => uniqid('name'),
184
-            'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl'
184
+            'email' => uniqid('email').'@'.uniqid('host').'.com.pl'
185 185
         );
186 186
 
187 187
         $request = new Request();
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     {
229 229
         $postData = array(
230 230
             'name' => uniqid('name'),
231
-            'email' => uniqid('email') . '@' . uniqid('host') . '.com.pl'
231
+            'email' => uniqid('email').'@'.uniqid('host').'.com.pl'
232 232
         );
233 233
 
234 234
         $request = new Request();
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@
 block discarded – undo
54 54
 
55 55
 
56 56
         $this->serviceMock = $this->getMockBuilder('Auth\Service\Register')
57
-                                  ->disableOriginalConstructor()
58
-                                  ->getMock();
57
+                                    ->disableOriginalConstructor()
58
+                                    ->getMock();
59 59
 
60 60
 
61 61
         $this->paramsMock = $this->getMockBuilder('Laminas\Mvc\Controller\Plugin\Params')
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Entity/InfoTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -242,10 +242,10 @@
 block discarded – undo
242 242
     public function provideGetDisplayNameTestData()
243 243
     {
244 244
         return array(
245
-            array(null,        null,      "[email protected]", "[email protected]"),
245
+            array(null, null, "[email protected]", "[email protected]"),
246 246
             array(" Carsten ", " Bleek ", "[email protected]", "Carsten Bleek"),
247
-            array(null,        " Bleek ", "[email protected]", "Bleek"),
248
-            array(" Carsten ", null,      "[email protected]", "[email protected]"),
247
+            array(null, " Bleek ", "[email protected]", "Bleek"),
248
+            array(" Carsten ", null, "[email protected]", "[email protected]"),
249 249
         );
250 250
     }
251 251
 
Please login to merge, or discard this patch.