@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var array $testConfig */ |
| 4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
| 4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
| 6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
@@ -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 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var array $testConfig */ |
| 4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
| 4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
| 6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ], |
| 45 | 45 | ]; |
| 46 | 46 | |
| 47 | - private $inheritance = [ FactoryInterface::class ]; |
|
| 47 | + private $inheritance = [FactoryInterface::class]; |
|
| 48 | 48 | |
| 49 | 49 | private function getInvokeArgs() |
| 50 | 50 | { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var array $testConfig */ |
| 4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
| 4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
| 6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var array $testConfig */ |
| 4 | -$testConfig = include __DIR__ . '/TestConfig.php'; |
|
| 4 | +$testConfig = include __DIR__.'/TestConfig.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/../../../test/Bootstrap.php'; |
|
| 6 | +require_once __DIR__.'/../../../test/Bootstrap.php'; |
|
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @param array $loadModules |
| 96 | 96 | * @return array |
| 97 | 97 | */ |
| 98 | - public static function generateModuleConfiguration($loadModules=[]) |
|
| 98 | + public static function generateModuleConfiguration($loadModules = []) |
|
| 99 | 99 | { |
| 100 | 100 | $modules = ArrayUtils::merge( |
| 101 | 101 | static::getRequiredModules(), |
@@ -186,15 +186,15 @@ discard block |
||
| 186 | 186 | public static function setupCliServerEnv() |
| 187 | 187 | { |
| 188 | 188 | $parseUrl = parse_url(substr($_SERVER["REQUEST_URI"], 1)); |
| 189 | - $route = isset($parseUrl['path']) ? $parseUrl['path']:null; |
|
| 190 | - if (is_file(__DIR__ . '/' . $route)) { |
|
| 189 | + $route = isset($parseUrl['path']) ? $parseUrl['path'] : null; |
|
| 190 | + if (is_file(__DIR__.'/'.$route)) { |
|
| 191 | 191 | if (substr($route, -4) == ".php") { |
| 192 | - require __DIR__ . '/' . $route; // Include requested script files |
|
| 192 | + require __DIR__.'/'.$route; // Include requested script files |
|
| 193 | 193 | exit; |
| 194 | 194 | } |
| 195 | - return false; // Serve file as is |
|
| 195 | + return false; // Serve file as is |
|
| 196 | 196 | } else { // Fallback to index.php |
| 197 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
| 197 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
| 198 | 198 | } |
| 199 | 199 | return true; |
| 200 | 200 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | // setup docker environment |
| 315 | - if (getenv('DOCKER_ENV')=='yes') { |
|
| 315 | + if (getenv('DOCKER_ENV') == 'yes') { |
|
| 316 | 316 | $configuration = ArrayUtils::merge($configuration, static::getDockerEnv($configuration)); |
| 317 | 317 | } |
| 318 | 318 | return $configuration; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | public function __invoke(Job $jobEntity, $options = []) |
| 79 | 79 | { |
| 80 | - $options= array_merge($this->options, $options); |
|
| 80 | + $options = array_merge($this->options, $options); |
|
| 81 | 81 | |
| 82 | 82 | $ats = $jobEntity->getAtsMode(); |
| 83 | 83 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $urlHelper = $this->urlHelper; |
| 91 | 91 | |
| 92 | 92 | if ($ats->isIntern() || $ats->isEmail()) { |
| 93 | - $query = [ 'subscriberUri' => $serverUrlHelper(array()) . '/subscriber/' . 1 ]; |
|
| 93 | + $query = ['subscriberUri' => $serverUrlHelper(array()).'/subscriber/'.1]; |
|
| 94 | 94 | $route = 'lang/apply'; |
| 95 | 95 | $params = [ |
| 96 | 96 | 'applyId' => $jobEntity->getApplyId(), |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | if ($options['linkOnly']) { |
| 109 | - $result=$url; |
|
| 109 | + $result = $url; |
|
| 110 | 110 | if ($options['absolute'] && !preg_match('~^https?://~', $url)) { |
| 111 | 111 | $result = $serverUrlHelper($url); |
| 112 | 112 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | foreach ($options as $key=>$val) { |
| 127 | 127 | if (array_key_exists($this->options, $key)) { |
| 128 | - $this->options[$key]=$val; |
|
| 128 | + $this->options[$key] = $val; |
|
| 129 | 129 | } |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | private $target = IdleSleepStrategy::class; |
| 34 | 34 | |
| 35 | - private $inheritance = [ AbstractStrategy::class ]; |
|
| 35 | + private $inheritance = [AbstractStrategy::class]; |
|
| 36 | 36 | |
| 37 | 37 | |
| 38 | 38 | public function testSetDuration() |