@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * @param ServiceLocatorInterface $serviceLocator |
| 36 | - * @return $this|mixed |
|
| 36 | + * @return ViewModelTemplateFilterFactory |
|
| 37 | 37 | */ |
| 38 | 38 | public function createService(ServiceLocatorInterface $serviceLocator) |
| 39 | 39 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $organizationName = $this->job->getOrganization()->getOrganizationName()->getName(); |
| 50 | 50 | |
| 51 | - $array=[ |
|
| 51 | + $array = [ |
|
| 52 | 52 | '@context'=>'http://schema.org/', |
| 53 | 53 | '@type' => 'JobPosting', |
| 54 | 54 | 'title' => $this->job->getTitle(), |
@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | * |
| 81 | 81 | * @return array |
| 82 | 82 | */ |
| 83 | - private function getLocations($locations){ |
|
| 84 | - $array=[]; |
|
| 85 | - foreach($locations as $location){ /* @var \Core\Entity\LocationInterface $location */ |
|
| 83 | + private function getLocations($locations) { |
|
| 84 | + $array = []; |
|
| 85 | + foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
|
| 86 | 86 | array_push( |
| 87 | 87 | $array, |
| 88 | 88 | [ |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | private function getDescription(TemplateValuesInterface $values) { |
| 110 | 110 | |
| 111 | - $description=sprintf( |
|
| 111 | + $description = sprintf( |
|
| 112 | 112 | "<p>%s</p>". |
| 113 | 113 | "<h1>%s</h1>". |
| 114 | 114 | "<h3>Requirements</h3><p>%s</p>". |
@@ -50,8 +50,8 @@ |
||
| 50 | 50 | $jsonLdProvider = new JsonLdProvider($job); |
| 51 | 51 | |
| 52 | 52 | return '<script type="application/ld+json">' |
| 53 | - . $jsonLdProvider->toJsonLd() |
|
| 54 | - . '</script>'; |
|
| 53 | + . $jsonLdProvider->toJsonLd() |
|
| 54 | + . '</script>'; |
|
| 55 | 55 | |
| 56 | 56 | } |
| 57 | 57 | |