@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $dateEnd->add(new \DateInterval("P180D")); |
59 | 59 | $dateEnd = $dateEnd->format('Y-m-d H:i:s'); |
60 | 60 | } |
61 | - $array=[ |
|
61 | + $array = [ |
|
62 | 62 | '@context'=>'http://schema.org/', |
63 | 63 | '@type' => 'JobPosting', |
64 | 64 | 'title' => $this->job->getTitle(), |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | private function getLocations($locations) |
95 | 95 | { |
96 | - $array=[]; |
|
96 | + $array = []; |
|
97 | 97 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
98 | 98 | array_push( |
99 | 99 | $array, |
@@ -101,7 +101,7 @@ discard block |
||
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(), |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function getDescription(TemplateValuesInterface $values) |
124 | 124 | { |
125 | - $description=sprintf( |
|
125 | + $description = sprintf( |
|
126 | 126 | "<p>%s</p>". |
127 | 127 | "<h1>%s</h1>". |
128 | 128 | "<h3>Requirements</h3><p>%s</p>". |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | ] |
52 | 52 | ]; |
53 | 53 | |
54 | - private $inheritance = [ JsonLdProviderInterface::class ]; |
|
54 | + private $inheritance = [JsonLdProviderInterface::class]; |
|
55 | 55 | |
56 | - private function getJob($withOrganization=true, $withDatePublishStart=true, $withSalary=false) |
|
56 | + private function getJob($withOrganization = true, $withDatePublishStart = true, $withSalary = false) |
|
57 | 57 | { |
58 | 58 | $job = new Job(); |
59 | 59 | $organization = new Organization(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $organization->setOrganizationName($name); |
62 | 62 | if ($withOrganization) { |
63 | 63 | $job->setOrganization($organization); |
64 | - }else{ |
|
64 | + } else { |
|
65 | 65 | $job->setCompany("Company Name"); |
66 | 66 | } |
67 | 67 | $job->setTitle('Test JsonLdProvider'); |