@@ -40,8 +40,7 @@ |
||
40 | 40 | if (strpos($addModule, '-') === 0) { |
41 | 41 | $remove = substr($addModule,1); |
42 | 42 | $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); }); |
43 | - } |
|
44 | - else { |
|
43 | + } else { |
|
45 | 44 | if (!in_array($addModule, $modules)) { |
46 | 45 | $modules[] = $addModule; |
47 | 46 | } |
@@ -96,8 +96,7 @@ |
||
96 | 96 | 'content' => $content, |
97 | 97 | ) |
98 | 98 | ); |
99 | - } |
|
100 | - elseif ($postProfiles) { |
|
99 | + } elseif ($postProfiles) { |
|
101 | 100 | $formSocialProfiles->setData($this->params()->fromPost()); |
102 | 101 | |
103 | 102 | if ($formSocialProfiles->isValid()) { |
@@ -411,8 +411,7 @@ |
||
411 | 411 | } else { |
412 | 412 | $notFoundUsers[] = $grp_member . $loginSuffix; |
413 | 413 | } |
414 | - } |
|
415 | - catch (\Auth\Exception\UserDeactivatedException $e) |
|
414 | + } catch (\Auth\Exception\UserDeactivatedException $e) |
|
416 | 415 | { |
417 | 416 | $notFoundUsers[] = $grp_member . $loginSuffix; |
418 | 417 | } |
@@ -60,10 +60,12 @@ |
||
60 | 60 | %s |
61 | 61 | </div>'; |
62 | 62 | |
63 | - foreach ($container as $form) /* @var $form \Zend\Form\Form */ |
|
63 | + foreach ($container as $form) { |
|
64 | + /* @var $form \Zend\Form\Form */ |
|
64 | 65 | { |
65 | 66 | $formsMarkup .= sprintf($formTemplateWrapper, $formContainerHelper->renderElement($form, $layout, $parameter)); |
66 | 67 | } |
68 | + } |
|
67 | 69 | |
68 | 70 | $templateForm = $container->getTemplateForm(); |
69 | 71 | $templateMarkup = sprintf( |
@@ -137,8 +137,7 @@ |
||
137 | 137 | if ($this->getElement($key) !== false) |
138 | 138 | { |
139 | 139 | $this->collection->set($this->collection->indexOf($value), $value); |
140 | - } |
|
141 | - else |
|
140 | + } else |
|
142 | 141 | { |
143 | 142 | $this->collection->add($value); |
144 | 143 | } |
@@ -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' => [ |