@@ -82,7 +82,7 @@ |
||
82 | 82 | $result = true; |
83 | 83 | try{ |
84 | 84 | $repo->store($user); |
85 | - }catch (\Exception $e){ |
|
85 | + } catch (\Exception $e){ |
|
86 | 86 | throw $e; |
87 | 87 | } |
88 | 88 | return $result; |
@@ -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 | } |
@@ -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); |
@@ -65,10 +65,12 @@ |
||
65 | 65 | %s |
66 | 66 | </div>'; |
67 | 67 | |
68 | - foreach ($container as $form) /* @var $form \Laminas\Form\Form */ |
|
68 | + foreach ($container as $form) { |
|
69 | + /* @var $form \Laminas\Form\Form */ |
|
69 | 70 | { |
70 | 71 | $formsMarkup .= sprintf($formTemplateWrapper, $formContainerHelper->renderElement($form, $layout, $parameter)); |
71 | 72 | } |
73 | + } |
|
72 | 74 | |
73 | 75 | $templateForm = $container->getTemplateForm(); |
74 | 76 | $templateMarkup = sprintf( |
@@ -399,7 +399,7 @@ |
||
399 | 399 | 'content' => $content, |
400 | 400 | 'isApplicationValid' => $this->checkApplication($application) |
401 | 401 | ]); |
402 | - }elseif('attachments' === $formName){ |
|
402 | + } elseif('attachments' === $formName){ |
|
403 | 403 | $attachment = $uploadHandler->handleAttachmentUpload($postData['applicationId'], $_FILES['attachments']); |
404 | 404 | $basepath = $this->viewHelper->get('basepath'); |
405 | 405 | $content = $basepath($attachment->getUri()); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $qb = $this->queryBuilder; |
49 | 49 | $qb->skip($offset)->limit($itemCountPerPage); |
50 | 50 | return $qb->getQuery()->toArray(); |
51 | - }catch (\Exception $e){ |
|
51 | + } catch (\Exception $e){ |
|
52 | 52 | throw $e; |
53 | 53 | } |
54 | 54 | } |
@@ -147,7 +147,7 @@ |
||
147 | 147 | |
148 | 148 | if (is_string($image)) { |
149 | 149 | $file = $image; |
150 | - }else{ |
|
150 | + } else{ |
|
151 | 151 | $format = str_replace('image/', '', $data['type']); |
152 | 152 | $content = $image->get($format); |
153 | 153 | $file = '/tmp/php'.md5($content); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | return $image; |
81 | 81 | } |
82 | 82 | } |
83 | - }catch (\Exception $e){ |
|
83 | + } catch (\Exception $e){ |
|
84 | 84 | return null; |
85 | 85 | } |
86 | 86 | } |