@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $this->options = array_intersect_key($new, $this->options); |
57 | 57 | } |
58 | 58 | |
59 | - public function toJsonLd($default=[]) |
|
59 | + public function toJsonLd($default = []) |
|
60 | 60 | { |
61 | 61 | $organization = $this->job->getOrganization(); |
62 | 62 | $organizationName = $organization ? $organization->getOrganizationName()->getName() : $this->job->getCompany(); |
@@ -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(), |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | private function getLogo() { |
112 | 112 | $organization = $this->job->getOrganization(); |
113 | 113 | |
114 | - $organizationLogo = ($organization && $organization->getImage())? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
114 | + $organizationLogo = ($organization && $organization->getImage()) ? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
115 | 115 | return $organizationLogo; |
116 | 116 | } |
117 | 117 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | private function getLocations($locations) |
126 | 126 | { |
127 | - $array=[]; |
|
127 | + $array = []; |
|
128 | 128 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
129 | 129 | array_push( |
130 | 130 | $array, |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | '@type' => 'Place', |
133 | 133 | 'address' => [ |
134 | 134 | '@type' => 'PostalAddress', |
135 | - 'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(), |
|
135 | + 'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(), |
|
136 | 136 | 'postalCode' => $location->getPostalCode(), |
137 | 137 | 'addressLocality' => $location->getCity(), |
138 | 138 | 'addressCountry' => $location->getCountry(), |
@@ -156,9 +156,9 @@ discard block |
||
156 | 156 | $html = $values->getHtml(); |
157 | 157 | |
158 | 158 | if ($html) { |
159 | - $description=sprintf("%s", $values->getHtml() ); |
|
159 | + $description = sprintf("%s", $values->getHtml()); |
|
160 | 160 | } else { |
161 | - $description=sprintf( |
|
161 | + $description = sprintf( |
|
162 | 162 | "<p>%s</p>". |
163 | 163 | "<h1>%s</h1>". |
164 | 164 | "<h3>Requirements</h3><p>%s</p>". |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | ]; |
197 | 197 | } |
198 | 198 | |
199 | - private function getDefault(){ |
|
199 | + private function getDefault() { |
|
200 | 200 | return [ |
201 | 201 | '@context'=>'http://schema.org/', |
202 | 202 | '@type' => 'JobPosting', |