@@ -83,7 +83,7 @@ |
||
83 | 83 | { |
84 | 84 | return static::create( |
85 | 85 | ProcessJobEvent::JOB_STATUS_FAILURE_RECOVERABLE, |
86 | - [ 'reason' => $reason ] + $options |
|
86 | + ['reason' => $reason] + $options |
|
87 | 87 | ); |
88 | 88 | } |
89 | 89 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @var String |
39 | 39 | * @ODM\Field(type="string") |
40 | 40 | */ |
41 | - protected $qualifications=''; |
|
41 | + protected $qualifications = ''; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Requirements field of the job template |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @var String |
47 | 47 | * @ODM\Field(type="string") |
48 | 48 | */ |
49 | - protected $requirements=''; |
|
49 | + protected $requirements = ''; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Benefits field of the job template |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @var String |
55 | 55 | * @ODM\Field(type="string") |
56 | 56 | */ |
57 | - protected $benefits=''; |
|
57 | + protected $benefits = ''; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Job title field of the job template |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @var String |
63 | 63 | * @ODM\Field(type="string") |
64 | 64 | */ |
65 | - protected $title=''; |
|
65 | + protected $title = ''; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Company description field of the job template |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @var String |
71 | 71 | * @ODM\Field(type="string") |
72 | 72 | */ |
73 | - protected $description=''; |
|
73 | + protected $description = ''; |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @var String |
79 | 79 | * @ODM\Field(type="string") |
80 | 80 | */ |
81 | - protected $language='en'; |
|
81 | + protected $language = 'en'; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Pure HTML |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @var string |
88 | 88 | * @since 0.29 |
89 | 89 | */ |
90 | - protected $html=''; |
|
90 | + protected $html = ''; |
|
91 | 91 | |
92 | 92 | /** |
93 | 93 | * Introduction text for the job template |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setQualifications($qualifications) |
122 | 122 | { |
123 | - $this->qualifications= (string) $qualifications; |
|
123 | + $this->qualifications = (string) $qualifications; |
|
124 | 124 | return $this; |
125 | 125 | } |
126 | 126 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | */ |
143 | 143 | public function setRequirements($requirements) |
144 | 144 | { |
145 | - $this->requirements=(string) $requirements; |
|
145 | + $this->requirements = (string) $requirements; |
|
146 | 146 | return $this; |
147 | 147 | } |
148 | 148 | |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function setBenefits($benefits) |
166 | 166 | { |
167 | - $this->benefits=(string) $benefits; |
|
167 | + $this->benefits = (string) $benefits; |
|
168 | 168 | return $this; |
169 | 169 | } |
170 | 170 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function setTitle($title) |
188 | 188 | { |
189 | - $this->title=(string) $title; |
|
189 | + $this->title = (string) $title; |
|
190 | 190 | return $this; |
191 | 191 | } |
192 | 192 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | public function setDescription($description) |
210 | 210 | { |
211 | - $this->description=(string) $description; |
|
211 | + $this->description = (string) $description; |
|
212 | 212 | return $this; |
213 | 213 | } |
214 | 214 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | */ |
231 | 231 | public function setLanguage($language) |
232 | 232 | { |
233 | - $this->language=(string) $language; |
|
233 | + $this->language = (string) $language; |
|
234 | 234 | return $this; |
235 | 235 | } |
236 | 236 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | |
340 | 340 | public function __get($property) |
341 | 341 | { |
342 | - $getter = "get" . ucfirst($property); |
|
342 | + $getter = "get".ucfirst($property); |
|
343 | 343 | if (method_exists($this, $getter)) { |
344 | 344 | return $this->$getter(); |
345 | 345 | } |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | public function __set($property, $value) |
355 | 355 | { |
356 | 356 | //$this->checkWriteAccess(); |
357 | - $setter = 'set' . ucfirst($property); |
|
357 | + $setter = 'set'.ucfirst($property); |
|
358 | 358 | if (method_exists($this, $setter)) { |
359 | 359 | $this->$setter($value); |
360 | 360 | return; |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** @var \Jobs\Model\ApiJobDehydrator $apiJobDehydrator */ |
36 | 36 | $apiJobDehydrator = $container->get('Jobs\Model\ApiJobDehydrator'); |
37 | 37 | |
38 | - $filterStatus = function ($value) { |
|
38 | + $filterStatus = function($value) { |
|
39 | 39 | static $validValues = [ |
40 | 40 | StatusInterface::ACTIVE, |
41 | 41 | StatusInterface::CREATED, |
@@ -39,9 +39,9 @@ |
||
39 | 39 | |
40 | 40 | private $target = AdminCategoriesController::class; |
41 | 41 | |
42 | - private $inheritance = [ AbstractActionController::class ]; |
|
42 | + private $inheritance = [AbstractActionController::class]; |
|
43 | 43 | |
44 | - private function getConfiguredServiceManager($rootExists=true, $postRequest = false) |
|
44 | + private function getConfiguredServiceManager($rootExists = true, $postRequest = false) |
|
45 | 45 | { |
46 | 46 | $form = $this |
47 | 47 | ->getMockBuilder(CategoriesContainer::class) |
@@ -76,7 +76,7 @@ |
||
76 | 76 | vfsStream::setup('/'); |
77 | 77 | vfsStream::create($isJobs ? ['module' => ['Jobs' => []]] : ['module' => []]); |
78 | 78 | $expectModulePath = $isJobs ? vfsStream::url('./module/Jobs/config/') : '.'; |
79 | - $config['module_paths'] = array_map(function ($i) { |
|
79 | + $config['module_paths'] = array_map(function($i) { |
|
80 | 80 | return vfsStream::url($i); |
81 | 81 | }, $config['module_paths']); |
82 | 82 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | public function testTrimAndStripTagsFromJobTitle() |
56 | 56 | { |
57 | - $expected="title (m/w)"; |
|
57 | + $expected = "title (m/w)"; |
|
58 | 58 | $output = $this->inputFilter->getInputs(); |
59 | 59 | $filter = $output['title']->getFilterChain(); |
60 | 60 | $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)')); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]], |
46 | 46 | ]; |
47 | 47 | |
48 | - private $inheritance = [ FactoryInterface::class ]; |
|
48 | + private $inheritance = [FactoryInterface::class]; |
|
49 | 49 | |
50 | 50 | |
51 | 51 | public function testCreateService() |
@@ -109,9 +109,9 @@ |
||
109 | 109 | ->disableOriginalConstructor() |
110 | 110 | ->getMock(); |
111 | 111 | |
112 | - $callback1 = [new MailSenderListenerMock(),'listen1']; |
|
113 | - $callback2 = [new MailSenderListenerMock(),'listen2']; |
|
114 | - $callback3 = [new MailSenderListenerMock(),'listen3']; |
|
112 | + $callback1 = [new MailSenderListenerMock(), 'listen1']; |
|
113 | + $callback2 = [new MailSenderListenerMock(), 'listen2']; |
|
114 | + $callback3 = [new MailSenderListenerMock(), 'listen3']; |
|
115 | 115 | $events->expects($this->exactly(3)) |
116 | 116 | ->method('attach') |
117 | 117 | ->withConsecutive( |
@@ -94,7 +94,7 @@ |
||
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 |