@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * for multiple paths. |
22 | 22 | * example https://github.com/doctrine/DoctrineORMModule |
23 | 23 | */ |
24 | - 'paths' => [ __DIR__ . '/../src/Jobs/Entity'], |
|
24 | + 'paths' => [__DIR__.'/../src/Jobs/Entity'], |
|
25 | 25 | ], |
26 | 26 | ], |
27 | 27 | 'eventmanager' => [ |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | ], |
35 | 35 | |
36 | 36 | 'options' => [ |
37 | - 'Jobs/JobboardSearchOptions' => [ 'class' => '\Jobs\Options\JobboardSearchOptions' ], |
|
38 | - 'Jobs/BaseFieldsetOptions' => [ 'class' => '\Jobs\Options\BaseFieldsetOptions' ], |
|
37 | + 'Jobs/JobboardSearchOptions' => ['class' => '\Jobs\Options\JobboardSearchOptions'], |
|
38 | + 'Jobs/BaseFieldsetOptions' => ['class' => '\Jobs\Options\BaseFieldsetOptions'], |
|
39 | 39 | ], |
40 | 40 | |
41 | 41 | 'Jobs' => [ |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | 'translation_file_patterns' => [ |
58 | 58 | [ |
59 | 59 | 'type' => 'gettext', |
60 | - 'base_dir' => __DIR__ . '/../language', |
|
60 | + 'base_dir' => __DIR__.'/../language', |
|
61 | 61 | 'pattern' => '%s.mo', |
62 | 62 | ], |
63 | 63 | ], |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'Jobboard', |
98 | 98 | 'Jobs/Jobboard', |
99 | 99 | 'Jobs/ApiJobListByChannel', |
100 | - 'Jobs/Template' => [ 'view', 'edittemplate' ], |
|
100 | + 'Jobs/Template' => ['view', 'edittemplate'], |
|
101 | 101 | 'Jobs/Manage' => [ |
102 | 102 | 'template', |
103 | 103 | ], |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | 'Jobs/Listener/AdminWidgetProvider' => 'Jobs\Factory\Listener\AdminWidgetProviderFactory', |
223 | 223 | 'Jobs/ViewModelTemplateFilter' => 'Jobs\Factory\Filter\ViewModelTemplateFilterFactory', |
224 | 224 | 'Jobs\Model\ApiJobDehydrator' => 'Jobs\Factory\Model\ApiJobDehydratorFactory', |
225 | - 'Jobs/Listener/Publisher' => [Publisher::class,'factory'], |
|
225 | + 'Jobs/Listener/Publisher' => [Publisher::class, 'factory'], |
|
226 | 226 | 'Jobs/PreviewLinkHydrator' => 'Jobs\Form\Hydrator\PreviewLinkHydrator::factory', |
227 | 227 | 'Jobs\Auth\Dependency\ListListener' => 'Jobs\Factory\Auth\Dependency\ListListenerFactory', |
228 | 228 | 'Jobs/DefaultCategoriesBuilder' => 'Jobs\Factory\Repository\DefaultCategoriesBuilderFactory', |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | |
241 | 241 | 'event_manager' => [ |
242 | - 'Core/AdminController/Events' => [ 'listeners' => [ |
|
242 | + 'Core/AdminController/Events' => ['listeners' => [ |
|
243 | 243 | 'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD, |
244 | 244 | ]], |
245 | 245 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | 'Core/Ajax/Events' => ['listeners' => [ |
262 | 262 | \Jobs\Listener\DeleteJob::class => ['jobs.delete', true], |
263 | 263 | \Jobs\Listener\GetOrganizationManagers::class => ['jobs.manager-select', true], |
264 | - \Jobs\Listener\LoadActiveOrganizations::class => [ 'jobs.admin.activeorganizations', true], |
|
264 | + \Jobs\Listener\LoadActiveOrganizations::class => ['jobs.admin.activeorganizations', true], |
|
265 | 265 | |
266 | 266 | ]], |
267 | 267 | ], |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | 'Jobs/ApiJobListByChannel' => 'Jobs\Controller\ApiJobListByChannelController', |
274 | 274 | ], |
275 | 275 | 'factories' => [ |
276 | - 'Jobs/Import' => [ Controller\ImportController::class, 'factory'], |
|
277 | - 'Jobs/Console' => [ConsoleController::class,'factory'], |
|
278 | - 'Jobs/AdminCategories' => [AdminCategoriesController::class,'factory'], |
|
279 | - 'Jobs/Admin' => [AdminController::class,'factory'], |
|
276 | + 'Jobs/Import' => [Controller\ImportController::class, 'factory'], |
|
277 | + 'Jobs/Console' => [ConsoleController::class, 'factory'], |
|
278 | + 'Jobs/AdminCategories' => [AdminCategoriesController::class, 'factory'], |
|
279 | + 'Jobs/Admin' => [AdminController::class, 'factory'], |
|
280 | 280 | 'Jobs/Template' => 'Jobs\Factory\Controller\TemplateControllerFactory', |
281 | 281 | 'Jobs/Index' => 'Jobs\Factory\Controller\IndexControllerFactory', |
282 | 282 | 'Jobs/Approval' => 'Jobs\Factory\Controller\ApprovalControllerFactory', |
@@ -309,41 +309,41 @@ discard block |
||
309 | 309 | 'view_manager' => [ |
310 | 310 | // Map template to files. Speeds up the lookup through the template stack. |
311 | 311 | 'template_map' => [ |
312 | - 'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml', |
|
313 | - 'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml', |
|
314 | - 'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml', |
|
315 | - 'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml', |
|
316 | - 'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml', |
|
317 | - 'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml', |
|
318 | - 'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml', |
|
319 | - 'jobs/form/company-name-fieldset' => __DIR__ . '/../view/form/company-name-fieldset.phtml', |
|
320 | - 'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml', |
|
321 | - 'jobs/form/customer-note' => __DIR__ . '/../view/form/customer-note.phtml', |
|
322 | - 'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml', |
|
323 | - 'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml', |
|
324 | - 'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml', |
|
325 | - 'jobs/history' => __DIR__ . '/../view/partials/history.phtml', |
|
326 | - 'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml', |
|
327 | - 'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml', |
|
328 | - 'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml', |
|
329 | - 'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml', |
|
330 | - 'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml', |
|
331 | - 'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml', |
|
332 | - 'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml', |
|
333 | - 'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml', |
|
334 | - 'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml', |
|
335 | - 'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml', |
|
336 | - 'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml', |
|
337 | - 'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml', |
|
338 | - 'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml', |
|
339 | - 'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml', |
|
340 | - 'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
341 | - 'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml', |
|
312 | + 'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml', |
|
313 | + 'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml', |
|
314 | + 'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml', |
|
315 | + 'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml', |
|
316 | + 'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml', |
|
317 | + 'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml', |
|
318 | + 'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml', |
|
319 | + 'jobs/form/company-name-fieldset' => __DIR__.'/../view/form/company-name-fieldset.phtml', |
|
320 | + 'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml', |
|
321 | + 'jobs/form/customer-note' => __DIR__.'/../view/form/customer-note.phtml', |
|
322 | + 'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml', |
|
323 | + 'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml', |
|
324 | + 'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml', |
|
325 | + 'jobs/history' => __DIR__.'/../view/partials/history.phtml', |
|
326 | + 'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml', |
|
327 | + 'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml', |
|
328 | + 'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml', |
|
329 | + 'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml', |
|
330 | + 'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml', |
|
331 | + 'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml', |
|
332 | + 'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml', |
|
333 | + 'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml', |
|
334 | + 'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml', |
|
335 | + 'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml', |
|
336 | + 'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml', |
|
337 | + 'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml', |
|
338 | + 'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml', |
|
339 | + 'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml', |
|
340 | + 'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml', |
|
341 | + 'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml', |
|
342 | 342 | ], |
343 | 343 | |
344 | 344 | // Where to look for view templates not mapped above |
345 | 345 | 'template_path_stack' => [ |
346 | - __DIR__ . '/../view', |
|
346 | + __DIR__.'/../view', |
|
347 | 347 | ], |
348 | 348 | ], |
349 | 349 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId)); |
85 | 85 | if (!isset($entity)) { |
86 | 86 | // new Job (the more likely branch) |
87 | - $entity =$repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
87 | + $entity = $repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
88 | 88 | } else { |
89 | 89 | $createdJob = false; |
90 | 90 | } |
@@ -130,10 +130,10 @@ discard block |
||
130 | 130 | $entity->getPermissions()->grant($group, PermissionsInterface::PERMISSION_VIEW); |
131 | 131 | } |
132 | 132 | $result['isSaved'] = true; |
133 | - $log->info('Jobs/manage/saveJob [user: ' . $user->getLogin() . ']:' . var_export($p, true)); |
|
133 | + $log->info('Jobs/manage/saveJob [user: '.$user->getLogin().']:'.var_export($p, true)); |
|
134 | 134 | |
135 | 135 | if (!empty($params->companyId)) { |
136 | - $companyId = $params->companyId . $loginSuffix; |
|
136 | + $companyId = $params->companyId.$loginSuffix; |
|
137 | 137 | $repOrganization = $repositories->get('Organizations/Organization'); |
138 | 138 | $hydratorManager = $services->get('HydratorManager'); |
139 | 139 | /* @var \Organizations\Entity\Hydrator\OrganizationHydrator $hydrator */ |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $jobLocations->clear(); |
190 | 190 | foreach ($locations as $locData) { |
191 | 191 | $location = new Location(); |
192 | - $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
|
192 | + $coords = array_map(function($i) { return (float) $i; }, $locData['coordinates']); |
|
193 | 193 | $location->setCountry($locData['country']) |
194 | 194 | ->setRegion($locData['region']) |
195 | 195 | ->setCity($locData['city']) |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | break; |
255 | 255 | } |
256 | 256 | if (array_key_exists($portal, $result['portals'])) { |
257 | - throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for ' . $portal); |
|
257 | + throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for '.$portal); |
|
258 | 258 | } |
259 | 259 | $result['portals'][$portal] = $status; |
260 | 260 | } else { |
@@ -267,16 +267,16 @@ discard block |
||
267 | 267 | } |
268 | 268 | } |
269 | 269 | } else { |
270 | - $log->info('Jobs/manage/saveJob [error: ' . $form->getMessages() . ']:' . var_export($p, true)); |
|
270 | + $log->info('Jobs/manage/saveJob [error: '.$form->getMessages().']:'.var_export($p, true)); |
|
271 | 271 | $result['valid Error'] = $form->getMessages(); |
272 | 272 | } |
273 | 273 | } |
274 | 274 | } else { |
275 | - $log->info('Jobs/manage/saveJob [error: session lost]:' . var_export($p, true)); |
|
275 | + $log->info('Jobs/manage/saveJob [error: session lost]:'.var_export($p, true)); |
|
276 | 276 | $result['message'] = 'session_id is lost'; |
277 | 277 | } |
278 | 278 | } catch (\Exception $e) { |
279 | - $result['message'] = 'exception occured: ' . $e->getMessage(); |
|
279 | + $result['message'] = 'exception occured: '.$e->getMessage(); |
|
280 | 280 | } |
281 | 281 | //$services->get('Core/Log')->info('Jobs/manage/saveJob result:' . PHP_EOL . var_export($p, True)); |
282 | 282 | return new JsonModel($result); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @param array $colMap |
36 | 36 | * @return Form|string |
37 | 37 | */ |
38 | - public function __invoke(FormInterface $form = null, $colMap=null) |
|
38 | + public function __invoke(FormInterface $form = null, $colMap = null) |
|
39 | 39 | { |
40 | 40 | if (!$form) { |
41 | 41 | return $this; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return $this->render($form, $colMap); |
45 | 45 | } |
46 | 46 | |
47 | - public function render(FormInterface $form, $colMap=null, $buttonsSpan = null) |
|
47 | + public function render(FormInterface $form, $colMap = null, $buttonsSpan = null) |
|
48 | 48 | { |
49 | 49 | $headscript = $this->getView()->plugin('headscript'); |
50 | 50 | $basepath = $this->getView()->plugin('basepath'); |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | $form->prepare(); |
62 | 62 | |
63 | 63 | if ($form instanceOf ViewPartialProviderInterface) { |
64 | - return $this->getView()->partial($form->getViewPartial(), [ 'element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan ]); |
|
64 | + return $this->getView()->partial($form->getViewPartial(), ['element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan]); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | $content = $this->renderElements($form, $colMap, $buttonsSpan); |
68 | 68 | |
69 | 69 | return $this->openTag($form) |
70 | 70 | . '<div class="row" style="padding: 0 15px;">' |
71 | - . $content . '</div>' . $this->closeTag(); |
|
71 | + . $content.'</div>'.$this->closeTag(); |
|
72 | 72 | |
73 | 73 | } |
74 | 74 | |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $button->removeAttribute('name'); |
82 | 82 | $attrs = $helper->createAttributesString($button->getAttributes()); |
83 | 83 | |
84 | - $content.= '<button ' . $attrs . '>' |
|
84 | + $content .= '<button '.$attrs.'>' |
|
85 | 85 | . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain()) |
86 | 86 | . '</button>'; |
87 | 87 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | public function renderElements($form, $colMap = null, $buttonsSpan = null) |
93 | 93 | { |
94 | 94 | if ($form instanceOf ViewPartialProviderInterface) { |
95 | - return $this->getView()->partial($form->getViewPartial(), [ 'element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan ]); |
|
95 | + return $this->getView()->partial($form->getViewPartial(), ['element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan]); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | if (null === $colMap) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | $formElement = $this->getView()->plugin('formElement'); |
103 | - $content = ''; $buttonsRendered = false; $i=0; |
|
103 | + $content = ''; $buttonsRendered = false; $i = 0; |
|
104 | 104 | foreach ($form as $element) { |
105 | 105 | |
106 | 106 | if ($element instanceOf Hidden) { |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | if ($element->getName() == $form->getButtonElement()) { |
122 | - $content.='<div class="input-group col-md-' . $cols . '">' |
|
122 | + $content .= '<div class="input-group col-md-'.$cols.'">' |
|
123 | 123 | . $formElement($element) |
124 | 124 | . '<div class="input-group-btn search-form-buttons" style="width: 1px;">' |
125 | - . $this->renderButtons($form->getButtons()) . '</div>' |
|
125 | + . $this->renderButtons($form->getButtons()).'</div>' |
|
126 | 126 | . '</div>'; |
127 | 127 | $buttonsRendered = true; |
128 | 128 | } else { |
129 | - $content .= '<div class="input-group col-md-' . $cols . '">' |
|
129 | + $content .= '<div class="input-group col-md-'.$cols.'">' |
|
130 | 130 | . $formElement($element) |
131 | 131 | . '</div>'; |
132 | 132 | } |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | if (null === $buttonsSpan) { |
139 | 139 | $buttonsSpan = $form->getOption('buttons_span') ?: 12; |
140 | 140 | } |
141 | - $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
|
142 | - . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>'; |
|
141 | + $content .= '<div class="input-group search-form-buttons col-md-'.$buttonsSpan.' text-right">' |
|
142 | + . '<div class="btn-group">'.$this->renderButtons($form->getButtons()).'</div></div>'; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | return $content; |
@@ -33,13 +33,13 @@ discard block |
||
33 | 33 | * Event is fired when a users has created a new job opening and accepted the |
34 | 34 | * terms and conditions |
35 | 35 | */ |
36 | - const EVENT_JOB_CREATED = 'job.created'; |
|
36 | + const EVENT_JOB_CREATED = 'job.created'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Event is fired when the owner of the YAWIK installation has accepted the job |
40 | 40 | * opening |
41 | 41 | */ |
42 | - const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
42 | + const EVENT_JOB_ACCEPTED = 'job.accepted'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Event is fired, when the owner of the YAWIK installation has rejected the job |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * get all available names for publishing |
57 | 57 | */ |
58 | - const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
58 | + const PORTAL_AVAIL_NAME = 'portal.availname'; |
|
59 | 59 | |
60 | 60 | /** |
61 | 61 | * portals to be published |
@@ -153,7 +153,7 @@ |
||
153 | 153 | |
154 | 154 | public function getValueWithParents($withRoot = false, $useNames = false) |
155 | 155 | { |
156 | - $parts = [ ($useNames ? $this->getName() : $this->getValue()) ]; |
|
156 | + $parts = [($useNames ? $this->getName() : $this->getValue())]; |
|
157 | 157 | $item = $this; |
158 | 158 | |
159 | 159 | while ($item = $item->getParent()) { |
@@ -222,7 +222,7 @@ |
||
222 | 222 | */ |
223 | 223 | private function findLeaf(NodeInterface $leaf, $value) |
224 | 224 | { |
225 | - $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value); |
|
225 | + $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value); |
|
226 | 226 | $value = array_shift($parts); |
227 | 227 | |
228 | 228 | /* @var NodeInterface $item */ |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | |
91 | 91 | $str = ''; |
92 | 92 | if ($street) { $str .= $street; if (!$number) { $str .= ', '; } } |
93 | - if ($number) { $str .= ' ' . $number . ', '; } |
|
94 | - if ($postalCode) { $str .= $postalCode . ' '; } |
|
93 | + if ($number) { $str .= ' '.$number.', '; } |
|
94 | + if ($postalCode) { $str .= $postalCode.' '; } |
|
95 | 95 | if ($city) { $str .= $city; } |
96 | - if ($region) { $str .= ', ' . $region; } |
|
97 | - if ($country) { $str .= ', ' . $country; } |
|
96 | + if ($region) { $str .= ', '.$region; } |
|
97 | + if ($country) { $str .= ', '.$country; } |
|
98 | 98 | if ($coords) { |
99 | 99 | $coords = $coords->getCoordinates(); |
100 | - $str .= ' ( ' . join(', ', $coords) . ' )'; |
|
100 | + $str .= ' ( '.join(', ', $coords).' )'; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | return $str; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | if (!$value) { continue; } |
139 | 139 | |
140 | 140 | if ('coordinates' == $key) { |
141 | - $class = '\\Geo\\Entity\\Geometry\\' . $value['type']; |
|
141 | + $class = '\\Geo\\Entity\\Geometry\\'.$value['type']; |
|
142 | 142 | $value = new $class($value['coordinates']); |
143 | 143 | } |
144 | 144 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | : SnapshotMeta::class; |
38 | 38 | |
39 | 39 | $this->snapshotMeta = new $snapshotMetaClass(); |
40 | - $this->snapshotEntity = $source; |
|
40 | + $this->snapshotEntity = $source; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public function getOriginalEntity() |
@@ -227,11 +227,11 @@ discard block |
||
227 | 227 | protected function save() |
228 | 228 | { |
229 | 229 | $formEvents = $this->jobFormEvents; |
230 | - $user = $this->auth->getUser(); |
|
230 | + $user = $this->auth->getUser(); |
|
231 | 231 | if (empty($user->getInfo()->getEmail())) { |
232 | 232 | return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail')); |
233 | 233 | } |
234 | - $userOrg = $user->getOrganization(); |
|
234 | + $userOrg = $user->getOrganization(); |
|
235 | 235 | if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) { |
236 | 236 | return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany')); |
237 | 237 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | } |
262 | 262 | |
263 | 263 | |
264 | - $viewModel = null; |
|
264 | + $viewModel = null; |
|
265 | 265 | $this->acl($jobEntity, 'edit'); |
266 | 266 | if ($status = $params->fromQuery('status')) { |
267 | 267 | $this->changeStatus($jobEntity, $status); |
@@ -273,11 +273,11 @@ discard block |
||
273 | 273 | $instanceForm = null; |
274 | 274 | $formErrorMessages = array(); |
275 | 275 | |
276 | - if (isset($formIdentifier) && $request->isPost()) { |
|
276 | + if (isset($formIdentifier) && $request->isPost()) { |
|
277 | 277 | // at this point the form get instantiated and immediately accumulated |
278 | 278 | $instanceForm = $form->getForm($formIdentifier); |
279 | 279 | if (!isset($instanceForm)) { |
280 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
280 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
281 | 281 | } |
282 | 282 | // the id may be part of the postData, but it never should be altered |
283 | 283 | $postData = $request->getPost(); |
@@ -331,20 +331,20 @@ discard block |
||
331 | 331 | $jobValid = false; |
332 | 332 | $errorMessage[] = $this->translator->translate('Accept the Terms'); |
333 | 333 | } |
334 | - $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]); |
|
334 | + $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]); |
|
335 | 335 | foreach ($result as $messages) { |
336 | 336 | if (!$messages) { |
337 | 337 | continue; |
338 | 338 | } |
339 | 339 | if (!is_array($messages)) { |
340 | - $messages = [ $messages ]; |
|
340 | + $messages = [$messages]; |
|
341 | 341 | } |
342 | 342 | |
343 | 343 | $errorMessage = array_merge($errorMessage, $messages); |
344 | 344 | $jobValid = false; |
345 | 345 | } |
346 | 346 | |
347 | - $errorMessage = '<br />' . implode('<br />', $errorMessage); |
|
347 | + $errorMessage = '<br />'.implode('<br />', $errorMessage); |
|
348 | 348 | if ($isAjax) { |
349 | 349 | if ($instanceForm instanceof SummaryForm) { |
350 | 350 | $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY); |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | } else { |
353 | 353 | $viewHelper = 'form'; |
354 | 354 | } |
355 | - $viewHelperManager = $this->viewHelper; |
|
355 | + $viewHelperManager = $this->viewHelper; |
|
356 | 356 | $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm); |
357 | 357 | $viewModel = new JsonModel( |
358 | 358 | array( |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | } |
377 | 377 | } |
378 | 378 | } else { |
379 | - $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]); |
|
379 | + $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]); |
|
380 | 380 | // Job is deployed, some changes are now disabled |
381 | 381 | $form->enableAll(); |
382 | 382 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | |
385 | 385 | $completionLink = $this->url()->fromRoute( |
386 | 386 | 'lang/jobs/completion', |
387 | - [ 'id' => $jobEntity->getId()] |
|
387 | + ['id' => $jobEntity->getId()] |
|
388 | 388 | ); |
389 | 389 | |
390 | 390 | $viewModel = $this->getViewModel($form); |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | protected function getFormular($job) |
451 | 451 | { |
452 | 452 | /* @var $forms \Zend\Form\FormElementManager\FormElementManagerV3Polyfill */ |
453 | - $forms = $this->formManager; |
|
453 | + $forms = $this->formManager; |
|
454 | 454 | /* @var $container \Jobs\Form\Job */ |
455 | 455 | |
456 | 456 | $container = $forms->get( |
@@ -555,11 +555,11 @@ discard block |
||
555 | 555 | // array with differences between the last snapshot and the actual entity |
556 | 556 | // is remains Null if there is no snapshot |
557 | 557 | // it will be an empty array if the snapshot and the actual entity do not differ |
558 | - $diff = null; |
|
558 | + $diff = null; |
|
559 | 559 | |
560 | 560 | |
561 | 561 | if ($params == 'declined') { |
562 | - if ($jobEntity instanceOf JobSnapshot) { |
|
562 | + if ($jobEntity instanceOf JobSnapshot) { |
|
563 | 563 | $jobEntity->getOriginalEntity()->changeStatus( |
564 | 564 | Status::ACTIVE, |
565 | 565 | sprintf( |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | */ |
635 | 635 | public function deactivateAction() |
636 | 636 | { |
637 | - $user = $this->auth->getUser(); |
|
637 | + $user = $this->auth->getUser(); |
|
638 | 638 | |
639 | 639 | $jobEntity = $this->initializeJob()->get($this->params()); |
640 | 640 |