@@ -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 | ); |
@@ -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 | } |
@@ -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; |
|
| 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; |
|
| 247 | - |
|
| 248 | - return $this; |
|
| 249 | - } |
|
| 225 | + public function setOneClickApply($oneClickApply) |
|
| 226 | + { |
|
| 227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
| 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; |
|
| 247 | + |
|
| 248 | + return $this; |
|
| 249 | + } |
|
| 250 | 250 | } |
@@ -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 | } |
@@ -59,12 +59,12 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | parent::__construct($status); |
| 61 | 61 | |
| 62 | - $constant = 'self::' . strtoupper(str_replace(' ', '_', $status)); |
|
| 62 | + $constant = 'self::'.strtoupper(str_replace(' ', '_', $status)); |
|
| 63 | 63 | if (!defined($constant)) { |
| 64 | - throw new \DomainException('Unknown status: ' . $status); |
|
| 64 | + throw new \DomainException('Unknown status: '.$status); |
|
| 65 | 65 | } |
| 66 | - $this->name=constant($constant); |
|
| 67 | - $this->order=$this->getOrder(); |
|
| 66 | + $this->name = constant($constant); |
|
| 67 | + $this->order = $this->getOrder(); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function getName() |
| 76 | 76 | { |
| 77 | - return isset($this->name)?$this->name:''; |
|
| 77 | + return isset($this->name) ? $this->name : ''; |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | * |
| 199 | 199 | * @return UserInterface $user |
| 200 | 200 | */ |
| 201 | - public function getUser() ; |
|
| 201 | + public function getUser(); |
|
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | 204 | * Gets the link to the application form |
@@ -245,6 +245,6 @@ |
||
| 245 | 245 | |
| 246 | 246 | public function __toString() |
| 247 | 247 | { |
| 248 | - return self::class . '( ' . $this->getSnapshotId() . ' )'; |
|
| 248 | + return self::class.'( '.$this->getSnapshotId().' )'; |
|
| 249 | 249 | } |
| 250 | 250 | } |
@@ -65,8 +65,8 @@ |
||
| 65 | 65 | 'link' => $this->jobUrl->__invoke( |
| 66 | 66 | $job, |
| 67 | 67 | [ |
| 68 | - 'linkOnly'=> true, |
|
| 69 | - 'absolute' => true, |
|
| 68 | + 'linkOnly'=> true, |
|
| 69 | + 'absolute' => true, |
|
| 70 | 70 | ] |
| 71 | 71 | ), |
| 72 | 72 | 'organization' => array( |