Completed
Pull Request — master (#524)
by Mathias
11:33
created
module/Jobs/test/JobsTest/Form/ListFilterTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     public function testInit()
37 37
     {
38 38
         $target = $this->getMockBuilder('\Jobs\Form\ListFilter')
39
-                       ->setMethods(array('add', 'setName', 'setAttributes'))
40
-                       ->disableOriginalConstructor()
41
-                       ->getMock();
39
+                        ->setMethods(array('add', 'setName', 'setAttributes'))
40
+                        ->disableOriginalConstructor()
41
+                        ->getMock();
42 42
 
43 43
         $add1 = [
44 44
             'type'    => 'Jobs/ListFilterBaseFieldset',
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
         ];
50 50
 
51 51
         $target->expects($this->exactly(2))
52
-               ->method('add')
53
-               ->withConsecutive(
54
-                   array($add1),
55
-                   array($add2)
56
-               )->will($this->returnSelf());
52
+                ->method('add')
53
+                ->withConsecutive(
54
+                    array($add1),
55
+                    array($add2)
56
+                )->will($this->returnSelf());
57 57
 
58 58
         $target->expects($this->once())->method('setName')->with('jobs-list-filter');
59 59
         $target->expects($this->once())
60 60
             ->method('setAttributes')
61 61
             ->with([
62
-                       'id' => 'jobs-list-filter',
63
-                       'data-handle-by' => 'native'
64
-                   ]);
62
+                        'id' => 'jobs-list-filter',
63
+                        'data-handle-by' => 'native'
64
+                    ]);
65 65
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilter */
66 66
         $target->init();
67 67
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterAdminTest.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterAdminFieldset')
29
-                       ->setMethods(array('add', 'parentInit'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'parentInit'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type'       => 'Select',
34
-                 'name'       => 'status',
35
-                 'options'    => array(
36
-                     'value_options' => array(
37
-                         'all' => 'All',
38
-                         Status::ACTIVE => 'Active',
39
-                         Status::INACTIVE => 'Inactive',
40
-                         Status::CREATED => 'Created',
41
-                         Status::PUBLISH => 'Published',
42
-                         Status::REJECTED => 'Rejected',
43
-                         Status::EXPIRED =>  'Expired',
44
-                     )
45
-                 ),
46
-                 'attributes' => array(
47
-                     'value' => Status::CREATED,
48
-                     'data-searchbox'  => -1,  // hide the search box
49
-                     'data-allowclear' => 'false', // allow to clear a selected value
50
-                 )
34
+                    'name'       => 'status',
35
+                    'options'    => array(
36
+                        'value_options' => array(
37
+                            'all' => 'All',
38
+                            Status::ACTIVE => 'Active',
39
+                            Status::INACTIVE => 'Inactive',
40
+                            Status::CREATED => 'Created',
41
+                            Status::PUBLISH => 'Published',
42
+                            Status::REJECTED => 'Rejected',
43
+                            Status::EXPIRED =>  'Expired',
44
+                        )
45
+                    ),
46
+                    'attributes' => array(
47
+                        'value' => Status::CREATED,
48
+                        'data-searchbox'  => -1,  // hide the search box
49
+                        'data-allowclear' => 'false', // allow to clear a selected value
50
+                    )
51 51
         ];
52 52
 
53 53
         $add2 = [
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         ];
64 64
 
65 65
         $target->expects($this->exactly(2))
66
-               ->method('add')
67
-               ->withConsecutive(
68
-                   [$add1],
69
-                   [$add2]
70
-               )->will($this->returnSelf());
66
+                ->method('add')
67
+                ->withConsecutive(
68
+                    [$add1],
69
+                    [$add2]
70
+                )->will($this->returnSelf());
71 71
 
72 72
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
73 73
         $target->init();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 {
20 20
     public function testConstructor()
21 21
     {
22
-        $target= new ListFilterAdminFieldset();
22
+        $target = new ListFilterAdminFieldset();
23 23
         $this->assertInstanceOf('Jobs\Form\ListFilterAdminFieldset', $target);
24 24
     }
25 25
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                  ),
46 46
                  'attributes' => array(
47 47
                      'value' => Status::CREATED,
48
-                     'data-searchbox'  => -1,  // hide the search box
48
+                     'data-searchbox'  => -1, // hide the search box
49 49
                      'data-allowclear' => 'false', // allow to clear a selected value
50 50
                  )
51 51
         ];
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CompanyNameFieldsetTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     public function setUp()
33 33
     {
34 34
         $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset')
35
-                             ->disableOriginalConstructor()
36
-                             ->setMethods(array('setAttribute', 'setName', 'add'))
37
-                             ->getMock();
35
+                                ->disableOriginalConstructor()
36
+                                ->setMethods(array('setAttribute', 'setName', 'add'))
37
+                                ->getMock();
38 38
     }
39 39
 
40 40
     /**
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     public function testInitialization()
52 52
     {
53 53
         $this->target->expects($this->once())
54
-                     ->method('setAttribute')
55
-                     ->with('id', 'jobcompanyname-fieldset');
54
+                        ->method('setAttribute')
55
+                        ->with('id', 'jobcompanyname-fieldset');
56 56
 
57 57
         $this->target->expects($this->once())
58
-                     ->method('setName')
59
-                     ->with('jobCompanyName');
58
+                        ->method('setName')
59
+                        ->with('jobCompanyName');
60 60
 
61 61
         $addParam1 = array(
62 62
             'type' => 'Jobs/HiringOrganizationSelect',
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             ];
92 92
 
93 93
         $this->target->expects($this->exactly(2))
94
-                     ->method('add')
95
-                     ->withConsecutive(
94
+                        ->method('add')
95
+                        ->withConsecutive(
96 96
                         [$addParam1],
97 97
                         [$addParam2]
98 98
                     );
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/ListFilterBaseTest.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
     public function testInit()
27 27
     {
28 28
         $target = $this->getMockBuilder('\Jobs\Form\ListFilterBaseFieldset')
29
-                       ->setMethods(array('add', 'setName'))
30
-                       ->disableOriginalConstructor()
31
-                       ->getMock();
29
+                        ->setMethods(array('add', 'setName'))
30
+                        ->disableOriginalConstructor()
31
+                        ->getMock();
32 32
 
33 33
         $add1 = ['type' => 'Hidden',
34
-                 'name' => 'page',
35
-                 'attributes' => ['value' => 1,]
34
+                    'name' => 'page',
35
+                    'attributes' => ['value' => 1,]
36 36
         ];
37 37
 
38 38
         $add2 = [
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         ];
44 44
 
45 45
         $target->expects($this->exactly(2))
46
-               ->method('add')
47
-               ->withConsecutive(
48
-                   [$add1],
49
-                   [$add2]
50
-               )->will($this->returnSelf());
46
+                ->method('add')
47
+                ->withConsecutive(
48
+                    [$add1],
49
+                    [$add2]
50
+                )->will($this->returnSelf());
51 51
 
52 52
         /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */
53 53
         $target->init();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 {
20 20
     public function testConstructor()
21 21
     {
22
-        $target= new ListFilterBaseFieldset();
22
+        $target = new ListFilterBaseFieldset();
23 23
         $this->assertInstanceOf('Jobs\Form\ListFilterBaseFieldset', $target);
24 24
     }
25 25
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $add1 = ['type' => 'Hidden',
34 34
                  'name' => 'page',
35
-                 'attributes' => ['value' => 1,]
35
+                 'attributes' => ['value' => 1, ]
36 36
         ];
37 37
 
38 38
         $add2 = [
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/InputFilter/AtsModeTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,9 +146,9 @@
 block discarded – undo
146 146
     {
147 147
         /* @var $target AtsMode|\PHPUnit_Framework_MockObject_MockObject */
148 148
         $target = $this->getMockBuilder('\Jobs\Form\InputFilter\AtsMode')
149
-                       ->disableOriginalConstructor()
150
-                       ->setMethods(array('add', 'populate'))
151
-                       ->getMock();
149
+                        ->disableOriginalConstructor()
150
+                        ->setMethods(array('add', 'populate'))
151
+                        ->getMock();
152 152
 
153 153
         $add = $target->expects($this->exactly(count($expectedSpec)))
154 154
             ->method('add');
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CategoriesContainerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         ],
35 35
     ];
36 36
 
37
-    private $inheritance = [ WizardContainer::class ];
37
+    private $inheritance = [WizardContainer::class];
38 38
 
39 39
     public function testInitialize()
40 40
     {
Please login to merge, or discard this patch.
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/ApplyButtonsTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     public function testInvalidDataReturnsEmptyString($data)
62 62
     {
63 63
         $helper = $this->helper;
64
-		$this->assertSame('', $helper($data));
64
+        $this->assertSame('', $helper($data));
65 65
     }
66 66
     
67 67
     public function testDefaults()
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                     }));
154 154
         
155 155
         $helper = $this->helper;
156
-		$helper($data, $options);
156
+        $helper($data, $options);
157 157
     }
158 158
     
159 159
     public function testSendImmediatelyOption()
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     }));
174 174
         
175 175
         $helper = $this->helper;
176
-		$helper($data, $options);
176
+        $helper($data, $options);
177 177
     }
178 178
     
179 179
     public function invalidDataThrowsExceptionData()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $this->view->expects($this->once())
70 70
             ->method('partial')
71
-            ->with(dirname($this->viewModel->getTemplate()) . '/' . $this->helper->getPartial(),
71
+            ->with(dirname($this->viewModel->getTemplate()).'/'.$this->helper->getPartial(),
72 72
                     $this->callback(function(array $variables)
73 73
                     {
74 74
                         return $variables['default'] && $variables['oneClick'] === [];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         
87 87
         $this->view->expects($this->once())
88 88
             ->method('partial')
89
-            ->with(dirname($this->viewModel->getTemplate()) . '/' . $options['partial']);
89
+            ->with(dirname($this->viewModel->getTemplate()).'/'.$options['partial']);
90 90
         
91 91
         $helper = $this->helper;
92 92
         $helper($this->validData(), $options);
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.