@@ -24,8 +24,8 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->setName('education') |
27 | - ->setHydrator(new EntityHydrator()) |
|
28 | - ->setObject(new EducationEntity()); |
|
27 | + ->setHydrator(new EntityHydrator()) |
|
28 | + ->setObject(new EducationEntity()); |
|
29 | 29 | |
30 | 30 | $this->add( |
31 | 31 | array( |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->add([ |
28 | 28 | 'name' => 'endDate', |
29 | - 'required' => ! $data['currentIndicator'] |
|
29 | + 'required' => !$data['currentIndicator'] |
|
30 | 30 | ]); |
31 | 31 | |
32 | 32 | return parent::setData($data); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @var string |
54 | 54 | */ |
55 | - protected $options="Cv/Options"; |
|
55 | + protected $options = "Cv/Options"; |
|
56 | 56 | |
57 | 57 | |
58 | 58 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
81 | 81 | ) |
82 | 82 | ->setParam('return', 'file-uri') |
83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -74,14 +74,14 @@ |
||
74 | 74 | $count = $options->getAttachmentsCount(); |
75 | 75 | |
76 | 76 | $form->setIsDisableCapable(false) |
77 | - ->setIsDisableElementsCapable(false) |
|
78 | - ->setIsDescriptionsEnabled(true) |
|
79 | - ->setDescription( |
|
77 | + ->setIsDisableElementsCapable(false) |
|
78 | + ->setIsDescriptionsEnabled(true) |
|
79 | + ->setDescription( |
|
80 | 80 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
81 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | - ) |
|
83 | - ->setParam('return', 'file-uri') |
|
84 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
81 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | + ) |
|
83 | + ->setParam('return', 'file-uri') |
|
84 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
85 | 85 | |
86 | 86 | /* @var $file \Core\Form\Element\FileUpload */ |
87 | 87 | $file = $form->get($this->fileName); |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function getEmptySummaryNotice() |
52 | 52 | { |
53 | - if (! isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
53 | + if (!isset($this->emptySummaryNotice) && property_exists($this, 'defaultEmptySummaryNotice')) { |
|
54 | 54 | $this->emptySummaryNotice = $this->defaultEmptySummaryNotice; |
55 | 55 | } |
56 | 56 |
@@ -108,10 +108,10 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @return string |
|
112 | - */ |
|
113 | - public function getDefaultLanguage() |
|
114 | - { |
|
115 | - return $this->defaultLanguage; |
|
116 | - } |
|
111 | + * @return string |
|
112 | + */ |
|
113 | + public function getDefaultLanguage() |
|
114 | + { |
|
115 | + return $this->defaultLanguage; |
|
116 | + } |
|
117 | 117 | } |
@@ -78,12 +78,12 @@ discard block |
||
78 | 78 | 'exception_template' => 'error/index', |
79 | 79 | // Map template to files. Speeds up the lookup through the template stack. |
80 | 80 | 'template_map' => array( |
81 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
82 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
81 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
82 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
83 | 83 | ), |
84 | 84 | // Where to look for view templates not mapped above |
85 | 85 | 'template_path_stack' => array( |
86 | - __DIR__ . '/../view', |
|
86 | + __DIR__.'/../view', |
|
87 | 87 | ), |
88 | 88 | ), |
89 | 89 | |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | 'translation_file_patterns' => array( |
92 | 92 | array( |
93 | 93 | 'type' => 'gettext', |
94 | - 'base_dir' => __DIR__ . '/../language', |
|
94 | + 'base_dir' => __DIR__.'/../language', |
|
95 | 95 | 'pattern' => '%s.mo', |
96 | 96 | 'text_domain' => 'Install', |
97 | 97 | ), |
98 | 98 | [ |
99 | 99 | 'type' => 'phparray', |
100 | - 'base_dir' => __DIR__ . '/../../Core/language', |
|
100 | + 'base_dir' => __DIR__.'/../../Core/language', |
|
101 | 101 | 'pattern' => 'Zend_Validate.%s.php', |
102 | 102 | 'text_domain' => 'default', |
103 | 103 | ], |
@@ -8,24 +8,24 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | return array( |
11 | - 'tracy' => [ |
|
12 | - 'enabled' => true, // flag whether to load tracy at all |
|
13 | - 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | - 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | - 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | - 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | - 'email' => null, // in production mode notifies the recipient |
|
18 | - 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | - ], |
|
11 | + 'tracy' => [ |
|
12 | + 'enabled' => true, // flag whether to load tracy at all |
|
13 | + 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | + 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | + 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | + 'log' => __DIR__.'/../../../log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | + 'email' => null, // in production mode notifies the recipient |
|
18 | + 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | + ], |
|
20 | 20 | |
21 | 21 | 'service_manager' => array( |
22 | 22 | 'invokables' => array( |
23 | 23 | 'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter', |
24 | 24 | ), |
25 | - 'factories' => array( |
|
26 | - 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
27 | - 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class |
|
28 | - ), |
|
25 | + 'factories' => array( |
|
26 | + 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
27 | + 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class |
|
28 | + ), |
|
29 | 29 | ), |
30 | 30 | |
31 | 31 | 'router' => array( |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | ), |
46 | 46 | |
47 | 47 | 'controllers' => array( |
48 | - 'abstract_factories' => [ |
|
49 | - \Install\Factory\Controller\LazyControllerFactory::class |
|
50 | - ], |
|
48 | + 'abstract_factories' => [ |
|
49 | + \Install\Factory\Controller\LazyControllerFactory::class |
|
50 | + ], |
|
51 | 51 | ), |
52 | 52 | |
53 | 53 | 'controller_plugins' => array( |
@@ -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 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
64 | 64 | { |
65 | 65 | $title = $application->getJob()->getTitle(); |
66 | - $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
|
66 | + $title .= ' ('.$view->dateFormat($application->getDateCreated()).')'; |
|
67 | 67 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
68 | 68 | $items[] = new ListItem($title, $url); |
69 | 69 | } |
@@ -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); |