@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | $dateStart = $this->job->getDatePublishStart(); |
53 | 53 | $dateStart = $dateStart ? $dateStart->format('Y-m-d H:i:s') : null; |
54 | - $dateEnd = $this->job->getDatePublishEnd(); |
|
54 | + $dateEnd = $this->job->getDatePublishEnd(); |
|
55 | 55 | $dateEnd = $dateEnd ? $dateEnd->format('Y-m-d H:i:s') : null; |
56 | 56 | if (!$dateEnd){ |
57 | 57 | $dateEnd = new \DateTime($dateStart); |
@@ -53,13 +53,13 @@ discard block |
||
53 | 53 | $dateStart = $dateStart ? $dateStart->format('Y-m-d H:i:s') : null; |
54 | 54 | $dateEnd = $this->job->getDatePublishEnd(); |
55 | 55 | $dateEnd = $dateEnd ? $dateEnd->format('Y-m-d H:i:s') : null; |
56 | - if (!$dateEnd){ |
|
56 | + if (!$dateEnd) { |
|
57 | 57 | $dateEnd = new \DateTime($dateStart); |
58 | 58 | $dateEnd->add(new \DateInterval("P180D")); |
59 | 59 | $dateEnd = $dateEnd->format('Y-m-d H:i:s'); |
60 | 60 | } |
61 | 61 | |
62 | - $array=[ |
|
62 | + $array = [ |
|
63 | 63 | '@context'=>'http://schema.org/', |
64 | 64 | '@type' => 'JobPosting', |
65 | 65 | 'title' => $this->job->getTitle(), |
@@ -92,16 +92,16 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @return array |
94 | 94 | */ |
95 | - private function getLocations($locations){ |
|
96 | - $array=[]; |
|
97 | - foreach($locations as $location){ /* @var \Core\Entity\LocationInterface $location */ |
|
95 | + private function getLocations($locations) { |
|
96 | + $array = []; |
|
97 | + foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
|
98 | 98 | array_push( |
99 | 99 | $array, |
100 | 100 | [ |
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(), |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | private function getDescription(TemplateValuesInterface $values) { |
123 | 123 | |
124 | - $description=sprintf( |
|
124 | + $description = sprintf( |
|
125 | 125 | "<p>%s</p>". |
126 | 126 | "<h1>%s</h1>". |
127 | 127 | "<h3>Requirements</h3><p>%s</p>". |