@@ -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( |
@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | $collection[] = $this->newEntry; |
81 | 81 | $form = $this->buildForm($key, $this->newEntry); |
82 | 82 | $eventManager = $form->getEventManager(); |
83 | - $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) { |
|
83 | + $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) { |
|
84 | 84 | if (!$event->getParam('isValid')) { |
85 | 85 | $collection->removeElement($this->newEntry); |
86 | 86 | } |
87 | 87 | }); |
88 | - $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) { |
|
88 | + $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) { |
|
89 | 89 | $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry)); |
90 | 90 | }); |
91 | 91 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | - /** |
|
120 | + /** |
|
121 | 121 | * @see \Core\Form\Element\ViewHelperProviderInterface::getViewHelper() |
122 | 122 | */ |
123 | 123 | public function getViewHelper() |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | */ |
222 | 222 | protected function setupForm(CoreForm $form, $key) |
223 | 223 | { |
224 | - $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key))) |
|
224 | + $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key))) |
|
225 | 225 | ->setAttribute('data-entry-key', $key) |
226 | 226 | ->setOption('control_buttons', [[ |
227 | 227 | 'class' => 'btn-danger form-collection-container-remove-button', |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $translator = $this->getTranslator(); |
61 | 61 | $formContainerHelper = $view->formContainer(); |
62 | 62 | $formsMarkup = ''; |
63 | - $formTemplateWrapper = '<div class="form-collection-container-form"> |
|
63 | + $formTemplateWrapper = '<div class="form-collection-container-form"> |
|
64 | 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>'; |
@@ -71,16 +71,16 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | $templateForm = $container->getTemplateForm(); |
74 | - $templateMarkup = sprintf( |
|
74 | + $templateMarkup = sprintf( |
|
75 | 75 | $view->formCollection()->getTemplateWrapper(), |
76 | 76 | $view->escapeHtmlAttr(sprintf($formTemplateWrapper, $formContainerHelper->renderElement($templateForm, $layout, $parameter))) |
77 | 77 | ); |
78 | 78 | |
79 | - return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s"> |
|
79 | + return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s"> |
|
80 | 80 | <h3>%s</h3> |
81 | 81 | %s%s%s |
82 | 82 | </div>', |
83 | - CollectionContainer::NEW_ENTRY, |
|
83 | + CollectionContainer::NEW_ENTRY, |
|
84 | 84 | $container->formatAction('remove'), |
85 | 85 | $translator->translate('Really remove?'), |
86 | 86 | $container->getLabel(), |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | ); |
91 | 91 | } |
92 | 92 | /** |
93 | - * @param boolean $displayRemoveButton |
|
94 | - * @return FormCollectionContainer |
|
93 | + * @param boolean $displayRemoveButton |
|
94 | + * @return FormCollectionContainer |
|
95 | 95 | * @since 0.26 |
96 | - */ |
|
97 | - public function setDisplayRemoveButton($displayRemoveButton) |
|
98 | - { |
|
99 | - $this->displayRemoveButton = (bool)$displayRemoveButton; |
|
96 | + */ |
|
97 | + public function setDisplayRemoveButton($displayRemoveButton) |
|
98 | + { |
|
99 | + $this->displayRemoveButton = (bool)$displayRemoveButton; |
|
100 | 100 | |
101 | - return $this; |
|
102 | - } |
|
101 | + return $this; |
|
102 | + } |
|
103 | 103 | } |
@@ -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 | } |
@@ -28,52 +28,52 @@ discard block |
||
28 | 28 | |
29 | 29 | $this->setAttributes( |
30 | 30 | array( |
31 | - 'method' => 'post', |
|
32 | - ) |
|
31 | + 'method' => 'post', |
|
32 | + ) |
|
33 | 33 | ); |
34 | 34 | |
35 | 35 | $this->add( |
36 | 36 | array( |
37 | - 'type' => 'Text', |
|
38 | - 'name' => 'db_conn', |
|
39 | - 'options' => array( |
|
40 | - 'label' => /* @translate */ 'Database connection string', |
|
41 | - ), |
|
42 | - 'attributes' => array( |
|
43 | - 'placeholder' => 'mongodb://localhost:27017/YAWIK', |
|
44 | - ), |
|
37 | + 'type' => 'Text', |
|
38 | + 'name' => 'db_conn', |
|
39 | + 'options' => array( |
|
40 | + 'label' => /* @translate */ 'Database connection string', |
|
41 | + ), |
|
42 | + 'attributes' => array( |
|
43 | + 'placeholder' => 'mongodb://localhost:27017/YAWIK', |
|
44 | + ), |
|
45 | 45 | |
46 | - ) |
|
46 | + ) |
|
47 | 47 | ); |
48 | 48 | |
49 | 49 | $this->add( |
50 | 50 | array( |
51 | - 'type' => 'Text', |
|
52 | - 'name' => 'username', |
|
53 | - 'options' => array( |
|
54 | - 'label' => /* @translate */ 'Initial user name', |
|
55 | - ), |
|
56 | - ) |
|
51 | + 'type' => 'Text', |
|
52 | + 'name' => 'username', |
|
53 | + 'options' => array( |
|
54 | + 'label' => /* @translate */ 'Initial user name', |
|
55 | + ), |
|
56 | + ) |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | $this->add( |
60 | 60 | array( |
61 | - 'type' => 'Password', |
|
62 | - 'name' => 'password', |
|
63 | - 'options' => array( |
|
64 | - 'label' => /* @translate */ 'Password', |
|
65 | - ), |
|
66 | - ) |
|
61 | + 'type' => 'Password', |
|
62 | + 'name' => 'password', |
|
63 | + 'options' => array( |
|
64 | + 'label' => /* @translate */ 'Password', |
|
65 | + ), |
|
66 | + ) |
|
67 | 67 | ); |
68 | 68 | |
69 | 69 | $this->add( |
70 | 70 | array( |
71 | - 'type' => 'Text', |
|
72 | - 'name' => 'email', |
|
73 | - 'options' => array( |
|
74 | - 'label' => /* @translate */ 'Email address for system messages', |
|
75 | - ), |
|
76 | - ) |
|
71 | + 'type' => 'Text', |
|
72 | + 'name' => 'email', |
|
73 | + 'options' => array( |
|
74 | + 'label' => /* @translate */ 'Email address for system messages', |
|
75 | + ), |
|
76 | + ) |
|
77 | 77 | ); |
78 | 78 | } |
79 | 79 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ), |
89 | 89 | 'validators' => array( |
90 | 90 | array('name' => 'Install/ConnectionString', |
91 | - 'break_chain_on_failure' => true), |
|
91 | + 'break_chain_on_failure' => true), |
|
92 | 92 | array('name' => 'Install/Connection'), |
93 | 93 | ), |
94 | 94 | ), |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | $routeMatch->setParam('action', $p); |
43 | 43 | $response = $this->getResponse(); |
44 | 44 | $response->getHeaders() |
45 | - ->addHeaderLine('Content-Type', 'application/json') |
|
46 | - ->addHeaderLine('Content-Encoding', 'utf8'); |
|
45 | + ->addHeaderLine('Content-Type', 'application/json') |
|
46 | + ->addHeaderLine('Content-Encoding', 'utf8'); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | |
@@ -60,10 +60,10 @@ discard block |
||
60 | 60 | |
61 | 61 | return $this->createViewModel( |
62 | 62 | array( |
63 | - 'prerequisites' => $prereqs, |
|
64 | - 'form' => $form, |
|
65 | - 'lang' => $this->params('lang'), |
|
66 | - ) |
|
63 | + 'prerequisites' => $prereqs, |
|
64 | + 'form' => $form, |
|
65 | + 'lang' => $this->params('lang'), |
|
66 | + ) |
|
67 | 67 | ); |
68 | 68 | } |
69 | 69 | |
@@ -95,9 +95,9 @@ discard block |
||
95 | 95 | if (!$form->isValid()) { |
96 | 96 | return $this->createJsonResponse( |
97 | 97 | array( |
98 | - 'ok' => false, |
|
99 | - 'errors' => $form->getMessages(), |
|
100 | - ) |
|
98 | + 'ok' => false, |
|
99 | + 'errors' => $form->getMessages(), |
|
100 | + ) |
|
101 | 101 | ); |
102 | 102 | } |
103 | 103 |
@@ -10,20 +10,20 @@ discard block |
||
10 | 10 | |
11 | 11 | return array( |
12 | 12 | 'doctrine' => array( |
13 | - 'driver' => array( |
|
13 | + 'driver' => array( |
|
14 | 14 | 'odm_default' => array( |
15 | 15 | 'drivers' => array( |
16 | 16 | 'Applications\Entity' => 'annotation', |
17 | 17 | ), |
18 | 18 | ), |
19 | 19 | 'annotation' => array( |
20 | - /* |
|
20 | + /* |
|
21 | 21 | * All drivers (except DriverChain) require paths to work on. You |
22 | 22 | * may set this value as a string (for a single path) or an array |
23 | 23 | * for multiple paths. |
24 | 24 | * example https://github.com/doctrine/DoctrineORMModule |
25 | 25 | */ |
26 | - 'paths' => array( __DIR__ . '/../src/Applications/Entity') |
|
26 | + 'paths' => array( __DIR__ . '/../src/Applications/Entity') |
|
27 | 27 | ), |
28 | 28 | ), |
29 | 29 | 'eventmanager' => array( |
@@ -63,16 +63,16 @@ discard block |
||
63 | 63 | 'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions', |
64 | 64 | ), |
65 | 65 | 'factories' => array( |
66 | - 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
67 | - 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
68 | - 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
69 | - 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
70 | - 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
71 | - 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
72 | - 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory' |
|
66 | + 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
67 | + 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
68 | + 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
69 | + 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
70 | + 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
71 | + 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
72 | + 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory' |
|
73 | 73 | ), |
74 | 74 | 'aliases' => [ |
75 | - 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
75 | + 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
76 | 76 | ] |
77 | 77 | ), |
78 | 78 | 'controllers' => array( |
@@ -170,25 +170,25 @@ discard block |
||
170 | 170 | ), |
171 | 171 | 'form_elements' => array( |
172 | 172 | 'invokables' => array( |
173 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
174 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
175 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
176 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
177 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
178 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
179 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
180 | - 'Applications/Base' => 'Applications\Form\Base', |
|
181 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
182 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
183 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
184 | - 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
185 | - 'href' => 'Applications\Form\Element\Ref', |
|
186 | - ), |
|
173 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
174 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
175 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
176 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
177 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
178 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
179 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
180 | + 'Applications/Base' => 'Applications\Form\Base', |
|
181 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
182 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
183 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
184 | + 'Applications/Filter' => 'Applications\Form\FilterApplication', |
|
185 | + 'href' => 'Applications\Form\Element\Ref', |
|
186 | + ), |
|
187 | 187 | 'factories' => array( |
188 | 188 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
189 | 189 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
190 | 190 | ), |
191 | - ), |
|
191 | + ), |
|
192 | 192 | |
193 | 193 | 'form_elements_config' => array( |
194 | 194 | 'Applications/Apply' => array( |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | protected $workflow = [ |
82 | 82 | |
83 | - 'recruiter', |
|
83 | + 'recruiter', |
|
84 | 84 | ]; |
85 | 85 | |
86 | 86 | /** |
@@ -218,13 +218,13 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
221 | - * @return boolean |
|
222 | - * @since 0.27 |
|
223 | - */ |
|
224 | - public function getAllowSubsequentAttachmentUpload() |
|
225 | - { |
|
226 | - return $this->allowSubsequentAttachmentUpload; |
|
227 | - } |
|
221 | + * @return boolean |
|
222 | + * @since 0.27 |
|
223 | + */ |
|
224 | + public function getAllowSubsequentAttachmentUpload() |
|
225 | + { |
|
226 | + return $this->allowSubsequentAttachmentUpload; |
|
227 | + } |
|
228 | 228 | |
229 | 229 | /** |
230 | 230 | * @param boolean $allowSubsequentAttachmentUpload |
@@ -297,9 +297,9 @@ |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | - * @see \Core\Entity\FileInterface::getUri() |
|
301 | - * @since 0.27 |
|
302 | - */ |
|
303 | - public function getUri() |
|
304 | - {} |
|
300 | + * @see \Core\Entity\FileInterface::getUri() |
|
301 | + * @since 0.27 |
|
302 | + */ |
|
303 | + public function getUri() |
|
304 | + {} |
|
305 | 305 | } |
306 | 306 | \ No newline at end of file |