@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * A new application has been received |
22 | 22 | */ |
23 | - const INCOMING = 'incoming'; |
|
23 | + const INCOMING = 'incoming'; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * An acknowledgement of receipt has been sent |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * An applicant ist invited to in interview |
32 | 32 | */ |
33 | - const INVITED = 'invited'; |
|
33 | + const INVITED = 'invited'; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * The applicant has been canceled |
37 | 37 | */ |
38 | - const REJECTED = 'rejected'; |
|
38 | + const REJECTED = 'rejected'; |
|
39 | 39 | |
40 | 40 | public function __construct($status = self::INCOMING); |
41 | 41 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * |
57 | 57 | * @var string |
58 | 58 | */ |
59 | - protected $options="Applications/Options"; |
|
59 | + protected $options = "Applications/Options"; |
|
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
@@ -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} |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | array('type' => 'Zend\Form\Element\Textarea', |
66 | 66 | 'name' => 'mailConfirmationText', |
67 | 67 | 'options' => array('label' => /* @translate */ 'Confirmation mail text', |
68 | - '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></ul>' )) |
|
68 | + '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></ul>')) |
|
69 | 69 | ); |
70 | 70 | |
71 | 71 | $this->add( |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | 'name' => 'mailBCC', |
89 | 89 | 'options' => array('label' => /* @translate */ 'get blind carbon copy of all own mails', |
90 | 90 | 'long_label' => /* @translate */ 'if checked, you\'ll get a copy of all mails you send.', |
91 | - 'value_options' => array(0,1, true, false))) |
|
91 | + 'value_options' => array(0, 1, true, false))) |
|
92 | 92 | ); |
93 | 93 | |
94 | 94 | $this->add( |
@@ -95,7 +95,7 @@ |
||
95 | 95 | */ |
96 | 96 | public function setUser($user) |
97 | 97 | { |
98 | - $this->user=$user; |
|
98 | + $this->user = $user; |
|
99 | 99 | return $this; |
100 | 100 | } |
101 | 101 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * |
35 | 35 | * @var array $attachmentsMimeType |
36 | 36 | */ |
37 | - protected $attachmentsMimeType = array('image','applications/pdf', |
|
37 | + protected $attachmentsMimeType = array('image', 'applications/pdf', |
|
38 | 38 | 'application/x-pdf', |
39 | 39 | 'application/acrobat', |
40 | 40 | 'applications/vnd.pdf', |
@@ -128,8 +128,8 @@ |
||
128 | 128 | */ |
129 | 129 | public function loadUnreadApplicationsForJob($job) |
130 | 130 | { |
131 | - $auth=$this->getService('AuthenticationService'); |
|
132 | - $qb=$this->createQueryBuilder() |
|
131 | + $auth = $this->getService('AuthenticationService'); |
|
132 | + $qb = $this->createQueryBuilder() |
|
133 | 133 | ->field("readBy")->notIn(array($auth->getUser()->id)) |
134 | 134 | ->field("job")->equals(new \MongoId($job->id)); |
135 | 135 | return $qb->getQuery()->execute(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $dm = $eventArgs->getDocumentManager(); |
43 | 43 | $uow = $dm->getUnitOfWork(); |
44 | 44 | |
45 | - $filter = function ($element) { |
|
45 | + $filter = function($element) { |
|
46 | 46 | return $element instanceof ApplicationInterface |
47 | 47 | && $element->getPermissions()->hasChanged(); |
48 | 48 | }; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @var String |
25 | 25 | */ |
26 | - protected $repositoryName="Applications/Application"; |
|
26 | + protected $repositoryName = "Applications/Application"; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Sortable fields |