@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | /* @var \Doctrine\ODM\MongoDB\Query\Builder $qb */ |
44 | 44 | $qb = $this->repository->createQueryBuilder(); |
45 | - $qb->field('title')->equals(new \MongoRegex('/' . addslashes($q) . '/i')); |
|
45 | + $qb->field('title')->equals(new \MongoRegex('/'.addslashes($q).'/i')); |
|
46 | 46 | $cursor = $qb->getQuery()->execute(); |
47 | 47 | |
48 | 48 | $adapter = new DoctrineMongoCursor($cursor); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | |
121 | 121 | |
122 | - $format=$this->params()->fromQuery('format'); |
|
122 | + $format = $this->params()->fromQuery('format'); |
|
123 | 123 | |
124 | 124 | if ($application->isDraft()) { |
125 | 125 | $list = false; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | && ($network = $this->params()->fromQuery('network')) |
248 | 248 | && ($data = $this->params()->fromPost('data')) |
249 | 249 | ) { |
250 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
250 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
251 | 251 | $profile = new $profileClass(); |
252 | 252 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
253 | 253 | } else { |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | |
367 | 367 | $this->acl($application, 'forward'); |
368 | 368 | |
369 | - $translator = $services->get('translator'); |
|
369 | + $translator = $services->get('translator'); |
|
370 | 370 | |
371 | 371 | if (!$emailAddress) { |
372 | 372 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | { |
408 | 408 | $id = $this->params('id'); |
409 | 409 | $services = $this->serviceLocator; |
410 | - $repositories= $services->get('repositories'); |
|
410 | + $repositories = $services->get('repositories'); |
|
411 | 411 | $repository = $repositories->get('Applications/Application'); |
412 | 412 | $application = $repository->find($id); |
413 | 413 | |
@@ -417,8 +417,8 @@ discard block |
||
417 | 417 | |
418 | 418 | $this->acl($application, 'delete'); |
419 | 419 | |
420 | - $events = $services->get('Applications/Events'); |
|
421 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
420 | + $events = $services->get('Applications/Events'); |
|
421 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
422 | 422 | |
423 | 423 | $repositories->remove($application); |
424 | 424 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | class JobSelect extends Select implements HeadscriptProviderInterface |
24 | 24 | { |
25 | - private $scripts = [ 'Applications/js/form.job-select.js' ]; |
|
25 | + private $scripts = ['Applications/js/form.job-select.js']; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Sets the array of script names. |
@@ -36,50 +36,50 @@ |
||
36 | 36 | { |
37 | 37 | |
38 | 38 | $this->add( |
39 | - [ |
|
40 | - 'type' => JobSelect::class, |
|
41 | - 'name' => 'job', |
|
42 | - 'options' => [ |
|
43 | - 'label' => /* @translate */ 'Enter job title', |
|
44 | - //'empty_option' => 'Enter job title', |
|
45 | - ], |
|
46 | - 'attributes' => [ |
|
47 | - 'id' => 'job-filter', |
|
48 | - 'class' => 'form-control', |
|
49 | - 'data-placeholder' => 'Enter job title', |
|
50 | - 'data-autoinit' => 'false', |
|
51 | - 'data-submit-on-change' => 'true', |
|
52 | - ] |
|
53 | - ] |
|
39 | + [ |
|
40 | + 'type' => JobSelect::class, |
|
41 | + 'name' => 'job', |
|
42 | + 'options' => [ |
|
43 | + 'label' => /* @translate */ 'Enter job title', |
|
44 | + //'empty_option' => 'Enter job title', |
|
45 | + ], |
|
46 | + 'attributes' => [ |
|
47 | + 'id' => 'job-filter', |
|
48 | + 'class' => 'form-control', |
|
49 | + 'data-placeholder' => 'Enter job title', |
|
50 | + 'data-autoinit' => 'false', |
|
51 | + 'data-submit-on-change' => 'true', |
|
52 | + ] |
|
53 | + ] |
|
54 | 54 | ); |
55 | 55 | |
56 | 56 | $this->add( |
57 | - [ |
|
58 | - 'type' => 'Applications\Form\Element\StatusSelect', |
|
59 | - 'name' => 'status', |
|
60 | - 'options' => [ |
|
61 | - 'label' => /* @translate */ 'Status', |
|
62 | - ], |
|
63 | - 'attributes' => [ |
|
64 | - 'data-width' => '100%', |
|
65 | - 'data-submit-on-change' => 'true', |
|
66 | - 'data-placeholder' => /*@translate*/ 'all', |
|
67 | - ] |
|
68 | - ] |
|
57 | + [ |
|
58 | + 'type' => 'Applications\Form\Element\StatusSelect', |
|
59 | + 'name' => 'status', |
|
60 | + 'options' => [ |
|
61 | + 'label' => /* @translate */ 'Status', |
|
62 | + ], |
|
63 | + 'attributes' => [ |
|
64 | + 'data-width' => '100%', |
|
65 | + 'data-submit-on-change' => 'true', |
|
66 | + 'data-placeholder' => /*@translate*/ 'all', |
|
67 | + ] |
|
68 | + ] |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | $this->add( |
72 | - ['type' => 'ToggleButton', |
|
73 | - 'name' => 'unread', |
|
74 | - 'options' => [ |
|
75 | - 'checked_value' => '1', |
|
76 | - 'unchecked_value' => '0', |
|
77 | - 'label' => 'unread', |
|
78 | - ], |
|
79 | - 'attributes' => [ |
|
80 | - 'data-submit-on-change' => 'true', |
|
81 | - ] |
|
82 | - ] |
|
72 | + ['type' => 'ToggleButton', |
|
73 | + 'name' => 'unread', |
|
74 | + 'options' => [ |
|
75 | + 'checked_value' => '1', |
|
76 | + 'unchecked_value' => '0', |
|
77 | + 'label' => 'unread', |
|
78 | + ], |
|
79 | + 'attributes' => [ |
|
80 | + 'data-submit-on-change' => 'true', |
|
81 | + ] |
|
82 | + ] |
|
83 | 83 | ); |
84 | 84 | |
85 | 85 | $this->setButtonElement('unread'); |
@@ -13,20 +13,20 @@ discard block |
||
13 | 13 | |
14 | 14 | return [ |
15 | 15 | 'doctrine' => [ |
16 | - 'driver' => [ |
|
16 | + 'driver' => [ |
|
17 | 17 | 'odm_default' => [ |
18 | 18 | 'drivers' => [ |
19 | 19 | 'Applications\Entity' => 'annotation', |
20 | 20 | ], |
21 | 21 | ], |
22 | 22 | 'annotation' => [ |
23 | - /* |
|
23 | + /* |
|
24 | 24 | * All drivers (except DriverChain) require paths to work on. You |
25 | 25 | * may set this value as a string (for a single path) or an array |
26 | 26 | * for multiple paths. |
27 | 27 | * example https://github.com/doctrine/DoctrineORMModule |
28 | 28 | */ |
29 | - 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
29 | + 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
30 | 30 | ], |
31 | 31 | ], |
32 | 32 | 'eventmanager' => [ |
@@ -66,17 +66,17 @@ discard block |
||
66 | 66 | 'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions', |
67 | 67 | ], |
68 | 68 | 'factories' => [ |
69 | - 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
70 | - 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
71 | - 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
72 | - 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
73 | - 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
74 | - 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
75 | - 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory', |
|
69 | + 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
70 | + 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
71 | + 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
72 | + 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
73 | + 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
74 | + 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
75 | + 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory', |
|
76 | 76 | Listener\JobSelectValues::class => Factory\Listener\JobSelectValuesFactory::class, |
77 | 77 | ], |
78 | 78 | 'aliases' => [ |
79 | - 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
79 | + 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
80 | 80 | ] |
81 | 81 | ], |
82 | 82 | 'controllers' => [ |
@@ -175,20 +175,20 @@ discard block |
||
175 | 175 | ], |
176 | 176 | 'form_elements' => [ |
177 | 177 | 'invokables' => [ |
178 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
179 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
180 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
181 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
182 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
183 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
184 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
185 | - 'Applications/Base' => 'Applications\Form\Base', |
|
186 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
187 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
188 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
189 | - 'href' => 'Applications\Form\Element\Ref', |
|
178 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
179 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
180 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
181 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
182 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
183 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
184 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
185 | + 'Applications/Base' => 'Applications\Form\Base', |
|
186 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
187 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
188 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
189 | + 'href' => 'Applications\Form\Element\Ref', |
|
190 | 190 | |
191 | - ], |
|
191 | + ], |
|
192 | 192 | 'factories' => [ |
193 | 193 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
194 | 194 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | 'Applications\Form\Element\StatusSelect' => Factory\Form\StatusSelectFactory::class, |
197 | 197 | Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class |
198 | 198 | ], |
199 | - ], |
|
199 | + ], |
|
200 | 200 | |
201 | 201 | 'form_elements_config' => [ |
202 | 202 | 'Applications/Apply' => [ |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * for multiple paths. |
27 | 27 | * example https://github.com/doctrine/DoctrineORMModule |
28 | 28 | */ |
29 | - 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
29 | + 'paths' => [__DIR__.'/../src/Applications/Entity'] |
|
30 | 30 | ], |
31 | 31 | ], |
32 | 32 | 'eventmanager' => [ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'translation_file_patterns' => [ |
145 | 145 | [ |
146 | 146 | 'type' => 'gettext', |
147 | - 'base_dir' => __DIR__ . '/../language', |
|
147 | + 'base_dir' => __DIR__.'/../language', |
|
148 | 148 | 'pattern' => '%s.mo', |
149 | 149 | ], |
150 | 150 | ], |
@@ -152,16 +152,16 @@ discard block |
||
152 | 152 | // Configure the view service manager |
153 | 153 | 'view_manager' => [ |
154 | 154 | 'template_path_stack' => [ |
155 | - 'Applications' => __DIR__ . '/../view', |
|
155 | + 'Applications' => __DIR__.'/../view', |
|
156 | 156 | ], |
157 | 157 | 'template_map' => [ |
158 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
159 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
160 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
161 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
162 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
163 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
164 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
158 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
159 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
160 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
161 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
162 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
163 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
164 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
165 | 165 | ] |
166 | 166 | ], |
167 | 167 | 'view_helpers' => [ |