@@ -80,7 +80,7 @@ |
||
80 | 80 | protected function editTemplateAction() |
81 | 81 | { |
82 | 82 | $id = $this->params('id'); |
83 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
83 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
84 | 84 | $job = $this->jobRepository->find($id); |
85 | 85 | |
86 | 86 | /** @var \Zend\Http\Request $request */ |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected $acl; |
40 | 40 | |
41 | - public function __construct(RepositoryService $repositoryService,AuthenticationService $auth, Acl $acl) { |
|
42 | - $this->repositoryService=$repositoryService; |
|
43 | - $this->auth=$auth; |
|
44 | - $this->acl=$acl; |
|
41 | + public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl) { |
|
42 | + $this->repositoryService = $repositoryService; |
|
43 | + $this->auth = $auth; |
|
44 | + $this->acl = $acl; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | public function __invoke() |
@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | * @return \Jobs\Entity\Job|object |
57 | 57 | * @throws \Doctrine\ODM\MongoDB\LockException |
58 | 58 | */ |
59 | - public function get(Params $params,$allowDraft = false) |
|
59 | + public function get(Params $params, $allowDraft = false) |
|
60 | 60 | { |
61 | 61 | /* @var \Jobs\Repository\Job $jobRepository */ |
62 | - $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
62 | + $jobRepository = $this->repositoryService->get('Jobs/Job'); |
|
63 | 63 | $idFromRoute = $params('id', 0); |
64 | 64 | $idFromQuery = $params->fromQuery('id', 0); |
65 | 65 | $idFromSubForm = $params->fromPost('job', 0); |
66 | 66 | |
67 | - $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute; |
|
67 | + $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute; |
|
68 | 68 | |
69 | 69 | if (empty($id) && $allowDraft) { |
70 | 70 | $this->acl->__invoke('Jobs/Manage', 'new'); |