@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | public function setDesiredJob($desiredJob) |
88 | 88 | { |
89 | - $this->desiredJob=$desiredJob; |
|
89 | + $this->desiredJob = $desiredJob; |
|
90 | 90 | return $this; |
91 | 91 | } |
92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | */ |
106 | 106 | public function setDesiredLocation($desiredLocation) |
107 | 107 | { |
108 | - $this->desiredLocation=$desiredLocation; |
|
108 | + $this->desiredLocation = $desiredLocation; |
|
109 | 109 | return $this; |
110 | 110 | } |
111 | 111 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | public function setWillingnessToTravel($willingnessToTravel) |
145 | 145 | { |
146 | - $this->willingnessToTravel=$willingnessToTravel; |
|
146 | + $this->willingnessToTravel = $willingnessToTravel; |
|
147 | 147 | return $this; |
148 | 148 | } |
149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function setExpectedSalary($expectedSalary) |
164 | 164 | { |
165 | - $this->expectedSalary=$expectedSalary; |
|
165 | + $this->expectedSalary = $expectedSalary; |
|
166 | 166 | return $this; |
167 | 167 | } |
168 | 168 |
@@ -15,9 +15,9 @@ |
||
15 | 15 | */ |
16 | 16 | interface StatusInterface extends EntityInterface |
17 | 17 | { |
18 | - const NONPUBLIC = /*@translate*/ 'private'; |
|
18 | + const NONPUBLIC = /*@translate*/ 'private'; |
|
19 | 19 | |
20 | - const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
20 | + const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
21 | 21 | |
22 | 22 | public function __construct($status = self::NONPUBLIC); |
23 | 23 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | public function __construct($status = self::NONPUBLIC) |
48 | 48 | { |
49 | 49 | if (!isset(static::$orderMap[$status])) { |
50 | - throw new \DomainException('Unknown status: ' . $status); |
|
50 | + throw new \DomainException('Unknown status: '.$status); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | $this->name = $status; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function setName($name) |
35 | 35 | { |
36 | - $this->name=$name; |
|
36 | + $this->name = $name; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function setLevel($level) |
53 | 53 | { |
54 | - $this->level=$level; |
|
54 | + $this->level = $level; |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -10,10 +10,10 @@ |
||
10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
11 | 11 | |
12 | 12 | interface CvInterface extends EntityInterface, |
13 | - IdentifiableEntityInterface, |
|
14 | - DraftableEntityInterface, |
|
15 | - PermissionsAwareInterface, |
|
16 | - ModificationDateAwareEntityInterface |
|
13 | + IdentifiableEntityInterface, |
|
14 | + DraftableEntityInterface, |
|
15 | + PermissionsAwareInterface, |
|
16 | + ModificationDateAwareEntityInterface |
|
17 | 17 | { |
18 | 18 | |
19 | 19 | /** |
@@ -60,11 +60,11 @@ |
||
60 | 60 | protected $skills; |
61 | 61 | |
62 | 62 | /** |
63 | - * Skills |
|
64 | - * |
|
65 | - * @var ArrayCollection |
|
66 | - * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | - */ |
|
63 | + * Skills |
|
64 | + * |
|
65 | + * @var ArrayCollection |
|
66 | + * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | + */ |
|
68 | 68 | protected $languageSkills; |
69 | 69 | |
70 | 70 | /** |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @var array |
83 | 83 | * @ODM\Field(type="collection") |
84 | 84 | */ |
85 | - protected $nativeLanguages=[]; |
|
85 | + protected $nativeLanguages = []; |
|
86 | 86 | |
87 | 87 | |
88 | 88 | /** |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function setIsDraft($isDraft) |
269 | 269 | { |
270 | - $this->isDraft=$isDraft; |
|
270 | + $this->isDraft = $isDraft; |
|
271 | 271 | return $this; |
272 | 272 | } |
273 | 273 | |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function setNativeLanguages($nativeLanguages) |
339 | 339 | { |
340 | - $this->nativeLanguages=$nativeLanguages; |
|
340 | + $this->nativeLanguages = $nativeLanguages; |
|
341 | 341 | return $this; |
342 | 342 | } |
343 | 343 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | protected $workflow = [ |
81 | 81 | |
82 | - 'recruiter', |
|
82 | + 'recruiter', |
|
83 | 83 | ]; |
84 | 84 | |
85 | 85 | /** |
@@ -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 | } |
@@ -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 | }; |
@@ -57,9 +57,9 @@ |
||
57 | 57 | foreach ($document->getAttachments() as $attachment) { |
58 | 58 | /* @var \Applications\Entity\Attachment $attachment */ |
59 | 59 | $attachment->getMetadata() |
60 | - ->getPermissions() |
|
61 | - ->clear() |
|
62 | - ->inherit($permissions); |
|
60 | + ->getPermissions() |
|
61 | + ->clear() |
|
62 | + ->inherit($permissions); |
|
63 | 63 | if ($isUpdate) { |
64 | 64 | $uow->computeChangeSet( |
65 | 65 | $dm->getClassMetadata(get_class($attachment)), |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * and which are not in draft mode |
92 | 92 | */ |
93 | 93 | $queryBuilder->field('permissions.view')->equals($userID) |
94 | - ->field('isDraft')->equals(false); |
|
94 | + ->field('isDraft')->equals(false); |
|
95 | 95 | |
96 | 96 | if (!isset($value['sort'])) { |
97 | 97 | $value['sort'] = '-date'; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * |
29 | 29 | * @var String |
30 | 30 | */ |
31 | - protected $repositoryName="Applications/Application"; |
|
31 | + protected $repositoryName = "Applications/Application"; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Sortable fields |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $searchPatterns = array(); |
81 | 81 | |
82 | 82 | foreach (explode(' ', $search) as $searchItem) { |
83 | - $searchPatterns[] = new Regex('/^' . $searchItem . '/'); |
|
83 | + $searchPatterns[] = new Regex('/^'.$searchItem.'/'); |
|
84 | 84 | } |
85 | 85 | $queryBuilder->field('keywords')->all($searchPatterns); |
86 | 86 | } |