@@ -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 |
@@ -215,8 +215,8 @@ |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | /** |
218 | - * @param $response |
|
219 | - * @param $uri |
|
218 | + * @param \Zend\Stdlib\ResponseInterface $response |
|
219 | + * @param string $uri |
|
220 | 220 | * |
221 | 221 | * @return mixed |
222 | 222 | */ |
@@ -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 | } |
@@ -89,23 +89,23 @@ |
||
89 | 89 | $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
90 | 90 | $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
91 | 91 | $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
92 | - . $formContainer($tabElement, $layout, $parameter) |
|
93 | - . '</div>'; |
|
92 | + . $formContainer($tabElement, $layout, $parameter) |
|
93 | + . '</div>'; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | $content .= '<div class="wizard-container" id="' . $containerId . '">' |
97 | - . '<ul>' . $tabsNav . '</ul>' |
|
98 | - . '<div class="tab-content">' . $tabsContent . '</div>' |
|
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') . '">' |
|
103 | - . (false !== $containerParams['finish_label'] |
|
97 | + . '<ul>' . $tabsNav . '</ul>' |
|
98 | + . '<div class="tab-content">' . $tabsContent . '</div>' |
|
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') . '">' |
|
103 | + . (false !== $containerParams['finish_label'] |
|
104 | 104 | ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
105 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
105 | + . $translate($containerParams['finish_label']) . ' •</a>' |
|
106 | 106 | : '' |
107 | 107 | ) |
108 | - . '</li></div>'; |
|
108 | + . '</li></div>'; |
|
109 | 109 | |
110 | 110 | $content .= $container->renderPost($this->getView()); |
111 | 111 |
@@ -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 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $organizations = $organizationReference->getHiringOrganizations()->toArray(); |
42 | 42 | $organization = $organizationReference->getOrganization(); |
43 | 43 | if (!$organization->isDraft()) { |
44 | - array_unshift($organizations, $organization); |
|
44 | + array_unshift($organizations, $organization); |
|
45 | 45 | } |
46 | 46 | $select->setSelectableOrganizations($organizations, /* addEmptyOption */ |
47 | 47 | false |
@@ -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 |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * @param ServiceLocatorInterface $formManager |
112 | - * @return AbstractSettingsForm |
|
112 | + * @return DisableElementsCapableFormSettingsFieldset |
|
113 | 113 | */ |
114 | 114 | public static function factory(ServiceLocatorInterface $formManager) |
115 | 115 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | $config = new MailServiceConfig($configArray); |
41 | 41 | |
42 | - $service = new MailService($serviceLocator, $config); |
|
42 | + $service = new MailService($serviceLocator, $config); |
|
43 | 43 | |
44 | 44 | return $service; |
45 | 45 |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $response = $this->getResponse(); |
51 | 51 | |
52 | 52 | try { |
53 | - $repository = $this->serviceLocator->get('repositories')->get($module . '/' . $entityName); |
|
53 | + $repository = $this->serviceLocator->get('repositories')->get($module.'/'.$entityName); |
|
54 | 54 | } catch (\Exception $e) { |
55 | 55 | $response->setStatusCode(404); |
56 | 56 | $this->getEvent()->setParam('exception', $e); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $this->acl($file); |
86 | 86 | |
87 | - $headers=$response->getHeaders(); |
|
87 | + $headers = $response->getHeaders(); |
|
88 | 88 | |
89 | 89 | $headers->addHeaderline('Content-Type', $file->getType()) |
90 | 90 | ->addHeaderline('Content-Length', $file->getLength()); |