@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | 'hiringOrganization' => [ |
| 87 | 87 | '@type' => 'Organization', |
| 88 | 88 | 'name' => $organizationName, |
| 89 | - 'logo' => $logo ? rtrim($this->options['server_url'], '/') . $logo : '', |
|
| 89 | + 'logo' => $logo ? rtrim($this->options['server_url'], '/').$logo : '', |
|
| 90 | 90 | ], |
| 91 | 91 | 'jobLocation' => $this->getLocations($this->job->getLocations()), |
| 92 | 92 | 'employmentType' => $this->job->getClassifications()->getEmploymentTypes()->getValues(), |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | private function getLogo() { |
| 105 | 105 | $organization = $this->job->getOrganization(); |
| 106 | 106 | |
| 107 | - $organizationLogo = ($organization && $organization->getImage())? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
| 107 | + $organizationLogo = ($organization && $organization->getImage()) ? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
| 108 | 108 | return $organizationLogo; |
| 109 | 109 | } |
| 110 | 110 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | private function getLocations($locations) |
| 119 | 119 | { |
| 120 | - $array=[]; |
|
| 120 | + $array = []; |
|
| 121 | 121 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
| 122 | 122 | array_push( |
| 123 | 123 | $array, |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | '@type' => 'Place', |
| 126 | 126 | 'address' => [ |
| 127 | 127 | '@type' => 'PostalAddress', |
| 128 | - 'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(), |
|
| 128 | + 'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(), |
|
| 129 | 129 | 'postalCode' => $location->getPostalCode(), |
| 130 | 130 | 'addressLocality' => $location->getCity(), |
| 131 | 131 | 'addressCountry' => $location->getCountry(), |
@@ -149,9 +149,9 @@ discard block |
||
| 149 | 149 | $html = $values->getHtml(); |
| 150 | 150 | |
| 151 | 151 | if ($html) { |
| 152 | - $description=sprintf("%s", $values->getHtml() ); |
|
| 152 | + $description = sprintf("%s", $values->getHtml()); |
|
| 153 | 153 | } else { |
| 154 | - $description=sprintf( |
|
| 154 | + $description = sprintf( |
|
| 155 | 155 | "<p>%s</p>". |
| 156 | 156 | "<h1>%s</h1>". |
| 157 | 157 | "<h3>Requirements</h3><p>%s</p>". |
@@ -64,8 +64,8 @@ |
||
| 64 | 64 | ); |
| 65 | 65 | |
| 66 | 66 | return '<script type="application/ld+json">' |
| 67 | - . $jsonLdProvider->toJsonLd() |
|
| 68 | - . '</script>'; |
|
| 67 | + . $jsonLdProvider->toJsonLd() |
|
| 68 | + . '</script>'; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |