@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * for multiple paths. |
16 | 16 | * example https://github.com/doctrine/DoctrineORMModule |
17 | 17 | */ |
18 | - 'paths' => array( __DIR__ . '/../src/Jobs/Entity'), |
|
18 | + 'paths' => array(__DIR__.'/../src/Jobs/Entity'), |
|
19 | 19 | ), |
20 | 20 | ), |
21 | 21 | 'eventmanager' => array( |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'translation_file_patterns' => array( |
47 | 47 | array( |
48 | 48 | 'type' => 'gettext', |
49 | - 'base_dir' => __DIR__ . '/../language', |
|
49 | + 'base_dir' => __DIR__.'/../language', |
|
50 | 50 | 'pattern' => '%s.mo', |
51 | 51 | ), |
52 | 52 | ), |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | 'allow' => array( |
85 | 85 | 'Jobboard', |
86 | 86 | 'Jobs/Jobboard', |
87 | - 'Jobs/Template' => [ 'view', 'edittemplate' ], |
|
87 | + 'Jobs/Template' => ['view', 'edittemplate'], |
|
88 | 88 | 'Jobs/Manage' => array( |
89 | 89 | 'template', |
90 | 90 | ), |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | ), |
214 | 214 | |
215 | 215 | 'event_manager' => [ |
216 | - 'Core/AdminController/Events' => [ 'listeners' => [ |
|
216 | + 'Core/AdminController/Events' => ['listeners' => [ |
|
217 | 217 | 'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD, |
218 | 218 | ]], |
219 | 219 | |
@@ -266,39 +266,39 @@ discard block |
||
266 | 266 | 'view_manager' => array( |
267 | 267 | // Map template to files. Speeds up the lookup through the template stack. |
268 | 268 | 'template_map' => array( |
269 | - 'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml', |
|
270 | - 'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml', |
|
271 | - 'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml', |
|
272 | - 'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml', |
|
273 | - 'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml', |
|
274 | - 'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml', |
|
275 | - 'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml', |
|
276 | - 'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml', |
|
277 | - 'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml', |
|
278 | - 'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml', |
|
279 | - 'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml', |
|
280 | - 'jobs/history' => __DIR__ . '/../view/partials/history.phtml', |
|
281 | - 'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml', |
|
282 | - 'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml', |
|
283 | - 'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml', |
|
284 | - 'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml', |
|
285 | - 'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml', |
|
286 | - 'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml', |
|
287 | - 'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml', |
|
288 | - 'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml', |
|
289 | - 'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml', |
|
290 | - 'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml', |
|
291 | - 'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml', |
|
292 | - 'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml', |
|
293 | - 'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml', |
|
294 | - 'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml', |
|
295 | - 'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
296 | - 'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml', |
|
269 | + 'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml', |
|
270 | + 'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml', |
|
271 | + 'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml', |
|
272 | + 'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml', |
|
273 | + 'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml', |
|
274 | + 'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml', |
|
275 | + 'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml', |
|
276 | + 'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml', |
|
277 | + 'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml', |
|
278 | + 'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml', |
|
279 | + 'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml', |
|
280 | + 'jobs/history' => __DIR__.'/../view/partials/history.phtml', |
|
281 | + 'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml', |
|
282 | + 'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml', |
|
283 | + 'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml', |
|
284 | + 'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml', |
|
285 | + 'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml', |
|
286 | + 'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml', |
|
287 | + 'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml', |
|
288 | + 'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml', |
|
289 | + 'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml', |
|
290 | + 'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml', |
|
291 | + 'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml', |
|
292 | + 'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml', |
|
293 | + 'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml', |
|
294 | + 'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml', |
|
295 | + 'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
296 | + 'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml', |
|
297 | 297 | ), |
298 | 298 | |
299 | 299 | // Where to look for view templates not mapped above |
300 | 300 | 'template_path_stack' => array( |
301 | - __DIR__ . '/../view', |
|
301 | + __DIR__.'/../view', |
|
302 | 302 | ), |
303 | 303 | ), |
304 | 304 |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | if (empty($user->info->email)) { |
173 | 173 | return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail')); |
174 | 174 | } |
175 | - $userOrg = $user->getOrganization(); |
|
175 | + $userOrg = $user->getOrganization(); |
|
176 | 176 | if (!$userOrg->hasAssociation()) { |
177 | 177 | return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany')); |
178 | 178 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | $jobEntity = $this->initializeJob()->get($this->params(), true); |
188 | 188 | |
189 | - $viewModel = null; |
|
189 | + $viewModel = null; |
|
190 | 190 | $this->acl($jobEntity, 'edit'); |
191 | 191 | if ($status = $params->fromQuery('status')) { |
192 | 192 | $this->changeStatus($jobEntity, $status); |
@@ -198,11 +198,11 @@ discard block |
||
198 | 198 | $instanceForm = null; |
199 | 199 | $formErrorMessages = array(); |
200 | 200 | |
201 | - if (isset($formIdentifier) && $request->isPost()) { |
|
201 | + if (isset($formIdentifier) && $request->isPost()) { |
|
202 | 202 | // at this point the form get instantiated and immediately accumulated |
203 | 203 | $instanceForm = $form->getForm($formIdentifier); |
204 | 204 | if (!isset($instanceForm)) { |
205 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
205 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
206 | 206 | } |
207 | 207 | // the id may be part of the postData, but it never should be altered |
208 | 208 | $postData = $request->getPost(); |
@@ -256,20 +256,20 @@ discard block |
||
256 | 256 | $jobValid = false; |
257 | 257 | $errorMessage[] = $this->translator->translate('Accept the Terms'); |
258 | 258 | } |
259 | - $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]); |
|
259 | + $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]); |
|
260 | 260 | foreach ($result as $messages) { |
261 | 261 | if (!$messages) { |
262 | 262 | continue; |
263 | 263 | } |
264 | 264 | if (!is_array($messages)) { |
265 | - $messages = [ $messages ]; |
|
265 | + $messages = [$messages]; |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | $errorMessage = array_merge($errorMessage, $messages); |
269 | 269 | $jobValid = false; |
270 | 270 | } |
271 | 271 | |
272 | - $errorMessage = '<br />' . implode('<br />', $errorMessage); |
|
272 | + $errorMessage = '<br />'.implode('<br />', $errorMessage); |
|
273 | 273 | if ($isAjax) { |
274 | 274 | if ($instanceForm instanceof SummaryForm) { |
275 | 275 | $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | } else { |
278 | 278 | $viewHelper = 'form'; |
279 | 279 | } |
280 | - $viewHelperManager = $serviceLocator->get('ViewHelperManager'); |
|
280 | + $viewHelperManager = $serviceLocator->get('ViewHelperManager'); |
|
281 | 281 | $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm); |
282 | 282 | $viewModel = new JsonModel( |
283 | 283 | array( |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | } |
301 | 301 | } |
302 | 302 | } else { |
303 | - $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]); |
|
303 | + $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]); |
|
304 | 304 | // Job is deployed, some changes are now disabled |
305 | 305 | $form->enableAll(); |
306 | 306 | } |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | |
309 | 309 | $completionLink = $this->url()->fromRoute( |
310 | 310 | 'lang/jobs/completion', |
311 | - [ 'id' => $jobEntity->getId()] |
|
311 | + ['id' => $jobEntity->getId()] |
|
312 | 312 | ); |
313 | 313 | |
314 | 314 | $viewModel = $this->getViewModel($form); |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | // array with differences between the last snapshot and the actual entity |
463 | 463 | // is remains Null if there is no snapshot |
464 | 464 | // it will be an empty array if the snapshot and the actual entity do not differ |
465 | - $diff = null; |
|
465 | + $diff = null; |
|
466 | 466 | // preliminary difference, contain all differences |
467 | 467 | $prelDiff = $this->entitySnapshot()->diff($jobEntity); |
468 | 468 | if (isset($prelDiff)) { |
@@ -500,21 +500,21 @@ discard block |
||
500 | 500 | 'lang/jobs/view', |
501 | 501 | array(), |
502 | 502 | array('query' => |
503 | - array( 'id' => $jobEntity->getId())) |
|
503 | + array('id' => $jobEntity->getId())) |
|
504 | 504 | ); |
505 | 505 | |
506 | 506 | $approvalLink = $this->url()->fromRoute( |
507 | 507 | 'lang/jobs/approval', |
508 | 508 | array('state' => 'approved'), |
509 | 509 | array('query' => |
510 | - array( 'id' => $jobEntity->getId())) |
|
510 | + array('id' => $jobEntity->getId())) |
|
511 | 511 | ); |
512 | 512 | |
513 | 513 | $declineLink = $this->url()->fromRoute( |
514 | 514 | 'lang/jobs/approval', |
515 | 515 | array('state' => 'declined'), |
516 | 516 | array('query' => |
517 | - array( 'id' => $jobEntity->getId())) |
|
517 | + array('id' => $jobEntity->getId())) |
|
518 | 518 | ); |
519 | 519 | |
520 | 520 | return array('job' => $jobEntity, |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function deactivateAction() |
533 | 533 | { |
534 | - $user = $this->auth->getUser(); |
|
534 | + $user = $this->auth->getUser(); |
|
535 | 535 | |
536 | 536 | $jobEntity = $this->initializeJob()->get($this->params()); |
537 | 537 |
@@ -82,27 +82,27 @@ |
||
82 | 82 | |
83 | 83 | $containerId = $container->getAttribute('id'); |
84 | 84 | if (!$containerId) { |
85 | - $containerId = 'wizardcontainer-' . strtolower(str_replace('\\', '-', get_class($container))); |
|
85 | + $containerId = 'wizardcontainer-'.strtolower(str_replace('\\', '-', get_class($container))); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | foreach ($container as $tabElement) { |
89 | - $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
|
90 | - $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
|
91 | - $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
|
89 | + $tabId = $containerId.'-'.strtolower($tabElement->getName()); |
|
90 | + $tabsNav .= '<li><a data-toggle="tab" href="#'.$tabId.'">'.$translate($tabElement->getLabel()).'</a></li>'; |
|
91 | + $tabsContent .= '<div class="tab-pane" id="'.$tabId.'">' |
|
92 | 92 | . $formContainer($tabElement, $layout, $parameter) |
93 | 93 | . '</div>'; |
94 | 94 | } |
95 | 95 | |
96 | - $content .= '<div class="wizard-container" id="' . $containerId . '">' |
|
97 | - . '<ul>' . $tabsNav . '</ul>' |
|
98 | - . '<div class="tab-content">' . $tabsContent . '</div>' |
|
96 | + $content .= '<div class="wizard-container" id="'.$containerId.'">' |
|
97 | + . '<ul>'.$tabsNav.'</ul>' |
|
98 | + . '<div class="tab-content">'.$tabsContent.'</div>' |
|
99 | 99 | . '<ul class="pager wizard">' |
100 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
101 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
102 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
100 | + . '<li class="previous"><a href="javascript:;">← '.$translate('previous').'</a></li>' |
|
101 | + . '<li class="next"><a href="javascript:;">'.$translate('Next').' →</a></li>' |
|
102 | + . '<li class="finish'.($containerParams['finish_enabled'] ? '' : ' disabled').'">' |
|
103 | 103 | . (false !== $containerParams['finish_label'] |
104 | - ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
|
105 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
104 | + ? '<a class="pull-right" href="'.$containerParams['finish_href'].'">' |
|
105 | + . $translate($containerParams['finish_label']).' •</a>' |
|
106 | 106 | : '' |
107 | 107 | ) |
108 | 108 | . '</li></div>'; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $notificationListener = $serviceLocator->getServiceLocator()->get('Core/Listener/Notification'); |
25 | 25 | $translator = $services->get('translator'); |
26 | 26 | |
27 | - $notification = new Notification($flashMessenger); |
|
27 | + $notification = new Notification($flashMessenger); |
|
28 | 28 | $notification->setListener($notificationListener); |
29 | 29 | $notification->setTranslator($translator); |
30 | 30 |
@@ -108,10 +108,10 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | $router = $e->getRouter(); |
111 | - $basePath=$router->getBaseUrl(); |
|
111 | + $basePath = $router->getBaseUrl(); |
|
112 | 112 | |
113 | 113 | |
114 | - if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
114 | + if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) { |
|
115 | 115 | /* It seems we have already a language in the URI |
116 | 116 | * Now there are two possibilities: |
117 | 117 | * |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | $headers = $e->getRequest()->getHeaders(); |
197 | 197 | if ($headers->has('Accept-Language')) { |
198 | 198 | $locales = $headers->get('Accept-Language')->getPrioritized(); |
199 | - $localeFound=false; |
|
199 | + $localeFound = false; |
|
200 | 200 | foreach ($locales as $locale) { |
201 | 201 | if (array_key_exists($locale->type, $this->supportedLanguages)) { |
202 | 202 | $lang = $locale->type; |
@@ -239,8 +239,8 @@ discard block |
||
239 | 239 | setlocale( |
240 | 240 | LC_ALL, |
241 | 241 | array( |
242 | - $locale . ".utf8", |
|
243 | - $locale . ".iso88591", |
|
242 | + $locale.".utf8", |
|
243 | + $locale.".iso88591", |
|
244 | 244 | $locale, |
245 | 245 | substr($locale, 0, 2), |
246 | 246 | 'de_DE.utf8', |
@@ -264,6 +264,6 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function setSupportedLanguages($supportedLanguages) |
266 | 266 | { |
267 | - $this->supportedLanguages=$supportedLanguages; |
|
267 | + $this->supportedLanguages = $supportedLanguages; |
|
268 | 268 | } |
269 | 269 | } |
@@ -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,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | |
362 | 362 | if ('sendmail' == $this->params()->fromQuery('do')) { |
363 | - $jobEntity = $application->getJob(); |
|
363 | + $jobEntity = $application->getJob(); |
|
364 | 364 | |
365 | 365 | $mailData = array( |
366 | 366 | 'application' => $application, |
@@ -388,8 +388,8 @@ discard block |
||
388 | 388 | ->revoke($this->auth()->getUser(), PermissionsInterface::PERMISSION_CHANGE) |
389 | 389 | ->inherit($application->getJob()->getPermissions()); |
390 | 390 | |
391 | - $events = $services->get('Applications/Events'); |
|
392 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]); |
|
391 | + $events = $services->get('Applications/Events'); |
|
392 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]); |
|
393 | 393 | |
394 | 394 | $model = new ViewModel( |
395 | 395 | array( |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | [ |
77 | 77 | 'job' => $job, |
78 | 78 | 'user' => $employee->getUser(), |
79 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
79 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
80 | 80 | ] |
81 | 81 | ); |
82 | 82 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | [ |
95 | 95 | 'job' => $this->application->getJob(), |
96 | 96 | 'user' => $recruiter, |
97 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
97 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
98 | 98 | ] |
99 | 99 | ); |
100 | 100 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | [ |
112 | 112 | 'application' => $this->application, |
113 | 113 | 'body' => $ackBody, |
114 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
114 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
115 | 115 | ] |
116 | 116 | ); |
117 | 117 |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param ApplicationEvent $e |
70 | 70 | */ |
71 | - public function prepareFormData(ApplicationEvent $e){ |
|
71 | + public function prepareFormData(ApplicationEvent $e) { |
|
72 | 72 | if ($e->isPostRequest()) { |
73 | 73 | return; |
74 | 74 | } |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | $key = 'mailRejectionText'; |
96 | 96 | break; |
97 | 97 | default: |
98 | - throw new \InvalidArgumentException('Unknown status value: ' .$status); |
|
98 | + throw new \InvalidArgumentException('Unknown status value: '.$status); |
|
99 | 99 | } |
100 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
100 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
101 | 101 | $mail->setBody($mailText); |
102 | 102 | $mail->setApplication($this->application); |
103 | 103 | $mailText = $mail->getBodyText(); |
104 | - $mailSubject = sprintf( |
|
104 | + $mailSubject = sprintf( |
|
105 | 105 | $this->translator->translate('Your application dated %s'), |
106 | 106 | strftime('%x', $this->application->getDateCreated()->getTimestamp()) |
107 | 107 | ); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @param ApplicationEvent $event |
123 | 123 | */ |
124 | - public function sendMail(ApplicationEvent $event){ |
|
124 | + public function sendMail(ApplicationEvent $event) { |
|
125 | 125 | if (!$event->isPostRequest()) { |
126 | 126 | return; |
127 | 127 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->mailService->send($mail); |
168 | 168 | |
169 | 169 | |
170 | - $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0] ); |
|
170 | + $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0]); |
|
171 | 171 | $this->application->changeStatus($status, $historyText); |
172 | 172 | $event->setNotification($historyText); |
173 | 173 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @return AddressList |
180 | 180 | */ |
181 | - protected function getRecipient( Application $application, $status) { |
|
181 | + protected function getRecipient(Application $application, $status) { |
|
182 | 182 | |
183 | 183 | $recipient = Status::ACCEPTED == $status |
184 | 184 | ? $application->getJob()->getUser()->getInfo() |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $email = $recipient->getEmail(); |
188 | 188 | $name = $recipient->getDisplayName(false); |
189 | 189 | |
190 | - return $name ? [ $email => $name ] : [ $email ]; |
|
190 | + return $name ? [$email => $name] : [$email]; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | } |
194 | 194 | \ No newline at end of file |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | ), |
14 | 14 | ), |
15 | 15 | 'annotation' => array( |
16 | - 'paths' => array( __DIR__ . '/../src/Organizations/Entity') |
|
16 | + 'paths' => array(__DIR__.'/../src/Organizations/Entity') |
|
17 | 17 | ), |
18 | 18 | ), |
19 | 19 | 'eventmanager' => array( |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'translation_file_patterns' => array( |
40 | 40 | array( |
41 | 41 | 'type' => 'gettext', |
42 | - 'base_dir' => __DIR__ . '/../language', |
|
42 | + 'base_dir' => __DIR__.'/../language', |
|
43 | 43 | 'pattern' => '%s.mo', |
44 | 44 | ), |
45 | 45 | ), |
@@ -67,18 +67,18 @@ discard block |
||
67 | 67 | 'view_manager' => array( |
68 | 68 | // Map template to files. Speeds up the lookup through the template stack. |
69 | 69 | 'template_map' => array( |
70 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
71 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
72 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
73 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
74 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
75 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
76 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
77 | - 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
|
70 | + 'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml', |
|
71 | + 'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml', |
|
72 | + 'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml', |
|
73 | + 'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml', |
|
74 | + 'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
75 | + 'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml', |
|
76 | + 'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml', |
|
77 | + 'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml', |
|
78 | 78 | ), |
79 | 79 | // Where to look for view templates not mapped above |
80 | 80 | 'template_path_stack' => array( |
81 | - __DIR__ . '/../view', |
|
81 | + __DIR__.'/../view', |
|
82 | 82 | ), |
83 | 83 | ), |
84 | 84 | 'form_elements' => array( |
@@ -139,11 +139,11 @@ discard block |
||
139 | 139 | 'allow' => array( |
140 | 140 | 'Entity/OrganizationImage', |
141 | 141 | 'route/lang/organizations/invite', |
142 | - 'Organizations/InviteEmployee' => [ 'accept' ], |
|
142 | + 'Organizations/InviteEmployee' => ['accept'], |
|
143 | 143 | ), |
144 | 144 | 'deny' => array( |
145 | 145 | 'route/lang/organizations', |
146 | - 'Organizations/InviteEmployee' => [ 'invite' ], |
|
146 | + 'Organizations/InviteEmployee' => ['invite'], |
|
147 | 147 | ), |
148 | 148 | ), |
149 | 149 | // recruiters are allowed to view their companies |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | 'organizations' => array( |
165 | 165 | 'label' => 'Organizations', |
166 | 166 | 'route' => 'lang/organizations', |
167 | - 'order' => 65, // allows to order the menu items |
|
168 | - 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
167 | + 'order' => 65, // allows to order the menu items |
|
168 | + 'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied. |
|
169 | 169 | |
170 | 170 | 'pages' => array( |
171 | 171 | 'list' => array( |