@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | private $target = CustomerNote::class; |
30 | 30 | |
31 | - private $inheritance = [ SummaryForm::class ]; |
|
31 | + private $inheritance = [SummaryForm::class]; |
|
32 | 32 | |
33 | 33 | private $attributes = [ |
34 | 34 | 'baseFieldset' => 'Jobs/CustomerNoteFieldset', |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | public function testInitialization() |
83 | 83 | { |
84 | 84 | $target = $this->getMockBuilder('\Jobs\Form\AtsModeFieldset') |
85 | - ->disableOriginalConstructor() |
|
86 | - ->setMethods(array('add', 'setName')) |
|
87 | - ->getMock(); |
|
85 | + ->disableOriginalConstructor() |
|
86 | + ->setMethods(array('add', 'setName')) |
|
87 | + ->getMock(); |
|
88 | 88 | |
89 | 89 | $target->expects($this->once())->method('setName')->with('atsMode'); |
90 | 90 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | ]; |
151 | 151 | |
152 | 152 | $target->expects($this->exactly(5))->method('add') |
153 | - ->withConsecutive( |
|
153 | + ->withConsecutive( |
|
154 | 154 | array($addSelect), array($addUri), array($addEmail), array($addOneClickApply), array($addOneClickApplyProfiles) |
155 | 155 | ); |
156 | 156 |
@@ -42,9 +42,9 @@ |
||
42 | 42 | { |
43 | 43 | /* @var $target AtsMode */ |
44 | 44 | $target = $this->getMockBuilder('\Jobs\Form\AtsMode') |
45 | - ->disableOriginalConstructor() |
|
46 | - ->setMethods(array('addBaseFieldset', 'addButtonsFieldset')) |
|
47 | - ->getMock(); |
|
45 | + ->disableOriginalConstructor() |
|
46 | + ->setMethods(array('addBaseFieldset', 'addButtonsFieldset')) |
|
47 | + ->getMock(); |
|
48 | 48 | |
49 | 49 | $target->init(); |
50 | 50 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ], |
35 | 35 | ]; |
36 | 36 | |
37 | - private $inheritance = [ Fieldset::class ]; |
|
37 | + private $inheritance = [Fieldset::class]; |
|
38 | 38 | |
39 | 39 | public function testInitialize() |
40 | 40 | { |
@@ -26,21 +26,21 @@ discard block |
||
26 | 26 | public function testInit() |
27 | 27 | { |
28 | 28 | $target = $this->getMockBuilder('\Jobs\Form\ListFilterPersonalFieldset') |
29 | - ->setMethods(array('add', 'parentInit')) |
|
30 | - ->disableOriginalConstructor() |
|
31 | - ->getMock(); |
|
29 | + ->setMethods(array('add', 'parentInit')) |
|
30 | + ->disableOriginalConstructor() |
|
31 | + ->getMock(); |
|
32 | 32 | |
33 | 33 | $add1 = ['type' => 'Radio', |
34 | - 'name' => 'by', |
|
35 | - 'options' => array( |
|
36 | - 'value_options' => array( |
|
37 | - 'all' => /*@translate*/ 'Show all jobs', |
|
38 | - 'me' => /*@translate*/ 'Show my jobs', |
|
39 | - ), |
|
40 | - ), |
|
41 | - 'attributes' => array( |
|
42 | - 'value' => 'all', |
|
43 | - ) |
|
34 | + 'name' => 'by', |
|
35 | + 'options' => array( |
|
36 | + 'value_options' => array( |
|
37 | + 'all' => /*@translate*/ 'Show all jobs', |
|
38 | + 'me' => /*@translate*/ 'Show my jobs', |
|
39 | + ), |
|
40 | + ), |
|
41 | + 'attributes' => array( |
|
42 | + 'value' => 'all', |
|
43 | + ) |
|
44 | 44 | ]; |
45 | 45 | |
46 | 46 | $add2 = [ |
@@ -59,11 +59,11 @@ discard block |
||
59 | 59 | ]; |
60 | 60 | |
61 | 61 | $target->expects($this->exactly(2)) |
62 | - ->method('add') |
|
63 | - ->withConsecutive( |
|
64 | - [$add1], |
|
65 | - [$add2] |
|
66 | - )->will($this->returnSelf()); |
|
62 | + ->method('add') |
|
63 | + ->withConsecutive( |
|
64 | + [$add1], |
|
65 | + [$add2] |
|
66 | + )->will($this->returnSelf()); |
|
67 | 67 | |
68 | 68 | /* @var $target \PHPUnit_Framework_MockObject_MockObject|\Jobs\Form\ListFilterLocationFieldset */ |
69 | 69 | $target->init(); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | public function testConstructor() |
21 | 21 | { |
22 | - $target= new ListFilterPersonalFieldset(); |
|
22 | + $target = new ListFilterPersonalFieldset(); |
|
23 | 23 | $this->assertInstanceOf('Jobs\Form\ListFilterPersonalFieldset', $target); |
24 | 24 | } |
25 | 25 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | ], |
40 | 40 | ]; |
41 | 41 | |
42 | - private $inheritance = [ MetaDataFieldset::class, ViewPartialProviderInterface::class ]; |
|
42 | + private $inheritance = [MetaDataFieldset::class, ViewPartialProviderInterface::class]; |
|
43 | 43 | |
44 | 44 | private $attributes = [ |
45 | 45 | 'defaultPartial' => 'jobs/form/customer-note' |
@@ -52,15 +52,15 @@ discard block |
||
52 | 52 | $strategy = new DefaultStrategy(); |
53 | 53 | $select->setHydratorStrategy($strategy); |
54 | 54 | $formElements = $this |
55 | - ->getMockBuilder(FormElementManagerV3Polyfill::class) |
|
56 | - ->disableOriginalConstructor() |
|
57 | - ->setMethods(['get']) |
|
58 | - ->getMock() |
|
55 | + ->getMockBuilder(FormElementManagerV3Polyfill::class) |
|
56 | + ->disableOriginalConstructor() |
|
57 | + ->setMethods(['get']) |
|
58 | + ->getMock() |
|
59 | 59 | ; |
60 | 60 | $formElements |
61 | - ->expects($this->exactly(3)) |
|
62 | - ->method('get') |
|
63 | - ->withConsecutive( |
|
61 | + ->expects($this->exactly(3)) |
|
62 | + ->method('get') |
|
63 | + ->withConsecutive( |
|
64 | 64 | [ |
65 | 65 | 'Core/Tree/Select', |
66 | 66 | [ |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | ] |
119 | 119 | ] |
120 | 120 | ) |
121 | - ->willReturn($select) |
|
121 | + ->willReturn($select) |
|
122 | 122 | ; |
123 | 123 | $this->target->expects($this->exactly(3))->method('add')->with($select); |
124 | 124 |
@@ -36,14 +36,14 @@ |
||
36 | 36 | private $target = [ |
37 | 37 | ClassificationsFieldset::class, |
38 | 38 | '@testInitialize' => [ |
39 | - 'mock' => ['setName' => ['with' => 'classifications'], 'add' ], |
|
39 | + 'mock' => ['setName' => ['with' => 'classifications'], 'add'], |
|
40 | 40 | ], |
41 | 41 | ]; |
42 | 42 | |
43 | - private $inheritance = [ Fieldset::class ]; |
|
43 | + private $inheritance = [Fieldset::class]; |
|
44 | 44 | |
45 | 45 | private $properties = [ |
46 | - ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class ]], |
|
46 | + ['hydrator', ['ignore_setter' => true, 'ignore_getter' => true, 'default@' => EntityHydrator::class]], |
|
47 | 47 | ]; |
48 | 48 | |
49 | 49 | public function testInitialize() |
@@ -36,9 +36,9 @@ discard block |
||
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 |
||
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 | } |
@@ -26,28 +26,28 @@ discard block |
||
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 |
||
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(); |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 | ]; |