@@ -191,9 +191,9 @@ |
||
191 | 191 | $location = new Location(); |
192 | 192 | $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
193 | 193 | $location->setCountry($locData['country']) |
194 | - ->setRegion($locData['region']) |
|
195 | - ->setCity($locData['city']) |
|
196 | - ->setCoordinates(new Point($coords)); |
|
194 | + ->setRegion($locData['region']) |
|
195 | + ->setCity($locData['city']) |
|
196 | + ->setCoordinates(new Point($coords)); |
|
197 | 197 | |
198 | 198 | $jobLocations->add($location); |
199 | 199 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId)); |
85 | 85 | if (!isset($entity)) { |
86 | 86 | // new Job (the more likely branch) |
87 | - $entity =$repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
87 | + $entity = $repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
88 | 88 | } else { |
89 | 89 | $createdJob = false; |
90 | 90 | } |
@@ -130,10 +130,10 @@ discard block |
||
130 | 130 | $entity->getPermissions()->grant($group, PermissionsInterface::PERMISSION_VIEW); |
131 | 131 | } |
132 | 132 | $result['isSaved'] = true; |
133 | - $log->info('Jobs/manage/saveJob [user: ' . $user->getLogin() . ']:' . var_export($p, true)); |
|
133 | + $log->info('Jobs/manage/saveJob [user: '.$user->getLogin().']:'.var_export($p, true)); |
|
134 | 134 | |
135 | 135 | if (!empty($params->companyId)) { |
136 | - $companyId = $params->companyId . $loginSuffix; |
|
136 | + $companyId = $params->companyId.$loginSuffix; |
|
137 | 137 | $repOrganization = $repositories->get('Organizations/Organization'); |
138 | 138 | $hydratorManager = $services->get('HydratorManager'); |
139 | 139 | /* @var \Organizations\Entity\Hydrator\OrganizationHydrator $hydrator */ |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $jobLocations->clear(); |
190 | 190 | foreach ($locations as $locData) { |
191 | 191 | $location = new Location(); |
192 | - $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
|
192 | + $coords = array_map(function($i) { return (float) $i; }, $locData['coordinates']); |
|
193 | 193 | $location->setCountry($locData['country']) |
194 | 194 | ->setRegion($locData['region']) |
195 | 195 | ->setCity($locData['city']) |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | break; |
255 | 255 | } |
256 | 256 | if (array_key_exists($portal, $result['portals'])) { |
257 | - throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for ' . $portal); |
|
257 | + throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for '.$portal); |
|
258 | 258 | } |
259 | 259 | $result['portals'][$portal] = $status; |
260 | 260 | } else { |
@@ -267,16 +267,16 @@ discard block |
||
267 | 267 | } |
268 | 268 | } |
269 | 269 | } else { |
270 | - $log->info('Jobs/manage/saveJob [error: ' . $form->getMessages() . ']:' . var_export($p, true)); |
|
270 | + $log->info('Jobs/manage/saveJob [error: '.$form->getMessages().']:'.var_export($p, true)); |
|
271 | 271 | $result['valid Error'] = $form->getMessages(); |
272 | 272 | } |
273 | 273 | } |
274 | 274 | } else { |
275 | - $log->info('Jobs/manage/saveJob [error: session lost]:' . var_export($p, true)); |
|
275 | + $log->info('Jobs/manage/saveJob [error: session lost]:'.var_export($p, true)); |
|
276 | 276 | $result['message'] = 'session_id is lost'; |
277 | 277 | } |
278 | 278 | } catch (\Exception $e) { |
279 | - $result['message'] = 'exception occured: ' . $e->getMessage(); |
|
279 | + $result['message'] = 'exception occured: '.$e->getMessage(); |
|
280 | 280 | } |
281 | 281 | //$services->get('Core/Log')->info('Jobs/manage/saveJob result:' . PHP_EOL . var_export($p, True)); |
282 | 282 | return new JsonModel($result); |