@@ -32,9 +32,9 @@ |
||
32 | 32 | public function init() |
33 | 33 | { |
34 | 34 | $this->setName('preferredJob') |
35 | - ->setHydrator(new EntityHydrator()) |
|
36 | - ->setObject(new PreferredJob()) |
|
37 | - ->setLabel('Desired Employment'); |
|
35 | + ->setHydrator(new EntityHydrator()) |
|
36 | + ->setObject(new PreferredJob()) |
|
37 | + ->setLabel('Desired Employment'); |
|
38 | 38 | |
39 | 39 | $this->add( |
40 | 40 | array( |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | public function init() |
13 | 13 | { |
14 | - // $this->setDescription(/*@translate*/' Where do you want to work tomorrow. This heading gives an immediate overview of your desired next job.'); |
|
14 | + // $this->setDescription(/*@translate*/' Where do you want to work tomorrow. This heading gives an immediate overview of your desired next job.'); |
|
15 | 15 | $this->setIsDescriptionsEnabled(true); |
16 | 16 | parent::init(); |
17 | 17 | } |
@@ -124,9 +124,9 @@ |
||
124 | 124 | public function init() |
125 | 125 | { |
126 | 126 | $this->setName('nativeLanguages') |
127 | - ->setHydrator(new EntityHydrator()) |
|
128 | - ->setObject(new NativeLanguageEntity()) |
|
129 | - ->setLabel('Native Language'); |
|
127 | + ->setHydrator(new EntityHydrator()) |
|
128 | + ->setObject(new NativeLanguageEntity()) |
|
129 | + ->setLabel('Native Language'); |
|
130 | 130 | |
131 | 131 | |
132 | 132 | $this->add( |
@@ -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 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @var array |
72 | 72 | * @ODM\Collection |
73 | 73 | */ |
74 | - protected $nativeLanguages=[]; |
|
74 | + protected $nativeLanguages = []; |
|
75 | 75 | |
76 | 76 | |
77 | 77 | /** |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | public function setIsDraft($isDraft) |
218 | 218 | { |
219 | - $this->isDraft=$isDraft; |
|
219 | + $this->isDraft = $isDraft; |
|
220 | 220 | return $this; |
221 | 221 | } |
222 | 222 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | */ |
285 | 285 | public function setNativeLanguages($nativeLanguages) |
286 | 286 | { |
287 | - $this->nativeLanguages=$nativeLanguages; |
|
287 | + $this->nativeLanguages = $nativeLanguages; |
|
288 | 288 | return $this; |
289 | 289 | } |
290 | 290 |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @return ArrayCollection |
|
142 | + * @return IdentityWrapper |
|
143 | 143 | */ |
144 | 144 | public function getEducationsIndexedById() |
145 | 145 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return ArrayCollection |
|
171 | + * @return IdentityWrapper |
|
172 | 172 | */ |
173 | 173 | public function getEmploymentsIndexedById() |
174 | 174 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @return ArrayCollection |
|
200 | + * @return IdentityWrapper |
|
201 | 201 | */ |
202 | 202 | public function getSkillsIndexedById() |
203 | 203 | { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | } |
276 | 276 | |
277 | 277 | /** |
278 | - * @return ArrayCollection |
|
278 | + * @return IdentityWrapper |
|
279 | 279 | */ |
280 | 280 | public function getLanguageSkillsIndexedById() |
281 | 281 | { |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function init() |
12 | 12 | { |
13 | 13 | $this->setName('language') |
14 | - ->setHydrator(new EntityHydrator()) |
|
15 | - ->setObject(new LanguageEntity()) |
|
16 | - ->setLabel('Language'); |
|
14 | + ->setHydrator(new EntityHydrator()) |
|
15 | + ->setObject(new LanguageEntity()) |
|
16 | + ->setLabel('Language'); |
|
17 | 17 | |
18 | 18 | $this->add( |
19 | 19 | array( |
@@ -20,14 +20,14 @@ discard block |
||
20 | 20 | * Sets the Postal Code of a location |
21 | 21 | * |
22 | 22 | * @param string $postalCode |
23 | - * @return mixed |
|
23 | + * @return AbstractLocation |
|
24 | 24 | */ |
25 | 25 | public function setPostalCode($postalCode); |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Gets the Postal Code of a location |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return string |
|
31 | 31 | */ |
32 | 32 | public function getPostalCode(); |
33 | 33 | |
@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param GeoJson $coordinates |
46 | 46 | * @internal param $point |
47 | + * @return AbstractLocation |
|
47 | 48 | */ |
48 | 49 | public function setCoordinates(GeoJson $coordinates); |
49 | 50 | |
@@ -51,7 +52,7 @@ discard block |
||
51 | 52 | * Sets the city name of a Location |
52 | 53 | * |
53 | 54 | * @param $city |
54 | - * @return mixed |
|
55 | + * @return AbstractLocation |
|
55 | 56 | */ |
56 | 57 | public function setCity($city); |
57 | 58 | |
@@ -66,14 +67,14 @@ discard block |
||
66 | 67 | * Sets the country of a location |
67 | 68 | * |
68 | 69 | * @param $country |
69 | - * @return mixed |
|
70 | + * @return AbstractLocation |
|
70 | 71 | */ |
71 | 72 | public function setCountry($country); |
72 | 73 | |
73 | 74 | /** |
74 | 75 | * Gets the country of a location |
75 | 76 | * |
76 | - * @return mixed |
|
77 | + * @return string |
|
77 | 78 | */ |
78 | 79 | public function getCountry(); |
79 | 80 | |
@@ -81,7 +82,7 @@ discard block |
||
81 | 82 | * Sets the region of a location. Eg. "Hessen" is a region in "Germany" |
82 | 83 | * |
83 | 84 | * @param $region |
84 | - * @return mixed |
|
85 | + * @return AbstractLocation |
|
85 | 86 | */ |
86 | 87 | public function setRegion($region); |
87 | 88 |
@@ -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 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | public function setDesiredLocation($desiredLocation) |
99 | 99 | { |
100 | - $this->desiredLocation=$desiredLocation; |
|
100 | + $this->desiredLocation = $desiredLocation; |
|
101 | 101 | return $this; |
102 | 102 | } |
103 | 103 | |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | public function setWillingnessToTravel($willingnessToTravel) |
121 | 121 | { |
122 | - $this->willingnessToTravel=$willingnessToTravel; |
|
122 | + $this->willingnessToTravel = $willingnessToTravel; |
|
123 | 123 | return $this; |
124 | 124 | } |
125 | 125 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | public function setExpectedSalary($expectedSalary) |
132 | 132 | { |
133 | - $this->expectedSalary=$expectedSalary; |
|
133 | + $this->expectedSalary = $expectedSalary; |
|
134 | 134 | return $this; |
135 | 135 | } |
136 | 136 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | 'attributes' => [ |
122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
123 | 123 | 'data-allowclear' => 'false', |
124 | - 'data-searchbox' => -1, // hide the search box |
|
124 | + 'data-searchbox' => -1, // hide the search box |
|
125 | 125 | 'required' => true, // mark label as required |
126 | 126 | ], |
127 | 127 | ) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $queryBuilder->field('preferredJob.desiredLocations.coordinates')->geoWithinCenter( |
43 | 43 | $coordinates[0], |
44 | 44 | $coordinates[1], |
45 | - (float)$params['d'] / 100 |
|
45 | + (float) $params['d'] / 100 |
|
46 | 46 | ); |
47 | 47 | } |
48 | 48 |