@@ -26,13 +26,13 @@ discard block |
||
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 |
||
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(); |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 = [ |
@@ -146,9 +146,9 @@ |
||
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'); |
@@ -34,7 +34,7 @@ |
||
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 | { |
@@ -25,9 +25,9 @@ discard block |
||
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 |
||
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(); |
@@ -18,7 +18,7 @@ discard block |
||
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 |
||
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 | ] |
@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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 |
||
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() |
@@ -68,7 +68,7 @@ discard block |
||
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 |
||
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); |
@@ -33,7 +33,7 @@ |
||
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 | { |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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 |
@@ -36,7 +36,7 @@ |
||
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 | { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $this->paginatorMock = $paginator; |
60 | 60 | |
61 | - return [ $paginator ]; |
|
61 | + return [$paginator]; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | public function testConstruction() |