@@ -73,15 +73,15 @@ |
||
73 | 73 | if ('yawik' == $channelKey) { |
74 | 74 | $absoluteDiscount = 100; |
75 | 75 | } |
76 | - if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) { |
|
76 | + if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) { |
|
77 | 77 | $sum += $channel->getPrice('base'); |
78 | 78 | $amount++; |
79 | 79 | } |
80 | 80 | } |
81 | - $discount=1-($amount-1)*13.5/100; |
|
82 | - if ($discount>0) { |
|
83 | - $sum= round($sum * $discount, 2); |
|
81 | + $discount = 1 - ($amount - 1) * 13.5 / 100; |
|
82 | + if ($discount > 0) { |
|
83 | + $sum = round($sum * $discount, 2); |
|
84 | 84 | } |
85 | - return $sum-$absoluteDiscount; |
|
85 | + return $sum - $absoluteDiscount; |
|
86 | 86 | } |
87 | 87 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setImageFileCacheHelper($imageFileCacheHelper) |
122 | 122 | { |
123 | - $this->imageFileCacheHelper=$imageFileCacheHelper; |
|
123 | + $this->imageFileCacheHelper = $imageFileCacheHelper; |
|
124 | 124 | return; |
125 | 125 | } |
126 | 126 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | if (!isset($this->job)) { |
147 | 147 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job'); |
148 | 148 | } |
149 | - $model->setTemplate('templates/' . $this->job->getTemplate() . '/index'); |
|
149 | + $model->setTemplate('templates/'.$this->job->getTemplate().'/index'); |
|
150 | 150 | return $model; |
151 | 151 | } |
152 | 152 | |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job'); |
207 | 207 | } |
208 | 208 | $location = $this->job->getLocation(); |
209 | - $this->container['location'] = isset($location)?$location:''; |
|
209 | + $this->container['location'] = isset($location) ? $location : ''; |
|
210 | 210 | return $this; |
211 | 211 | } |
212 | 212 | |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | } |
228 | 228 | $description = $this->job->getTemplateValues()->getDescription(); |
229 | 229 | |
230 | - $this->container['description'] = isset($description)?$description:''; |
|
230 | + $this->container['description'] = isset($description) ? $description : ''; |
|
231 | 231 | return $this; |
232 | 232 | } |
233 | 233 | |
@@ -291,9 +291,9 @@ discard block |
||
291 | 291 | if (!isset($this->job)) { |
292 | 292 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job'); |
293 | 293 | } |
294 | - $labelQualifications=''; |
|
295 | - $labelBenefits=''; |
|
296 | - $labelRequirements=''; |
|
294 | + $labelQualifications = ''; |
|
295 | + $labelBenefits = ''; |
|
296 | + $labelRequirements = ''; |
|
297 | 297 | |
298 | 298 | $organization = $this->job->getOrganization(); |
299 | 299 | if (isset($organization)) { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'lang/jobs/view', |
49 | 49 | [], |
50 | 50 | [ |
51 | - 'query' => [ 'id' => $job->getId() ], |
|
51 | + 'query' => ['id' => $job->getId()], |
|
52 | 52 | 'force_canonical' => true |
53 | 53 | ] |
54 | 54 | ); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'lang/jobs/view', |
49 | 49 | [], |
50 | 50 | [ |
51 | - 'query' => [ 'id' => $job->getId() ], |
|
51 | + 'query' => ['id' => $job->getId()], |
|
52 | 52 | 'force_canonical' => true |
53 | 53 | ] |
54 | 54 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $dateEnd->add(new \DateInterval("P180D")); |
59 | 59 | $dateEnd = $dateEnd->format('Y-m-d H:i:s'); |
60 | 60 | } |
61 | - $array=[ |
|
61 | + $array = [ |
|
62 | 62 | '@context'=>'http://schema.org/', |
63 | 63 | '@type' => 'JobPosting', |
64 | 64 | 'title' => $this->job->getTitle(), |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | private function getLocations($locations) |
95 | 95 | { |
96 | - $array=[]; |
|
96 | + $array = []; |
|
97 | 97 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
98 | 98 | array_push( |
99 | 99 | $array, |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | '@type' => 'Place', |
102 | 102 | 'address' => [ |
103 | 103 | '@type' => 'PostalAddress', |
104 | - 'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(), |
|
104 | + 'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(), |
|
105 | 105 | 'postalCode' => $location->getPostalCode(), |
106 | 106 | 'addressLocality' => $location->getCity(), |
107 | 107 | 'addressCountry' => $location->getCountry(), |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function getDescription(TemplateValuesInterface $values) |
124 | 124 | { |
125 | - $description=sprintf( |
|
125 | + $description = sprintf( |
|
126 | 126 | "<p>%s</p>". |
127 | 127 | "<h1>%s</h1>". |
128 | 128 | "<h3>Requirements</h3><p>%s</p>". |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | return $this->email; |
209 | 209 | } |
210 | 210 | |
211 | - /** |
|
212 | - * @return bool |
|
213 | - */ |
|
214 | - public function getOneClickApply() |
|
215 | - { |
|
216 | - return $this->oneClickApply; |
|
217 | - } |
|
211 | + /** |
|
212 | + * @return bool |
|
213 | + */ |
|
214 | + public function getOneClickApply() |
|
215 | + { |
|
216 | + return $this->oneClickApply; |
|
217 | + } |
|
218 | 218 | |
219 | 219 | |
220 | 220 | /** |
@@ -222,29 +222,29 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return $this |
224 | 224 | */ |
225 | - public function setOneClickApply($oneClickApply) |
|
226 | - { |
|
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
225 | + public function setOneClickApply($oneClickApply) |
|
226 | + { |
|
227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
228 | 228 | |
229 | - return $this; |
|
230 | - } |
|
231 | - |
|
232 | - /** |
|
233 | - * @return array |
|
234 | - */ |
|
235 | - public function getOneClickApplyProfiles() |
|
236 | - { |
|
237 | - return $this->oneClickApplyProfiles; |
|
238 | - } |
|
239 | - |
|
240 | - /** |
|
241 | - * @param array $oneClickApplyProfiles |
|
242 | - * @return AtsMode |
|
243 | - */ |
|
244 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | - { |
|
246 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
229 | + return $this; |
|
230 | + } |
|
231 | + |
|
232 | + /** |
|
233 | + * @return array |
|
234 | + */ |
|
235 | + public function getOneClickApplyProfiles() |
|
236 | + { |
|
237 | + return $this->oneClickApplyProfiles; |
|
238 | + } |
|
239 | + |
|
240 | + /** |
|
241 | + * @param array $oneClickApplyProfiles |
|
242 | + * @return AtsMode |
|
243 | + */ |
|
244 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | + { |
|
246 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
247 | 247 | |
248 | - return $this; |
|
249 | - } |
|
248 | + return $this; |
|
249 | + } |
|
250 | 250 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | */ |
225 | 225 | public function setOneClickApply($oneClickApply) |
226 | 226 | { |
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
227 | + $this->oneClickApply = (bool) $oneClickApply; |
|
228 | 228 | |
229 | 229 | return $this; |
230 | 230 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * A new job was created. |
23 | 23 | */ |
24 | - const CREATED = /*@translate*/ 'created'; |
|
24 | + const CREATED = /*@translate*/ 'created'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * A new job is waiting for approval |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * A Job is accepted an is going to be published |
38 | 38 | */ |
39 | - const PUBLISH = /*@translate*/ 'publish'; |
|
39 | + const PUBLISH = /*@translate*/ 'publish'; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * A Job is online |
43 | 43 | */ |
44 | - const ACTIVE = /*@translate*/ 'active'; |
|
44 | + const ACTIVE = /*@translate*/ 'active'; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * A job was is set inactive |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * A job was expired |
53 | 53 | */ |
54 | - const EXPIRED = /*@translate*/ 'expired'; |
|
54 | + const EXPIRED = /*@translate*/ 'expired'; |
|
55 | 55 | |
56 | 56 | public function __construct($status = self::CREATED); |
57 | 57 |
@@ -428,9 +428,9 @@ |
||
428 | 428 | } |
429 | 429 | |
430 | 430 | /** |
431 | - * (non-PHPdoc) |
|
432 | - * @see \Jobs\Entity\JobInterface::getOrganization() |
|
433 | - */ |
|
431 | + * (non-PHPdoc) |
|
432 | + * @see \Jobs\Entity\JobInterface::getOrganization() |
|
433 | + */ |
|
434 | 434 | public function getOrganization() |
435 | 435 | { |
436 | 436 | return $this->organization; |
@@ -514,10 +514,10 @@ discard block |
||
514 | 514 | public function getLocation() |
515 | 515 | { |
516 | 516 | if (null === $this->location) { |
517 | - $array=[]; |
|
517 | + $array = []; |
|
518 | 518 | if (null != $this->locations) { |
519 | 519 | foreach ($this->locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
520 | - $array[]=(string) $location; |
|
520 | + $array[] = (string) $location; |
|
521 | 521 | } |
522 | 522 | return implode(', ', $array); |
523 | 523 | } |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | if ($removePermissions) { |
573 | 573 | $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL); |
574 | 574 | } |
575 | - $this->user=null; |
|
575 | + $this->user = null; |
|
576 | 576 | } |
577 | 577 | |
578 | 578 | return $this; |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | $organization = $this->organization; |
834 | 834 | if (is_object($organization) && $organization->getImage()) { |
835 | 835 | $organizationImage = $organization->getImage(); |
836 | - return "/file/Organizations.OrganizationImage/" . $organizationImage->getId(); |
|
836 | + return "/file/Organizations.OrganizationImage/".$organizationImage->getId(); |
|
837 | 837 | } |
838 | 838 | return $this->logoRef; |
839 | 839 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @var String |
37 | 37 | * @ODM\Field(type="string") |
38 | 38 | */ |
39 | - protected $qualifications=''; |
|
39 | + protected $qualifications = ''; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Requirements field of the job template |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @var String |
45 | 45 | * @ODM\Field(type="string") |
46 | 46 | */ |
47 | - protected $requirements=''; |
|
47 | + protected $requirements = ''; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Benefits field of the job template |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @var String |
53 | 53 | * @ODM\Field(type="string") |
54 | 54 | */ |
55 | - protected $benefits=''; |
|
55 | + protected $benefits = ''; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Job title field of the job template |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @var String |
61 | 61 | * @ODM\Field(type="string") |
62 | 62 | */ |
63 | - protected $title=''; |
|
63 | + protected $title = ''; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Company description field of the job template |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @var String |
69 | 69 | * @ODM\Field(type="string") |
70 | 70 | */ |
71 | - protected $description=''; |
|
71 | + protected $description = ''; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @var String |
77 | 77 | * @ODM\Field(type="string") |
78 | 78 | */ |
79 | - protected $language='en'; |
|
79 | + protected $language = 'en'; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Pure HTML |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @var string |
86 | 86 | * @since 0.29 |
87 | 87 | */ |
88 | - protected $html=''; |
|
88 | + protected $html = ''; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * free values (currently not in use) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function setQualifications($qualifications) |
104 | 104 | { |
105 | - $this->qualifications= (string) $qualifications; |
|
105 | + $this->qualifications = (string) $qualifications; |
|
106 | 106 | return $this; |
107 | 107 | } |
108 | 108 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function setRequirements($requirements) |
126 | 126 | { |
127 | - $this->requirements=(string) $requirements; |
|
127 | + $this->requirements = (string) $requirements; |
|
128 | 128 | return $this; |
129 | 129 | } |
130 | 130 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function setBenefits($benefits) |
148 | 148 | { |
149 | - $this->benefits=(string) $benefits; |
|
149 | + $this->benefits = (string) $benefits; |
|
150 | 150 | return $this; |
151 | 151 | } |
152 | 152 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | */ |
169 | 169 | public function setTitle($title) |
170 | 170 | { |
171 | - $this->title=(string) $title; |
|
171 | + $this->title = (string) $title; |
|
172 | 172 | return $this; |
173 | 173 | } |
174 | 174 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function setDescription($description) |
192 | 192 | { |
193 | - $this->description=(string) $description; |
|
193 | + $this->description = (string) $description; |
|
194 | 194 | return $this; |
195 | 195 | } |
196 | 196 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | public function setLanguage($language) |
214 | 214 | { |
215 | - $this->language=(string) $language; |
|
215 | + $this->language = (string) $language; |
|
216 | 216 | return $this; |
217 | 217 | } |
218 | 218 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | public function __get($property) |
283 | 283 | { |
284 | - $getter = "get" . ucfirst($property); |
|
284 | + $getter = "get".ucfirst($property); |
|
285 | 285 | if (method_exists($this, $getter)) { |
286 | 286 | return $this->$getter(); |
287 | 287 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | public function __set($property, $value) |
297 | 297 | { |
298 | 298 | //$this->checkWriteAccess(); |
299 | - $setter = 'set' . ucfirst($property); |
|
299 | + $setter = 'set'.ucfirst($property); |
|
300 | 300 | if (method_exists($this, $setter)) { |
301 | 301 | $this->$setter($value); |
302 | 302 | return; |