@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | 'description' => [ |
118 | 118 | 'priority' => '80', |
119 | - 'options' => [ 'label' => /*@translate*/ 'Create job opening' ], |
|
119 | + 'options' => ['label' => /*@translate*/ 'Create job opening'], |
|
120 | 120 | 'property' => true, |
121 | 121 | 'forms' => [ |
122 | 122 | 'descriptionForm' => array( |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | 'preview' => [ |
130 | 130 | 'priority' => 60, |
131 | - 'options' => [ 'label' => /*@translate*/ 'Preview' ], |
|
131 | + 'options' => ['label' => /*@translate*/ 'Preview'], |
|
132 | 132 | 'property' => true, |
133 | 133 | 'forms' => [ |
134 | 134 | 'previewForm' => array( |
@@ -142,13 +142,13 @@ discard block |
||
142 | 142 | |
143 | 143 | $this->setForms($elements); |
144 | 144 | |
145 | - $events = $this->getEventManager(); |
|
145 | + $events = $this->getEventManager(); |
|
146 | 146 | $events->trigger(FormEvent::EVENT_INIT, $this); |
147 | 147 | } |
148 | 148 | |
149 | 149 | public function renderPost(Renderer $renderer) |
150 | 150 | { |
151 | - $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
151 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
152 | 152 | $javaScript = <<<JS |
153 | 153 | $(document).ready(function() { |
154 | 154 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | class UniqueApplyIdFactory implements FactoryInterface |
17 | 17 | { |
18 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
18 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
19 | 19 | { |
20 | 20 | $repositories = $container->get('repositories'); |
21 | 21 | $jobs = $repositories->get('Jobs/Job'); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function extract($value) |
18 | 18 | { |
19 | 19 | $result = null; |
20 | - if (method_exists($value,'getTemplateValues')) { |
|
20 | + if (method_exists($value, 'getTemplateValues')) { |
|
21 | 21 | $result = $value->getTemplateValues()->getTitle(); |
22 | 22 | } |
23 | 23 | return $result; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | public function init() |
30 | 30 | { |
31 | - $this->setAttribute('id','customerNoteFieldset'); |
|
31 | + $this->setAttribute('id', 'customerNoteFieldset'); |
|
32 | 32 | $this->setName('customerNote'); |
33 | 33 | $this->add([ |
34 | 34 | 'type' => 'Textarea', |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * for multiple paths. |
32 | 32 | * example https://github.com/doctrine/DoctrineORMModule |
33 | 33 | */ |
34 | - 'paths' => [ __DIR__ . '/../src/Applications/Entity'] |
|
34 | + 'paths' => [__DIR__.'/../src/Applications/Entity'] |
|
35 | 35 | ], |
36 | 36 | ], |
37 | 37 | 'eventmanager' => [ |
@@ -91,10 +91,10 @@ discard block |
||
91 | 91 | 'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController', |
92 | 92 | ], |
93 | 93 | 'factories' => [ |
94 | - 'Applications/Controller/Manage' => [ManageController::class,'factory'], |
|
95 | - 'Applications\Controller\Apply' => [ApplyController::class,'factory'], |
|
96 | - 'Applications/CommentController' => [CommentController::class,'factory'], |
|
97 | - 'Applications/Console' => [ConsoleController::class,'factory'], |
|
94 | + 'Applications/Controller/Manage' => [ManageController::class, 'factory'], |
|
95 | + 'Applications\Controller\Apply' => [ApplyController::class, 'factory'], |
|
96 | + 'Applications/CommentController' => [CommentController::class, 'factory'], |
|
97 | + 'Applications/Console' => [ConsoleController::class, 'factory'], |
|
98 | 98 | ] |
99 | 99 | ], |
100 | 100 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'translation_file_patterns' => [ |
154 | 154 | [ |
155 | 155 | 'type' => 'gettext', |
156 | - 'base_dir' => __DIR__ . '/../language', |
|
156 | + 'base_dir' => __DIR__.'/../language', |
|
157 | 157 | 'pattern' => '%s.mo', |
158 | 158 | ], |
159 | 159 | ], |
@@ -161,16 +161,16 @@ discard block |
||
161 | 161 | // Configure the view service manager |
162 | 162 | 'view_manager' => [ |
163 | 163 | 'template_path_stack' => [ |
164 | - 'Applications' => __DIR__ . '/../view', |
|
164 | + 'Applications' => __DIR__.'/../view', |
|
165 | 165 | ], |
166 | 166 | 'template_map' => [ |
167 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
168 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
169 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
170 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
171 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
172 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
173 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
167 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
168 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
169 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
170 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
171 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
172 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
173 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
174 | 174 | ] |
175 | 175 | ], |
176 | 176 | 'view_helpers' => [ |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | 'factories' => [ |
241 | 241 | 'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory', |
242 | 242 | Mail\Confirmation::class => Factory\Mail\ConfirmationFactory::class, |
243 | - 'Applications/Forward' => [Forward::class,'factory'], |
|
243 | + 'Applications/Forward' => [Forward::class, 'factory'], |
|
244 | 244 | ], |
245 | 245 | 'aliases' => [ |
246 | 246 | 'Applications/Confirmation' => Mail\Confirmation::class, |
@@ -237,7 +237,7 @@ |
||
237 | 237 | */ |
238 | 238 | public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload) |
239 | 239 | { |
240 | - $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload; |
|
240 | + $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload; |
|
241 | 241 | |
242 | 242 | return $this; |
243 | 243 | } |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | */ |
27 | 27 | class PaginationQueryFactory implements FactoryInterface |
28 | 28 | { |
29 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
29 | + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
30 | 30 | { |
31 | - $auth = $container->get('AuthenticationService'); |
|
31 | + $auth = $container->get('AuthenticationService'); |
|
32 | 32 | $filter = new PaginationQuery($auth); |
33 | 33 | return $filter; |
34 | 34 | } |
@@ -44,6 +44,6 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function createService(ContainerInterface $container) |
46 | 46 | { |
47 | - return $this($container,PaginationQuery::class); |
|
47 | + return $this($container, PaginationQuery::class); |
|
48 | 48 | } |
49 | 49 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param ApplicationEvent $e |
70 | 70 | */ |
71 | - public function prepareFormData(ApplicationEvent $e){ |
|
71 | + public function prepareFormData(ApplicationEvent $e) { |
|
72 | 72 | $target = $e->getTarget(); |
73 | 73 | if ($target->isPostRequest()) { |
74 | 74 | return; |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | $key = 'mailRejectionText'; |
97 | 97 | break; |
98 | 98 | default: |
99 | - throw new \InvalidArgumentException('Unknown status value: ' .$status); |
|
99 | + throw new \InvalidArgumentException('Unknown status value: '.$status); |
|
100 | 100 | } |
101 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
101 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
102 | 102 | $mail->setBody($mailText); |
103 | 103 | $mail->setApplication($this->application); |
104 | 104 | $mailText = $mail->getBodyText(); |
105 | - $mailSubject = sprintf( |
|
105 | + $mailSubject = sprintf( |
|
106 | 106 | $this->translator->translate('Your application dated %s'), |
107 | 107 | strftime('%x', $this->application->getDateCreated()->getTimestamp()) |
108 | 108 | ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * |
123 | 123 | * @param ApplicationEvent $event |
124 | 124 | */ |
125 | - public function sendMail(ApplicationEvent $event){ |
|
125 | + public function sendMail(ApplicationEvent $event) { |
|
126 | 126 | $event = $event->getTarget(); |
127 | 127 | if (!$event->isPostRequest()) { |
128 | 128 | return; |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $this->mailService->send($mail); |
170 | 170 | |
171 | 171 | |
172 | - $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0] ); |
|
172 | + $historyText = sprintf($this->translator->translate('Mail was sent to %s'), key($recipient) ?: $recipient[0]); |
|
173 | 173 | $this->application->changeStatus($status, $historyText); |
174 | 174 | $event->setNotification($historyText); |
175 | 175 | } |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * |
181 | 181 | * @return AddressList |
182 | 182 | */ |
183 | - protected function getRecipient( Application $application, $status) { |
|
183 | + protected function getRecipient(Application $application, $status) { |
|
184 | 184 | |
185 | 185 | $recipient = Status::ACCEPTED == $status |
186 | 186 | ? $application->getJob()->getUser()->getInfo() |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $email = $recipient->getEmail(); |
190 | 190 | $name = $recipient->getDisplayName(false); |
191 | 191 | |
192 | - return $name ? [ $email => $name ] : [ $email ]; |
|
192 | + return $name ? [$email => $name] : [$email]; |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | } |
196 | 196 | \ No newline at end of file |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $auth = $container->get('AuthenticationService'); |
31 | 31 | $user = $auth->getUser(); |
32 | 32 | $options['user'] = $user; |
33 | - $mail = new Confirmation($options); |
|
33 | + $mail = new Confirmation($options); |
|
34 | 34 | |
35 | 35 | return $mail; |
36 | 36 | } |