@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $hidden = ''; |
71 | 71 | $displayNames = array(); |
72 | 72 | foreach ($elements as $element) { |
73 | - $hidden .= '<input type="hidden" name="elements[]" value="' . $element . '">'; |
|
73 | + $hidden .= '<input type="hidden" name="elements[]" value="'.$element.'">'; |
|
74 | 74 | $application = $repository->find($element); |
75 | 75 | $isAllowed = $this->acl()->test($application, 'change'); |
76 | 76 | if ($isAllowed) { |
@@ -89,12 +89,12 @@ discard block |
||
89 | 89 | array( |
90 | 90 | 'ok' => true, |
91 | 91 | 'header' => $translator->translate('reject the applicants'), |
92 | - 'content' => '<form action="' . $actionUrl . '">' . |
|
93 | - $hidden . |
|
92 | + 'content' => '<form action="'.$actionUrl.'">'. |
|
93 | + $hidden. |
|
94 | 94 | '<input class=" form-control " name="mail-subject" value="' |
95 | - . $mailSubject . '"><br /><br />' . |
|
95 | + . $mailSubject.'"><br /><br />'. |
|
96 | 96 | '<textarea class=" form-control " id="mail-content" name="mail-content">' |
97 | - . $mailText . '</textarea></form>' |
|
97 | + . $mailText.'</textarea></form>' |
|
98 | 98 | ) |
99 | 99 | ); |
100 | 100 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $repositoryService->store($application); |
143 | 143 | unset($mail); |
144 | 144 | } |
145 | - return new JsonModel(array('ok' => true, )); |
|
145 | + return new JsonModel(array('ok' => true,)); |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function moveAction() |
154 | 154 | { |
155 | - $ids = (array)$this->params()->fromPost('ids'); |
|
155 | + $ids = (array) $this->params()->fromPost('ids'); |
|
156 | 156 | $moved = 0; |
157 | 157 | |
158 | 158 | if ($ids) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $name = $this->default; |
83 | 83 | } |
84 | 84 | |
85 | - if (!isset(static::$orderMap[ $name ])) { |
|
85 | + if (!isset(static::$orderMap[$name])) { |
|
86 | 86 | throw new \InvalidArgumentException(sprintf( |
87 | 87 | 'Unknown status name "%s" for "%s"', |
88 | 88 | $name, static::class |
@@ -90,6 +90,6 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->name = $name; |
93 | - $this->order = static::$orderMap[ $name ]; |
|
93 | + $this->order = static::$orderMap[$name]; |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | \ No newline at end of file |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | protected $targetDocument = Cv::class; |
26 | 26 | |
27 | - protected $filesProperties = [ 'attachments' ]; |
|
27 | + protected $filesProperties = ['attachments']; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | public function getSubscribedEvents() |
51 | 51 | { |
52 | - return [ Events::onFlush ]; |
|
52 | + return [Events::onFlush]; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -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); |
@@ -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 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $formContainerHelper = $view->formContainer(); |
62 | 62 | $formsMarkup = ''; |
63 | 63 | $formTemplateWrapper = '<div class="form-collection-container-form"> |
64 | - '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">' . $translator->translate('Remove') . '</button>' : '') . ' |
|
64 | + '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">'.$translator->translate('Remove').'</button>' : '').' |
|
65 | 65 | %s |
66 | 66 | </div>'; |
67 | 67 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $container->getLabel(), |
87 | 87 | $formsMarkup, |
88 | 88 | $templateMarkup, |
89 | - '<div class="form-collection-container-add-wrapper"><button type="button" class="btn btn-success form-collection-container-add-button"><span class="yk-icon yk-icon-plus"></span> ' . sprintf($translator->translate('Add %s'), $container->getLabel()) . '</button></div>' |
|
89 | + '<div class="form-collection-container-add-wrapper"><button type="button" class="btn btn-success form-collection-container-add-button"><span class="yk-icon yk-icon-plus"></span> '.sprintf($translator->translate('Add %s'), $container->getLabel()).'</button></div>' |
|
90 | 90 | ); |
91 | 91 | } |
92 | 92 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function setDisplayRemoveButton($displayRemoveButton) |
98 | 98 | { |
99 | - $this->displayRemoveButton = (bool)$displayRemoveButton; |
|
99 | + $this->displayRemoveButton = (bool) $displayRemoveButton; |
|
100 | 100 | |
101 | 101 | return $this; |
102 | 102 | } |
@@ -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'); |
@@ -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 |