@@ -109,8 +109,7 @@ |
||
| 109 | 109 | if ('file-uri' === $params->fromPost('return')) { |
| 110 | 110 | $content = $viewHelperManager->get('basepath') |
| 111 | 111 | ->__invoke($form->getHydrator()->getLastUploadedFile()->getUri()); |
| 112 | - } |
|
| 113 | - else { |
|
| 112 | + } else { |
|
| 114 | 113 | if ($form instanceof SummaryFormInterface) { |
| 115 | 114 | $form->setRenderMode(SummaryFormInterface::RENDER_SUMMARY); |
| 116 | 115 | $viewHelper = 'summaryform'; |
@@ -60,9 +60,11 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $items = []; |
| 62 | 62 | |
| 63 | - foreach ($this->repository->getUserOrganizations($user->getId(), $limit) as $organization) /* @var $organization \Organizations\Entity\Organization */ |
|
| 63 | + foreach ($this->repository->getUserOrganizations($user->getId(), $limit) as $organization) { |
|
| 64 | + /* @var $organization \Organizations\Entity\Organization */ |
|
| 64 | 65 | { |
| 65 | 66 | $name = $organization->getOrganizationName(); |
| 67 | + } |
|
| 66 | 68 | $title = $name ? $name->getName() : '**** DRAFT ****'; |
| 67 | 69 | $url = $view->url('lang/organizations/edit', ['id' => $organization->getId()]); |
| 68 | 70 | $items[] = new ListItem($title, $url); |
@@ -54,9 +54,11 @@ |
||
| 54 | 54 | return $items; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - foreach ($employees->slice(0, $limit) as $employee) /* @var $employee \Organizations\Entity\Employee */ |
|
| 57 | + foreach ($employees->slice(0, $limit) as $employee) { |
|
| 58 | + /* @var $employee \Organizations\Entity\Employee */ |
|
| 58 | 59 | { |
| 59 | 60 | $info = $employee->getUser()->getInfo(); |
| 61 | + } |
|
| 60 | 62 | $title = $info->getDisplayName(); |
| 61 | 63 | $items[] = new ListItem($title); |
| 62 | 64 | } |
@@ -60,9 +60,11 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $items = []; |
| 62 | 62 | |
| 63 | - foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
|
| 63 | + foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) { |
|
| 64 | + /* @var $application \Applications\Entity\Application */ |
|
| 64 | 65 | { |
| 65 | 66 | $title = $application->getJob()->getTitle(); |
| 67 | + } |
|
| 66 | 68 | $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
| 67 | 69 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
| 68 | 70 | $items[] = new ListItem($title, $url); |
@@ -60,9 +60,11 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $items = []; |
| 62 | 62 | |
| 63 | - foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) /* @var $job \Jobs\Entity\Job */ |
|
| 63 | + foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) { |
|
| 64 | + /* @var $job \Jobs\Entity\Job */ |
|
| 64 | 65 | { |
| 65 | 66 | $title = $job->getTitle() ?: $view->translate('untitled'); |
| 67 | + } |
|
| 66 | 68 | $title .= ' ('. $view->dateFormat($job->getDateCreated(), 'short', 'none') . ')'; |
| 67 | 69 | $url = $view->url('lang/jobs/manage', ['action' => 'edit'], [ |
| 68 | 70 | 'query' => [ |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | if ($this->value['params']['status'] != 'all'){ |
| 63 | 63 | $queryBuilder->field('status.name')->equals($this->value['params']['status']); |
| 64 | 64 | } |
| 65 | - }else{ |
|
| 65 | + } else{ |
|
| 66 | 66 | $queryBuilder->field('status.name')->equals(Status::CREATED); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | if (!empty($jobEntity->getLink())) { |
| 70 | 70 | $url = $jobEntity->getLink(); |
| 71 | 71 | $isExternalLink = true; |
| 72 | - }elseif($options['showPendingJobs']) { |
|
| 72 | + } elseif($options['showPendingJobs']) { |
|
| 73 | 73 | $url = $urlHelper( |
| 74 | 74 | 'lang/jobs/approval', |
| 75 | 75 | [], |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | ] |
| 80 | 80 | ], true); |
| 81 | 81 | |
| 82 | - }else{ |
|
| 82 | + } else{ |
|
| 83 | 83 | |
| 84 | 84 | $query = [ |
| 85 | 85 | 'subscriberUri' => $serverUrlHelper([]) . '/subscriber/' . 1, |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | if ($options['absolute'] && !$isExternalLink){ |
| 101 | 101 | $result = $serverUrlHelper($url); |
| 102 | 102 | } |
| 103 | - }else{ |
|
| 103 | + } else{ |
|
| 104 | 104 | $result = sprintf('<a href="%s" rel="%s" %s>%s</a>', |
| 105 | 105 | $url, |
| 106 | 106 | $options['rel'], |