@@ -446,7 +446,7 @@ |
||
| 446 | 446 | public function getCv() |
| 447 | 447 | { |
| 448 | 448 | if (is_null($this->cv)) { |
| 449 | - $this->cv= new Cv(); |
|
| 449 | + $this->cv = new Cv(); |
|
| 450 | 450 | } |
| 451 | 451 | return $this->cv; |
| 452 | 452 | } |
@@ -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 | |
@@ -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} |
@@ -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 | }; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function findByUri($uri, $create = false) |
| 27 | 27 | { |
| 28 | - $subscriber = $this->findOneBy(array( "uri" => $uri )); |
|
| 28 | + $subscriber = $this->findOneBy(array("uri" => $uri)); |
|
| 29 | 29 | if (!isset($subscriber) && $create) { |
| 30 | 30 | $subscriber = $this->create(); |
| 31 | 31 | $subscriber->uri = $uri; |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | |
| 106 | 106 | $results = $events->trigger( |
| 107 | 107 | $event, |
| 108 | - function ($r) { |
|
| 108 | + function($r) { |
|
| 109 | 109 | return false === $r; |
| 110 | 110 | } |
| 111 | 111 | ); |