@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->auth()->isAdmin() |
| 72 | 72 | ) { |
| 73 | 73 | $applicationViewModel->setTemplate('iframe/iFrameInjection'); |
| 74 | - }elseif(Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 74 | + }elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 75 | 75 | $this->response->setStatusCode(Response::STATUS_CODE_410); |
| 76 | 76 | $model->setTemplate('jobs/error/expired'); |
| 77 | 77 | $model->setVariables( |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | protected function editTemplateAction() |
| 100 | 100 | { |
| 101 | 101 | $id = $this->params('id'); |
| 102 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
| 102 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
| 103 | 103 | $job = $this->jobRepository->find($id); |
| 104 | 104 | |
| 105 | 105 | /** @var \Zend\Http\Request $request */ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | $instanceForm = $formTemplate->get($formIdentifier); |
| 131 | 131 | if (!isset($instanceForm)) { |
| 132 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
| 132 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | // the id is part of the postData, but it never should be altered |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $this->auth()->isAdmin() |
| 72 | 72 | ) { |
| 73 | 73 | $applicationViewModel->setTemplate('iframe/iFrameInjection'); |
| 74 | - }elseif(Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 74 | + } elseif(Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) { |
|
| 75 | 75 | $this->response->setStatusCode(Response::STATUS_CODE_410); |
| 76 | 76 | $model->setTemplate('jobs/error/expired'); |
| 77 | 77 | $model->setVariables( |
@@ -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 | |