@@ -65,8 +65,8 @@ |
||
65 | 65 | 'link' => $this->jobUrl->__invoke( |
66 | 66 | $job, |
67 | 67 | [ |
68 | - 'linkOnly'=> true, |
|
69 | - 'absolute' => true, |
|
68 | + 'linkOnly'=> true, |
|
69 | + 'absolute' => true, |
|
70 | 70 | ] |
71 | 71 | ), |
72 | 72 | 'organization' => array( |
@@ -66,16 +66,16 @@ discard block |
||
66 | 66 | */ |
67 | 67 | protected $translator; |
68 | 68 | |
69 | - /** |
|
70 | - * @var FilterPluginManager |
|
71 | - */ |
|
69 | + /** |
|
70 | + * @var FilterPluginManager |
|
71 | + */ |
|
72 | 72 | protected $filterManager; |
73 | 73 | |
74 | 74 | protected $jobFormEvents; |
75 | 75 | |
76 | - /** |
|
77 | - * @var |
|
78 | - */ |
|
76 | + /** |
|
77 | + * @var |
|
78 | + */ |
|
79 | 79 | protected $formManager; |
80 | 80 | |
81 | 81 | protected $options; |
@@ -88,35 +88,35 @@ discard block |
||
88 | 88 | |
89 | 89 | protected $jobEvent; |
90 | 90 | |
91 | - /** |
|
92 | - * ManageController constructor. |
|
93 | - * |
|
94 | - * @TODO: [ZF3] make this controller more thin, looks like so much things to do |
|
95 | - * |
|
96 | - * @param AuthenticationService $auth |
|
97 | - * @param RepositoryService $repositoryService |
|
98 | - * @param TranslatorInterface $translator |
|
99 | - * @param FilterPluginManager $filterManager |
|
100 | - * @param EventManagerInterface $jobFormEvents |
|
101 | - * @param $formManager |
|
102 | - * @param $options |
|
103 | - * @param HelperPluginManager $viewHelper |
|
104 | - * @param ValidatorPluginManager $validatorManager |
|
105 | - * @param EventManagerInterface $jobEvents |
|
106 | - * @param EventInterface $jobEvent |
|
107 | - */ |
|
91 | + /** |
|
92 | + * ManageController constructor. |
|
93 | + * |
|
94 | + * @TODO: [ZF3] make this controller more thin, looks like so much things to do |
|
95 | + * |
|
96 | + * @param AuthenticationService $auth |
|
97 | + * @param RepositoryService $repositoryService |
|
98 | + * @param TranslatorInterface $translator |
|
99 | + * @param FilterPluginManager $filterManager |
|
100 | + * @param EventManagerInterface $jobFormEvents |
|
101 | + * @param $formManager |
|
102 | + * @param $options |
|
103 | + * @param HelperPluginManager $viewHelper |
|
104 | + * @param ValidatorPluginManager $validatorManager |
|
105 | + * @param EventManagerInterface $jobEvents |
|
106 | + * @param EventInterface $jobEvent |
|
107 | + */ |
|
108 | 108 | public function __construct( |
109 | - AuthenticationService $auth, |
|
110 | - RepositoryService $repositoryService, |
|
111 | - TranslatorInterface $translator, |
|
112 | - FilterPluginManager $filterManager, |
|
113 | - EventManagerInterface $jobFormEvents, |
|
114 | - $formManager, |
|
115 | - $options, |
|
116 | - HelperPluginManager $viewHelper, |
|
117 | - ValidatorPluginManager $validatorManager, |
|
118 | - EventManagerInterface $jobEvents, |
|
119 | - EventInterface $jobEvent |
|
109 | + AuthenticationService $auth, |
|
110 | + RepositoryService $repositoryService, |
|
111 | + TranslatorInterface $translator, |
|
112 | + FilterPluginManager $filterManager, |
|
113 | + EventManagerInterface $jobFormEvents, |
|
114 | + $formManager, |
|
115 | + $options, |
|
116 | + HelperPluginManager $viewHelper, |
|
117 | + ValidatorPluginManager $validatorManager, |
|
118 | + EventManagerInterface $jobEvents, |
|
119 | + EventInterface $jobEvent |
|
120 | 120 | ) |
121 | 121 | { |
122 | 122 | $this->auth = $auth; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | } |
158 | 158 | $routeMatch = $e->getRouteMatch(); |
159 | 159 | $action = $routeMatch->getParam('action'); |
160 | - $services = $e->getApplication()->getServiceManager(); |
|
160 | + $services = $e->getApplication()->getServiceManager(); |
|
161 | 161 | if (in_array($action, array('edit', 'approval', 'completion'))) { |
162 | 162 | $jobEvents = $services->get('Jobs/Events'); |
163 | 163 | $mailSender = $services->get('Jobs/Listener/MailSender'); |
@@ -202,12 +202,12 @@ discard block |
||
202 | 202 | $jobEntity = $this->initializeJob()->get($this->params(), true); |
203 | 203 | |
204 | 204 | $model = new ViewModel([ |
205 | - 'portals' => $jobEntity->getPortals(), |
|
206 | - 'channels' => $channels, |
|
207 | - 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
208 | - 'defaultTaxRate' => $options->defaultTaxRate, |
|
209 | - 'jobId' => $jobEntity->getId() |
|
210 | - ]); |
|
205 | + 'portals' => $jobEntity->getPortals(), |
|
206 | + 'channels' => $channels, |
|
207 | + 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
208 | + 'defaultTaxRate' => $options->defaultTaxRate, |
|
209 | + 'jobId' => $jobEntity->getId() |
|
210 | + ]); |
|
211 | 211 | $model->setTemplate('jobs/partials/channel-list')->setTerminal(true); |
212 | 212 | return $model; |
213 | 213 | } |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | */ |
226 | 226 | protected function save() |
227 | 227 | { |
228 | - $formEvents = $this->jobFormEvents; |
|
228 | + $formEvents = $this->jobFormEvents; |
|
229 | 229 | $user = $this->auth->getUser(); |
230 | 230 | if (empty($user->getInfo()->getEmail())) { |
231 | 231 | return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail')); |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | 'lang/jobs/view', |
585 | 585 | array(), |
586 | 586 | array('query' => $query |
587 | - ) |
|
587 | + ) |
|
588 | 588 | ); |
589 | 589 | |
590 | 590 | $approvalLink = $this->url()->fromRoute( |
@@ -600,10 +600,10 @@ discard block |
||
600 | 600 | ); |
601 | 601 | |
602 | 602 | return array('job' => $jobEntity, |
603 | - 'diffSnapshot' => $diff, |
|
604 | - 'viewLink' => $viewLink, |
|
605 | - 'approvalLink' => $approvalLink, |
|
606 | - 'declineLink' => $declineLink); |
|
603 | + 'diffSnapshot' => $diff, |
|
604 | + 'viewLink' => $viewLink, |
|
605 | + 'approvalLink' => $approvalLink, |
|
606 | + 'declineLink' => $declineLink); |
|
607 | 607 | } |
608 | 608 | |
609 | 609 | /** |
@@ -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 \Laminas\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( |
@@ -557,15 +557,15 @@ discard block |
||
557 | 557 | $jobEvent->setJobEntity($jobEntity); |
558 | 558 | $jobEvent->addPortal('XingVendorApi'); |
559 | 559 | $jobEvent->setTarget($this); |
560 | - $jobEvents = $this->jobEvents; |
|
560 | + $jobEvents = $this->jobEvents; |
|
561 | 561 | // array with differences between the last snapshot and the actual entity |
562 | 562 | // is remains Null if there is no snapshot |
563 | 563 | // it will be an empty array if the snapshot and the actual entity do not differ |
564 | - $diff = null; |
|
564 | + $diff = null; |
|
565 | 565 | |
566 | 566 | |
567 | 567 | if ($params == 'declined') { |
568 | - if ($jobEntity instanceOf JobSnapshot) { |
|
568 | + if ($jobEntity instanceOf JobSnapshot) { |
|
569 | 569 | $jobEntity->getOriginalEntity()->changeStatus( |
570 | 570 | Status::ACTIVE, |
571 | 571 | sprintf( |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | */ |
644 | 644 | public function deactivateAction() |
645 | 645 | { |
646 | - $user = $this->auth->getUser(); |
|
646 | + $user = $this->auth->getUser(); |
|
647 | 647 | |
648 | 648 | $jobEntity = $this->initializeJob()->get($this->params()); |
649 | 649 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | return new JsonModel([ |
72 | 72 | 'valid' => $valid, |
73 | 73 | 'errors' => $errors |
74 | - ]); |
|
74 | + ]); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $form->bind($job); |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | { |
58 | 58 | $params = $this->params()->fromQuery(); |
59 | 59 | return $this->pagination([ |
60 | - 'params' => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ], |
|
61 | - 'form' => [ 'as' => 'form', 'Jobs/AdminSearch' ], |
|
62 | - 'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ], |
|
60 | + 'params' => ['Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']], |
|
61 | + 'form' => ['as' => 'form', 'Jobs/AdminSearch'], |
|
62 | + 'paginator' => ['as' => 'jobs', 'Jobs/Admin'], |
|
63 | 63 | ]); |
64 | 64 | } |
65 | 65 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $oldStatus = $job->getStatus(); |
85 | 85 | $job->changeStatus($post['status'], '[System] Status changed via Admin GUI.'); |
86 | 86 | $events = $this->jobEvents; |
87 | - $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]); |
|
87 | + $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | |
@@ -96,6 +96,6 @@ discard block |
||
96 | 96 | |
97 | 97 | $form->bind($job); |
98 | 98 | |
99 | - return [ 'form' => $form, 'job' => $job ]; |
|
99 | + return ['form' => $form, 'job' => $job]; |
|
100 | 100 | } |
101 | 101 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function attachDefaultListeners() |
68 | 68 | { |
69 | 69 | parent::attachDefaultListeners(); |
70 | - $events = $this->getEventManager(); |
|
70 | + $events = $this->getEventManager(); |
|
71 | 71 | $this->defaultListener->attach($events); |
72 | 72 | return $this; |
73 | 73 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $getParams = $request->getQuery(); |
92 | 92 | $routeParams = $this->params()->fromRoute(); |
93 | 93 | if (isset($routeParams['q']) && !isset($getParams['q'])) { |
94 | - $getParams['q']=$routeParams['q']; |
|
94 | + $getParams['q'] = $routeParams['q']; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $result = $this->pagination([ |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $response->setStatusCode(Response::STATUS_CODE_404); |
42 | 42 | return $response; |
43 | 43 | } |
44 | - $jsonModel=new JsonModel(); |
|
44 | + $jsonModel = new JsonModel(); |
|
45 | 45 | $jsonModel->setVariables($this->apiJobDehydrator->dehydrateList($jobs)); |
46 | 46 | $jsonModel->setJsonpCallback($callback); |
47 | 47 |
@@ -45,8 +45,7 @@ |
||
45 | 45 | $callback = $this->filter->setData($_GET)->getValue('callback'); |
46 | 46 | |
47 | 47 | $status = $this->filter->getValue('status'); |
48 | - if (true === $status) { $status = null; } |
|
49 | - elseif (!$status) { $status = StatusInterface::ACTIVE; } |
|
48 | + if (true === $status) { $status = null; } elseif (!$status) { $status = StatusInterface::ACTIVE; } |
|
50 | 49 | |
51 | 50 | try { |
52 | 51 | $jobs = $this->jobRepository->findByOrganization($organizationId, $status); |
@@ -192,9 +192,9 @@ |
||
192 | 192 | return (float) $i; |
193 | 193 | }, $locData['coordinates']); |
194 | 194 | $location->setCountry($locData['country']) |
195 | - ->setRegion($locData['region']) |
|
196 | - ->setCity($locData['city']) |
|
197 | - ->setCoordinates(new Point($coords)); |
|
195 | + ->setRegion($locData['region']) |
|
196 | + ->setCity($locData['city']) |
|
197 | + ->setCoordinates(new Point($coords)); |
|
198 | 198 | |
199 | 199 | $jobLocations->add($location); |
200 | 200 | } |
@@ -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 | } |
@@ -129,10 +129,10 @@ discard block |
||
129 | 129 | $entity->getPermissions()->grant($group, PermissionsInterface::PERMISSION_VIEW); |
130 | 130 | } |
131 | 131 | $result['isSaved'] = true; |
132 | - $log->info('Jobs/manage/saveJob [user: ' . $user->getLogin() . ']:' . var_export($p, true)); |
|
132 | + $log->info('Jobs/manage/saveJob [user: '.$user->getLogin().']:'.var_export($p, true)); |
|
133 | 133 | |
134 | 134 | if (!empty($params->companyId)) { |
135 | - $companyId = $params->companyId . $loginSuffix; |
|
135 | + $companyId = $params->companyId.$loginSuffix; |
|
136 | 136 | $repOrganization = $repositories->get('Organizations/Organization'); |
137 | 137 | $hydratorManager = $services->get('HydratorManager'); |
138 | 138 | /* @var \Organizations\Entity\Hydrator\OrganizationHydrator $hydrator */ |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $jobLocations->clear(); |
189 | 189 | foreach ($locations as $locData) { |
190 | 190 | $location = new Location(); |
191 | - $coords = array_map(function ($i) { |
|
191 | + $coords = array_map(function($i) { |
|
192 | 192 | return (float) $i; |
193 | 193 | }, $locData['coordinates']); |
194 | 194 | $location->setCountry($locData['country']) |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | break; |
267 | 267 | } |
268 | 268 | if (array_key_exists($portal, $result['portals'])) { |
269 | - throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for ' . $portal); |
|
269 | + throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for '.$portal); |
|
270 | 270 | } |
271 | 271 | $result['portals'][$portal] = $status; |
272 | 272 | } else { |
@@ -279,16 +279,16 @@ discard block |
||
279 | 279 | } |
280 | 280 | } |
281 | 281 | } else { |
282 | - $log->info('Jobs/manage/saveJob [error: ' . $form->getMessages() . ']:' . var_export($p, true)); |
|
282 | + $log->info('Jobs/manage/saveJob [error: '.$form->getMessages().']:'.var_export($p, true)); |
|
283 | 283 | $result['valid Error'] = $form->getMessages(); |
284 | 284 | } |
285 | 285 | } |
286 | 286 | } else { |
287 | - $log->info('Jobs/manage/saveJob [error: session lost]:' . var_export($p, true)); |
|
287 | + $log->info('Jobs/manage/saveJob [error: session lost]:'.var_export($p, true)); |
|
288 | 288 | $result['message'] = 'session_id is lost'; |
289 | 289 | } |
290 | 290 | } catch (\Exception $e) { |
291 | - $result['message'] = 'exception occured: ' . $e->getMessage(); |
|
291 | + $result['message'] = 'exception occured: '.$e->getMessage(); |
|
292 | 292 | } |
293 | 293 | //$services->get('Core/Log')->info('Jobs/manage/saveJob result:' . PHP_EOL . var_export($p, True)); |
294 | 294 | return new JsonModel($result); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $job = $this->repository->find($id); |
63 | 63 | |
64 | 64 | if (!$job) { |
65 | - throw new \RuntimeException('No job found with id "' . $id . '"'); |
|
65 | + throw new \RuntimeException('No job found with id "'.$id.'"'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $this->acl($job, 'edit'); |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | |
44 | 44 | public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) |
45 | 45 | { |
46 | - $this->repositoryService=$repositoryService; |
|
47 | - $this->auth=$auth; |
|
48 | - $this->acl=$acl; |
|
46 | + $this->repositoryService = $repositoryService; |
|
47 | + $this->auth = $auth; |
|
48 | + $this->acl = $acl; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public function __invoke() |
@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | public function get(Params $params, $allowDraft = false, $getSnapshot = false) |
65 | 65 | { |
66 | 66 | /* @var \Jobs\Repository\Job $jobRepository */ |
67 | - $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
67 | + $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
68 | 68 | $idFromRoute = $params('id', 0); |
69 | 69 | $idFromQuery = $params->fromQuery('id', 0); |
70 | 70 | $idFromSubForm = $params->fromPost('job', 0); |
71 | 71 | |
72 | - $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute; |
|
72 | + $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute; |
|
73 | 73 | $snapshotId = $params->fromPost('snapshot') ?: ($params->fromQuery('snapshot') ?: null); |
74 | 74 | |
75 | 75 | if (empty($id) && empty($snapshotId) && $allowDraft) { |
@@ -32,9 +32,9 @@ |
||
32 | 32 | $channel = $this->params()->fromRoute('channel', 'default'); |
33 | 33 | |
34 | 34 | /* @var Paginator $paginator */ |
35 | - $paginator = $this->paginator('Jobs/Job', ['channel' => $channel ]); |
|
35 | + $paginator = $this->paginator('Jobs/Job', ['channel' => $channel]); |
|
36 | 36 | |
37 | - $viewModel=new ViewModel(); |
|
37 | + $viewModel = new ViewModel(); |
|
38 | 38 | $viewModel->setVariables( |
39 | 39 | [ |
40 | 40 | 'jobs' => $paginator, |