@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $dateEnd->add(new \DateInterval("P180D")); |
| 59 | 59 | $dateEnd = $dateEnd->format('Y-m-d H:i:s'); |
| 60 | 60 | } |
| 61 | - $array=[ |
|
| 61 | + $array = [ |
|
| 62 | 62 | '@context'=>'http://schema.org/', |
| 63 | 63 | '@type' => 'JobPosting', |
| 64 | 64 | 'title' => $this->job->getTitle(), |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | private function getLocations($locations) |
| 96 | 96 | { |
| 97 | - $array=[]; |
|
| 97 | + $array = []; |
|
| 98 | 98 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
| 99 | 99 | array_push( |
| 100 | 100 | $array, |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | '@type' => 'Place', |
| 103 | 103 | 'address' => [ |
| 104 | 104 | '@type' => 'PostalAddress', |
| 105 | - 'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(), |
|
| 105 | + 'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(), |
|
| 106 | 106 | 'postalCode' => $location->getPostalCode(), |
| 107 | 107 | 'addressLocality' => $location->getCity(), |
| 108 | 108 | 'addressCountry' => $location->getCountry(), |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | private function getDescription(TemplateValuesInterface $values) |
| 125 | 125 | { |
| 126 | - $description=sprintf( |
|
| 126 | + $description = sprintf( |
|
| 127 | 127 | "<p>%s</p>". |
| 128 | 128 | "<h1>%s</h1>". |
| 129 | 129 | "<h3>Requirements</h3><p>%s</p>". |
@@ -148,7 +148,6 @@ discard block |
||
| 148 | 148 | $salary = $this->job->getSalary(); |
| 149 | 149 | |
| 150 | 150 | return ($salary && !is_null($salary->getValue())) ? |
| 151 | - ($salary->getValue() . ' ' . $salary->getCurrency() . '/' . $salary->getUnit()) : |
|
| 152 | - /*@translate*/ 'Undefined'; |
|
| 151 | + ($salary->getValue().' '.$salary->getCurrency().'/'.$salary->getUnit()) : /*@translate*/ 'Undefined'; |
|
| 153 | 152 | } |
| 154 | 153 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * for multiple paths. |
| 23 | 23 | * example https://github.com/doctrine/DoctrineORMModule |
| 24 | 24 | */ |
| 25 | - 'paths' => [ __DIR__ . '/../src/Entity'], |
|
| 25 | + 'paths' => [__DIR__.'/../src/Entity'], |
|
| 26 | 26 | ], |
| 27 | 27 | ], |
| 28 | 28 | 'eventmanager' => [ |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | ], |
| 36 | 36 | |
| 37 | 37 | 'options' => [ |
| 38 | - 'Jobs/JobboardSearchOptions' => [ 'class' => '\Jobs\Options\JobboardSearchOptions' ], |
|
| 39 | - 'Jobs/BaseFieldsetOptions' => [ 'class' => '\Jobs\Options\BaseFieldsetOptions' ], |
|
| 38 | + 'Jobs/JobboardSearchOptions' => ['class' => '\Jobs\Options\JobboardSearchOptions'], |
|
| 39 | + 'Jobs/BaseFieldsetOptions' => ['class' => '\Jobs\Options\BaseFieldsetOptions'], |
|
| 40 | 40 | ], |
| 41 | 41 | |
| 42 | 42 | 'Jobs' => [ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'translation_file_patterns' => [ |
| 59 | 59 | [ |
| 60 | 60 | 'type' => 'gettext', |
| 61 | - 'base_dir' => __DIR__ . '/../language', |
|
| 61 | + 'base_dir' => __DIR__.'/../language', |
|
| 62 | 62 | 'pattern' => '%s.mo', |
| 63 | 63 | ], |
| 64 | 64 | ], |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | 'Jobboard', |
| 99 | 99 | 'Jobs/Jobboard', |
| 100 | 100 | 'Jobs/ApiJobListByChannel', |
| 101 | - 'Jobs/Template' => [ 'view', 'edittemplate' ], |
|
| 101 | + 'Jobs/Template' => ['view', 'edittemplate'], |
|
| 102 | 102 | 'Jobs/Manage' => [ |
| 103 | 103 | 'template', |
| 104 | 104 | ], |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | 'Jobs/Listener/AdminWidgetProvider' => 'Jobs\Factory\Listener\AdminWidgetProviderFactory', |
| 227 | 227 | 'Jobs/ViewModelTemplateFilter' => 'Jobs\Factory\Filter\ViewModelTemplateFilterFactory', |
| 228 | 228 | 'Jobs\Model\ApiJobDehydrator' => 'Jobs\Factory\Model\ApiJobDehydratorFactory', |
| 229 | - 'Jobs/Listener/Publisher' => [Publisher::class,'factory'], |
|
| 229 | + 'Jobs/Listener/Publisher' => [Publisher::class, 'factory'], |
|
| 230 | 230 | 'Jobs/PreviewLinkHydrator' => 'Jobs\Form\Hydrator\PreviewLinkHydrator::factory', |
| 231 | 231 | 'Jobs\Auth\Dependency\ListListener' => 'Jobs\Factory\Auth\Dependency\ListListenerFactory', |
| 232 | 232 | 'Jobs/DefaultCategoriesBuilder' => 'Jobs\Factory\Repository\DefaultCategoriesBuilderFactory', |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | |
| 245 | 245 | 'event_manager' => [ |
| 246 | - 'Core/AdminController/Events' => [ 'listeners' => [ |
|
| 246 | + 'Core/AdminController/Events' => ['listeners' => [ |
|
| 247 | 247 | 'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD, |
| 248 | 248 | ]], |
| 249 | 249 | |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | 'Core/Ajax/Events' => ['listeners' => [ |
| 267 | 267 | \Jobs\Listener\DeleteJob::class => ['jobs.delete', true], |
| 268 | 268 | \Jobs\Listener\GetOrganizationManagers::class => ['jobs.manager-select', true], |
| 269 | - \Jobs\Listener\LoadActiveOrganizations::class => [ 'jobs.admin.activeorganizations', true], |
|
| 269 | + \Jobs\Listener\LoadActiveOrganizations::class => ['jobs.admin.activeorganizations', true], |
|
| 270 | 270 | |
| 271 | 271 | ]], |
| 272 | 272 | |
@@ -292,10 +292,10 @@ discard block |
||
| 292 | 292 | 'Jobs/ApiJobListByChannel' => 'Jobs\Controller\ApiJobListByChannelController', |
| 293 | 293 | ], |
| 294 | 294 | 'factories' => [ |
| 295 | - 'Jobs/Import' => [ Controller\ImportController::class, 'factory'], |
|
| 296 | - 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
| 297 | - 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
| 298 | - 'Jobs/Admin' => [AdminController::class,'factory'], |
|
| 295 | + 'Jobs/Import' => [Controller\ImportController::class, 'factory'], |
|
| 296 | + 'Jobs/Console' => [ConsoleController::class, 'factory'], |
|
| 297 | + 'Jobs/AdminCategories' => [AdminCategoriesController::class, 'factory'], |
|
| 298 | + 'Jobs/Admin' => [AdminController::class, 'factory'], |
|
| 299 | 299 | 'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory', |
| 300 | 300 | 'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory', |
| 301 | 301 | 'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory', |
@@ -328,42 +328,42 @@ discard block |
||
| 328 | 328 | 'view_manager' => [ |
| 329 | 329 | // Map template to files. Speeds up the lookup through the template stack. |
| 330 | 330 | 'template_map' => [ |
| 331 | - 'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml', |
|
| 332 | - 'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml', |
|
| 333 | - 'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml', |
|
| 334 | - 'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml', |
|
| 335 | - 'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml', |
|
| 336 | - 'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml', |
|
| 337 | - 'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml', |
|
| 338 | - 'jobs/form/salary-fieldset' => __DIR__ . '/../view/form/salary-fieldset.phtml', |
|
| 339 | - 'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml', |
|
| 340 | - 'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml', |
|
| 341 | - 'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml', |
|
| 342 | - 'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml', |
|
| 343 | - 'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml', |
|
| 344 | - 'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml', |
|
| 345 | - 'jobs/history' => __DIR__ . '/../view/partials/history.phtml', |
|
| 346 | - 'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml', |
|
| 347 | - 'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml', |
|
| 348 | - 'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml', |
|
| 349 | - 'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml', |
|
| 350 | - 'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml', |
|
| 351 | - 'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml', |
|
| 352 | - 'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml', |
|
| 353 | - 'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml', |
|
| 354 | - 'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml', |
|
| 355 | - 'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml', |
|
| 356 | - 'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml', |
|
| 357 | - 'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml', |
|
| 358 | - 'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml', |
|
| 359 | - 'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml', |
|
| 360 | - 'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 361 | - 'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml', |
|
| 331 | + 'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml', |
|
| 332 | + 'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml', |
|
| 333 | + 'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml', |
|
| 334 | + 'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml', |
|
| 335 | + 'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml', |
|
| 336 | + 'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml', |
|
| 337 | + 'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml', |
|
| 338 | + 'jobs/form/salary-fieldset' => __DIR__.'/../view/form/salary-fieldset.phtml', |
|
| 339 | + 'jobs/form/company-name-fieldset' => __DIR__.'/../view/form/company-name-fieldset.phtml', |
|
| 340 | + 'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml', |
|
| 341 | + 'jobs/form/customer-note' => __DIR__.'/../view/form/customer-note.phtml', |
|
| 342 | + 'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml', |
|
| 343 | + 'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml', |
|
| 344 | + 'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml', |
|
| 345 | + 'jobs/history' => __DIR__.'/../view/partials/history.phtml', |
|
| 346 | + 'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml', |
|
| 347 | + 'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml', |
|
| 348 | + 'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml', |
|
| 349 | + 'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml', |
|
| 350 | + 'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml', |
|
| 351 | + 'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml', |
|
| 352 | + 'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml', |
|
| 353 | + 'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml', |
|
| 354 | + 'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml', |
|
| 355 | + 'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml', |
|
| 356 | + 'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml', |
|
| 357 | + 'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml', |
|
| 358 | + 'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml', |
|
| 359 | + 'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml', |
|
| 360 | + 'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
| 361 | + 'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml', |
|
| 362 | 362 | ], |
| 363 | 363 | |
| 364 | 364 | // Where to look for view templates not mapped above |
| 365 | 365 | 'template_path_stack' => [ |
| 366 | - __DIR__ . '/../view', |
|
| 366 | + __DIR__.'/../view', |
|
| 367 | 367 | ], |
| 368 | 368 | ], |
| 369 | 369 | |