@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | public function init() |
42 | 42 | { |
43 | 43 | $this->setName('emails') |
44 | - ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
44 | + ->setLabel(/* @translate */ 'E-Mail Notifications'); |
|
45 | 45 | |
46 | 46 | $this->add( |
47 | 47 | array('type' => Checkbox::class, |
48 | 48 | 'name' => 'mailAccess', |
49 | 49 | 'label' => 'foo', |
50 | 50 | 'options' => array('label' => /* @translate */ 'receive E-Mail alert', |
51 | - 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
51 | + 'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'), |
|
52 | 52 | ) |
53 | 53 | ); |
54 | 54 | $this->add( |
@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | array('type' => 'Zend\Form\Element\Checkbox', |
63 | 63 | 'name' => 'autoConfirmMail', |
64 | 64 | 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit', |
65 | - 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
65 | + 'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'), |
|
66 | 66 | ) |
67 | 67 | ); |
68 | 68 | $this->add( |
69 | 69 | array('type' => 'Zend\Form\Element\Textarea', |
70 | 70 | 'name' => 'mailConfirmationText', |
71 | - 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
71 | + 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
|
72 | 72 | 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' )) |
73 | 73 | ); |
74 | 74 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | array('type' => 'Zend\Form\Element\Textarea', |
68 | 68 | 'name' => 'mailConfirmationText', |
69 | 69 | 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
70 | - 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' )) |
|
70 | + 'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>')) |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | $this->add( |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - protected $label = /*@translate*/ 'Cover Letter'; |
|
27 | + protected $label = /*@translate*/ 'Cover Letter'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * {@inheritDoc} |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | public function init() |
26 | 26 | { |
27 | 27 | $this->setIsDisableCapable(false) |
28 | - ->setIsDisableElementsCapable(false) |
|
29 | - ->setAttribute('data-submit-on', 'checkbox'); |
|
28 | + ->setIsDisableElementsCapable(false) |
|
29 | + ->setAttribute('data-submit-on', 'checkbox'); |
|
30 | 30 | |
31 | 31 | $this->add( |
32 | 32 | array( |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | 'route' => 'lang/content', |
55 | 55 | 'params' => array( |
56 | 56 | 'view' => 'applications-privacy-policy' |
57 | - ) |
|
57 | + ) |
|
58 | 58 | ), |
59 | 59 | 'attributes' => array( |
60 | 60 | 'data-validate' => 'acceptedPrivacyPolicy', |
@@ -35,10 +35,10 @@ |
||
35 | 35 | 'applications list' => 'list view scripts.', |
36 | 36 | 'applications reset-files-permissions [--filter=]' => 'Resets (means: Set again) the permissions of attachments and contact images', |
37 | 37 | array('--filter=JSON', "available keys:\n" |
38 | - . "- before ISODate only applications before the given date\n" |
|
39 | - . "- after ISODate only applications after the given date\n" |
|
40 | - . "- id String Mongo ID of the application\n" |
|
41 | - . "- isDraft Boolean "), |
|
38 | + . "- before ISODate only applications before the given date\n" |
|
39 | + . "- after ISODate only applications after the given date\n" |
|
40 | + . "- id String Mongo ID of the application\n" |
|
41 | + . "- isDraft Boolean "), |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -49,6 +49,6 @@ |
||
49 | 49 | */ |
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | - return ModuleConfigLoader::load(__DIR__ . '/../config'); |
|
52 | + return ModuleConfigLoader::load(__DIR__.'/../config'); |
|
53 | 53 | } |
54 | 54 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
64 | 64 | { |
65 | 65 | $title = $application->getJob()->getTitle(); |
66 | - $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
|
66 | + $title .= ' ('.$view->dateFormat($application->getDateCreated()).')'; |
|
67 | 67 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
68 | 68 | $items[] = new ListItem($title, $url); |
69 | 69 | } |
@@ -60,9 +60,11 @@ |
||
60 | 60 | { |
61 | 61 | $items = []; |
62 | 62 | |
63 | - foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) /* @var $application \Applications\Entity\Application */ |
|
63 | + foreach ($this->repository->getUserApplications($user->getId(), $limit) as $application) { |
|
64 | + /* @var $application \Applications\Entity\Application */ |
|
64 | 65 | { |
65 | 66 | $title = $application->getJob()->getTitle(); |
67 | + } |
|
66 | 68 | $title .= ' ('. $view->dateFormat($application->getDateCreated()) . ')'; |
67 | 69 | $url = $view->url('lang/applications/detail', ['id' => $application->getId()]); |
68 | 70 | $items[] = new ListItem($title, $url); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | [ |
89 | 89 | 'application' => $this->application, |
90 | 90 | 'user' => $employee->getUser(), |
91 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
91 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
92 | 92 | ] |
93 | 93 | ); |
94 | 94 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | [ |
107 | 107 | 'job' => $this->application->getJob(), |
108 | 108 | 'user' => $recruiter, |
109 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
109 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
110 | 110 | ] |
111 | 111 | ); |
112 | 112 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | [ |
124 | 124 | 'application' => $this->application, |
125 | 125 | 'body' => $ackBody, |
126 | - 'bcc' => $adminSettings->getMailBCC() ? [ $admin ] : null, |
|
126 | + 'bcc' => $adminSettings->getMailBCC() ? [$admin] : null, |
|
127 | 127 | ] |
128 | 128 | ); |
129 | 129 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | if ($entity instanceof Job) { |
36 | 36 | $entities = $event->getRepository('Applications')->findBy(['isDraft' => null, 'job' => new \MongoId($entity->getId())]); |
37 | 37 | |
38 | - return ['Applications', $entities, 'These applications references the job and will also be removed:' ]; |
|
38 | + return ['Applications', $entities, 'These applications references the job and will also be removed:']; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | foreach ($entities as $ent) { |
50 | 50 | $repository->remove($ent); |
51 | 51 | } |
52 | - return ['Applications', $entities, 'were removed.' ]; |
|
52 | + return ['Applications', $entities, 'were removed.']; |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -97,13 +97,13 @@ discard block |
||
97 | 97 | $key = 'mailRejectionText'; |
98 | 98 | break; |
99 | 99 | default: |
100 | - throw new \InvalidArgumentException('Unknown status value: ' .$status); |
|
100 | + throw new \InvalidArgumentException('Unknown status value: '.$status); |
|
101 | 101 | } |
102 | - $mailText = $settings->$key ? $settings->$key : ''; |
|
102 | + $mailText = $settings->$key ? $settings->$key : ''; |
|
103 | 103 | $mail->setBody($mailText); |
104 | 104 | $mail->setApplication($this->application); |
105 | 105 | $mailText = $mail->getBodyText(); |
106 | - $mailSubject = sprintf( |
|
106 | + $mailSubject = sprintf( |
|
107 | 107 | $this->translator->translate('Your application dated %s'), |
108 | 108 | strftime('%x', $this->application->getDateCreated()->getTimestamp()) |
109 | 109 | ); |
@@ -191,6 +191,6 @@ discard block |
||
191 | 191 | $email = $recipient->getEmail(); |
192 | 192 | $name = $recipient->getDisplayName(false); |
193 | 193 | |
194 | - return $name ? [ $email => $name ] : [ $email ]; |
|
194 | + return $name ? [$email => $name] : [$email]; |
|
195 | 195 | } |
196 | 196 | } |
@@ -28,17 +28,17 @@ |
||
28 | 28 | /** |
29 | 29 | * Event is fired when a new application is saved. |
30 | 30 | */ |
31 | - const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
31 | + const EVENT_APPLICATION_POST_CREATE = 'application.post.create'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Event is fired when a users deleted application |
35 | 35 | */ |
36 | - const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
36 | + const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Event is fired when the status of an application is changed |
40 | 40 | */ |
41 | - const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
41 | + const EVENT_APPLICATION_STATUS_CHANGE = 'application.status.change'; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @var Application $application |