@@ -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( |
@@ -52,8 +52,8 @@ |
||
52 | 52 | public function init() |
53 | 53 | { |
54 | 54 | $this->setName('preferredJob') |
55 | - ->setHydrator(new EntityHydrator()) |
|
56 | - ->setObject(new PreferredJob()); |
|
55 | + ->setHydrator(new EntityHydrator()) |
|
56 | + ->setObject(new PreferredJob()); |
|
57 | 57 | |
58 | 58 | $this->add( |
59 | 59 | array( |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | use EmptySummaryAwareTrait; |
15 | 15 | |
16 | - private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
16 | + private $defaultEmptySummaryNotice = /*@translate*/ 'Click here to enter your employment expectation'; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Type of Application Options |
@@ -44,7 +44,7 @@ |
||
44 | 44 | protected $locationEngineType; |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $locationEngineType |
|
47 | + * @param string $locationEngineType |
|
48 | 48 | */ |
49 | 49 | public function setLocationEngineType($locationEngineType) |
50 | 50 | { |
@@ -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); |
@@ -24,8 +24,8 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->setName('employment') |
27 | - ->setHydrator(new EntityHydrator()) |
|
28 | - ->setObject(new EmploymentEntity()); |
|
27 | + ->setHydrator(new EntityHydrator()) |
|
28 | + ->setObject(new EmploymentEntity()); |
|
29 | 29 | |
30 | 30 | $this->add( |
31 | 31 | array( |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * for multiple paths. |
16 | 16 | * example https://github.com/doctrine/DoctrineORMModule |
17 | 17 | */ |
18 | - 'paths' => array( __DIR__ . '/../src/Cv/Entity'), |
|
18 | + 'paths' => array(__DIR__.'/../src/Cv/Entity'), |
|
19 | 19 | ), |
20 | 20 | ), |
21 | 21 | 'eventmanager' => array( |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'translation_file_patterns' => array( |
37 | 37 | array( |
38 | 38 | 'type' => 'gettext', |
39 | - 'base_dir' => __DIR__ . '/../language', |
|
39 | + 'base_dir' => __DIR__.'/../language', |
|
40 | 40 | 'pattern' => '%s.mo', |
41 | 41 | ), |
42 | 42 | ), |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 'resume-recruiter' => array( |
167 | 167 | 'label' => /*@translate*/ 'Talent-Pool', |
168 | 168 | 'route' => 'lang/cvs', |
169 | - 'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ], |
|
169 | + 'active_on' => ['lang/cvs/edit', 'lang/cvs/view'], |
|
170 | 170 | 'resource' => 'navigation/resume-recruiter', |
171 | 171 | 'order' => 10, |
172 | 172 | 'pages' => array( |
@@ -194,15 +194,15 @@ discard block |
||
194 | 194 | |
195 | 195 | // Map template to files. Speeds up the lookup through the template stack. |
196 | 196 | 'template_map' => array( |
197 | - 'cv/form/employment.view' => __DIR__ . '/../view/cv/form/employment.view.phtml', |
|
198 | - 'cv/form/employment.form' => __DIR__ . '/../view/cv/form/employment.form.phtml', |
|
199 | - 'cv/form/education.view' => __DIR__ . '/../view/cv/form/education.view.phtml', |
|
200 | - 'cv/form/education.form' => __DIR__ . '/../view/cv/form/education.form.phtml' |
|
197 | + 'cv/form/employment.view' => __DIR__.'/../view/cv/form/employment.view.phtml', |
|
198 | + 'cv/form/employment.form' => __DIR__.'/../view/cv/form/employment.form.phtml', |
|
199 | + 'cv/form/education.view' => __DIR__.'/../view/cv/form/education.view.phtml', |
|
200 | + 'cv/form/education.form' => __DIR__.'/../view/cv/form/education.form.phtml' |
|
201 | 201 | ), |
202 | 202 | |
203 | 203 | // Where to look for view templates not mapped above |
204 | 204 | 'template_path_stack' => array( |
205 | - __DIR__ . '/../view', |
|
205 | + __DIR__.'/../view', |
|
206 | 206 | ), |
207 | 207 | ), |
208 | 208 |
@@ -16,6 +16,6 @@ |
||
16 | 16 | $container = new \Core\Form\CollectionContainer('CvEmploymentForm', new \Cv\Entity\Employment()); |
17 | 17 | $container->setLabel(/*@translate */ 'Employment history'); |
18 | 18 | |
19 | - return $container; |
|
19 | + return $container; |
|
20 | 20 | } |
21 | 21 | } |
@@ -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 | } |