@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | $reflection = new \ReflectionClass($this->class); |
65 | 65 | $args = array_map( |
66 | - function ($arg) use ($container) { |
|
66 | + function($arg) use ($container) { |
|
67 | 67 | return is_string($arg) && 0 === strpos($arg, '@') ? $container->get(substr($arg, 1)) : $arg; |
68 | 68 | }, |
69 | 69 | $this->args |
@@ -175,7 +175,7 @@ |
||
175 | 175 | $methodName, |
176 | 176 | '*' == $name ? '' : $name, |
177 | 177 | $count, |
178 | - null === $options ? '' : ' with options hash ' . $optHash, |
|
178 | + null === $options ? '' : ' with options hash '.$optHash, |
|
179 | 179 | $actual |
180 | 180 | ) |
181 | 181 | ); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ->getMock(); |
73 | 73 | $translator->expects($this->once()) |
74 | 74 | ->method('translate') |
75 | - ->with($this->callback(function ($string) { |
|
75 | + ->with($this->callback(function($string) { |
|
76 | 76 | return is_string($string); |
77 | 77 | })) |
78 | 78 | ->willReturn($expected); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ->getMock(); |
73 | 73 | $translator->expects($this->once()) |
74 | 74 | ->method('translate') |
75 | - ->with($this->callback(function ($string) { |
|
75 | + ->with($this->callback(function($string) { |
|
76 | 76 | return is_string($string); |
77 | 77 | })) |
78 | 78 | ->willReturn($expected); |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ->getMock(); |
73 | 73 | $translator->expects($this->once()) |
74 | 74 | ->method('translate') |
75 | - ->with($this->callback(function ($string) { |
|
75 | + ->with($this->callback(function($string) { |
|
76 | 76 | return is_string($string); |
77 | 77 | })) |
78 | 78 | ->willReturn($expected); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | protected function failureDescription($other): string |
83 | 83 | { |
84 | - return ($other instanceof \ReflectionClass ? $other->getName() : get_class($other)) . ' ' . $this->toString(); |
|
84 | + return ($other instanceof \ReflectionClass ? $other->getName() : get_class($other)).' '.$this->toString(); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | protected function additionalFailureDescription($other): string |
@@ -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(), |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | private function getLogo() { |
91 | 91 | $organization = $this->job->getOrganization(); |
92 | 92 | |
93 | - $organizationLogo = ($organization && $organization->getImage())? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
93 | + $organizationLogo = ($organization && $organization->getImage()) ? $organization->getImage()->getUri() : $this->job->getLogoRef(); |
|
94 | 94 | return $organizationLogo; |
95 | 95 | } |
96 | 96 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | private function getLocations($locations) |
105 | 105 | { |
106 | - $array=[]; |
|
106 | + $array = []; |
|
107 | 107 | foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */ |
108 | 108 | array_push( |
109 | 109 | $array, |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | '@type' => 'Place', |
112 | 112 | 'address' => [ |
113 | 113 | '@type' => 'PostalAddress', |
114 | - 'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(), |
|
114 | + 'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(), |
|
115 | 115 | 'postalCode' => $location->getPostalCode(), |
116 | 116 | 'addressLocality' => $location->getCity(), |
117 | 117 | 'addressCountry' => $location->getCountry(), |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | $html = $values->getHtml(); |
136 | 136 | |
137 | 137 | if ($html) { |
138 | - $description=sprintf("%s", $values->getHtml() ); |
|
138 | + $description = sprintf("%s", $values->getHtml()); |
|
139 | 139 | } else { |
140 | - $description=sprintf( |
|
140 | + $description = sprintf( |
|
141 | 141 | "<p>%s</p>". |
142 | 142 | "<h1>%s</h1>". |
143 | 143 | "<h3>Requirements</h3><p>%s</p>". |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | class JobEntityDependencyListener extends AbstractDependenciesListener |
27 | 27 | { |
28 | - protected $entityClasses = [ Job::class ]; |
|
28 | + protected $entityClasses = [Job::class]; |
|
29 | 29 | |
30 | 30 | protected function dependencyCheck(DependencyResultEvent $event) |
31 | 31 | { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | 'attributes' => [ |
67 | 67 | 'value' => '10', // default distance |
68 | 68 | 'data-default-index' => '1', |
69 | - 'data-searchbox' => -1, // hide the search box |
|
69 | + 'data-searchbox' => -1, // hide the search box |
|
70 | 70 | 'data-allowclear' => 'false', // allow to clear a selected value |
71 | 71 | 'data-placeholder' => /*@translate*/ 'Distance', |
72 | 72 | 'data-width' => '100%', |