@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->add([ |
28 | 28 | 'name' => 'endDate', |
29 | - 'required' => ! $data['currentIndicator'] |
|
29 | + 'required' => !$data['currentIndicator'] |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | return parent::setData($data); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ], |
63 | 63 | 'attributes' => [ |
64 | 64 | 'value' => '10', // default distance |
65 | - 'data-searchbox' => -1, // hide the search box |
|
65 | + 'data-searchbox' => -1, // hide the search box |
|
66 | 66 | 'data-allowclear' => 'false', // allow to clear a selected value |
67 | 67 | 'data-placeholder' => /*@translate*/ 'Distance', |
68 | 68 | ] |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @var array |
83 | 83 | * @ODM\Collection |
84 | 84 | */ |
85 | - protected $nativeLanguages=[]; |
|
85 | + protected $nativeLanguages = []; |
|
86 | 86 | |
87 | 87 | |
88 | 88 | /** |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function setIsDraft($isDraft) |
269 | 269 | { |
270 | - $this->isDraft=$isDraft; |
|
270 | + $this->isDraft = $isDraft; |
|
271 | 271 | return $this; |
272 | 272 | } |
273 | 273 | |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function setNativeLanguages($nativeLanguages) |
339 | 339 | { |
340 | - $this->nativeLanguages=$nativeLanguages; |
|
340 | + $this->nativeLanguages = $nativeLanguages; |
|
341 | 341 | return $this; |
342 | 342 | } |
343 | 343 |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function setDesiredJob($desiredJob) |
88 | 88 | { |
89 | - $this->desiredJob=$desiredJob; |
|
89 | + $this->desiredJob = $desiredJob; |
|
90 | 90 | return $this; |
91 | 91 | } |
92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setDesiredLocation($desiredLocation) |
107 | 107 | { |
108 | - $this->desiredLocation=$desiredLocation; |
|
108 | + $this->desiredLocation = $desiredLocation; |
|
109 | 109 | return $this; |
110 | 110 | } |
111 | 111 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function setWillingnessToTravel($willingnessToTravel) |
145 | 145 | { |
146 | - $this->willingnessToTravel=$willingnessToTravel; |
|
146 | + $this->willingnessToTravel = $willingnessToTravel; |
|
147 | 147 | return $this; |
148 | 148 | } |
149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function setExpectedSalary($expectedSalary) |
164 | 164 | { |
165 | - $this->expectedSalary=$expectedSalary; |
|
165 | + $this->expectedSalary = $expectedSalary; |
|
166 | 166 | return $this; |
167 | 167 | } |
168 | 168 |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | throw new \RuntimeException('Invalid application id.'); |
92 | 92 | } |
93 | 93 | |
94 | - $action = 'process'; |
|
94 | + $action = 'process'; |
|
95 | 95 | |
96 | 96 | $routeMatch->setParam('action', $action); |
97 | 97 | } else { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | { |
183 | 183 | $this->response->setStatusCode(410); |
184 | 184 | $model = new ViewModel( |
185 | - [ 'content' => /*@translate*/ 'Invalid apply id'] |
|
185 | + ['content' => /*@translate*/ 'Invalid apply id'] |
|
186 | 186 | ); |
187 | 187 | $model->setTemplate('applications/error/not-found'); |
188 | 188 | return $model; |
@@ -360,13 +360,13 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | if ('previewmail' == $this->params()->fromQuery('do')) { |
363 | - $this->mailer('Applications/CarbonCopy', [ 'application' => $application], true); |
|
363 | + $this->mailer('Applications/CarbonCopy', ['application' => $application], true); |
|
364 | 364 | $this->notification()->success(/*@translate*/ 'Mail has been send'); |
365 | 365 | return new JsonModel(); |
366 | 366 | } |
367 | 367 | |
368 | 368 | if ('sendmail' == $this->params()->fromQuery('do')) { |
369 | - $jobEntity = $application->getJob(); |
|
369 | + $jobEntity = $application->getJob(); |
|
370 | 370 | |
371 | 371 | $mailData = array( |
372 | 372 | 'application' => $application, |
@@ -396,8 +396,8 @@ discard block |
||
396 | 396 | |
397 | 397 | $repositories->store($application); |
398 | 398 | |
399 | - $events = $services->get('Applications/Events'); |
|
400 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]); |
|
399 | + $events = $services->get('Applications/Events'); |
|
400 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]); |
|
401 | 401 | |
402 | 402 | $model = new ViewModel( |
403 | 403 | array( |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | } |
85 | 85 | $statusElement->setValueOptions($statesForSelections); |
86 | 86 | |
87 | - $job = $params->job ? $jobRepository->find($params->job) : null; |
|
87 | + $job = $params->job ? $jobRepository->find($params->job) : null; |
|
88 | 88 | $paginator = $this->paginator('Applications'); |
89 | 89 | |
90 | 90 | if ($job) { |
91 | - $params['job_title'] = '[' . $job->getApplyId() . '] ' . $job->getTitle(); |
|
91 | + $params['job_title'] = '['.$job->getApplyId().'] '.$job->getTitle(); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | $form->bind($params); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | |
152 | 152 | |
153 | - $format=$this->params()->fromQuery('format'); |
|
153 | + $format = $this->params()->fromQuery('format'); |
|
154 | 154 | |
155 | 155 | if ($application->isDraft()) { |
156 | 156 | $list = false; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | && ($network = $this->params()->fromQuery('network')) |
279 | 279 | && ($data = $this->params()->fromPost('data')) |
280 | 280 | ) { |
281 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
281 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
282 | 282 | $profile = new $profileClass(); |
283 | 283 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
284 | 284 | } else { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | $this->acl($application, 'forward'); |
399 | 399 | |
400 | - $translator = $services->get('translator'); |
|
400 | + $translator = $services->get('translator'); |
|
401 | 401 | |
402 | 402 | if (!$emailAddress) { |
403 | 403 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | { |
439 | 439 | $id = $this->params('id'); |
440 | 440 | $services = $this->serviceLocator; |
441 | - $repositories= $services->get('repositories'); |
|
441 | + $repositories = $services->get('repositories'); |
|
442 | 442 | $repository = $repositories->get('Applications/Application'); |
443 | 443 | $application = $repository->find($id); |
444 | 444 | |
@@ -448,8 +448,8 @@ discard block |
||
448 | 448 | |
449 | 449 | $this->acl($application, 'delete'); |
450 | 450 | |
451 | - $events = $services->get('Applications/Events'); |
|
452 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
451 | + $events = $services->get('Applications/Events'); |
|
452 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
453 | 453 | |
454 | 454 | $repositories->remove($application); |
455 | 455 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | */ |
122 | 122 | public function setUser($user) |
123 | 123 | { |
124 | - $this->user=$user; |
|
124 | + $this->user = $user; |
|
125 | 125 | return $this; |
126 | 126 | } |
127 | 127 | } |
@@ -135,7 +135,7 @@ |
||
135 | 135 | return array( |
136 | 136 | 'year' => strval($xml->year), |
137 | 137 | 'month'=> isset($xml->month) ? strval($xml->month) : '01', |
138 | - 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
138 | + 'day' => isset($xml->day) ? strval($xml->day) : '01', |
|
139 | 139 | ); |
140 | 140 | } |
141 | 141 | } |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | /* @var \Auth\Form\UserProfileContainer $container */ |
45 | 45 | $container = $forms->get('Auth/userprofilecontainer'); |
46 | 46 | $user = $serviceLocator->get('AuthenticationService')->getUser(); /* @var $user \Auth\Entity\User */ |
47 | - $postProfiles = (array)$this->params()->fromPost('social_profiles'); |
|
47 | + $postProfiles = (array) $this->params()->fromPost('social_profiles'); |
|
48 | 48 | $userProfiles = $user->getProfile(); |
49 | 49 | $formSocialProfiles = $forms->get('Auth/SocialProfiles') |
50 | 50 | ->setUseDefaultValidation(true) |
51 | - ->setData(['social_profiles' => array_map(function ($array) |
|
51 | + ->setData(['social_profiles' => array_map(function($array) |
|
52 | 52 | { |
53 | 53 | return $array['data']; |
54 | 54 | }, $userProfiles)]); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | )); |
132 | 132 | } else { |
133 | 133 | $profile = [ |
134 | - 'auth' => (array)$authProfile, |
|
134 | + 'auth' => (array) $authProfile, |
|
135 | 135 | 'data' => \Zend\Json\Json::decode($dataProfiles[$network]) |
136 | 136 | ]; |
137 | 137 | $user->addProfile($network, $profile); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | |
143 | 143 | // keep data in sync & properly decoded |
144 | - $formSocialProfiles->setData(['social_profiles' => array_map(function ($array) |
|
144 | + $formSocialProfiles->setData(['social_profiles' => array_map(function($array) |
|
145 | 145 | { |
146 | 146 | return \Zend\Json\Json::decode($array) ?: ''; |
147 | 147 | }, $dataProfiles)]); |