@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId)); |
| 83 | 83 | if (!isset($entity)) { |
| 84 | 84 | // new Job (the more likely branch) |
| 85 | - $entity =$repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
| 85 | + $entity = $repositoriesJob->create(array("applyId" => (string) $applyId)); |
|
| 86 | 86 | } else { |
| 87 | 87 | $createdJob = false; |
| 88 | 88 | } |
@@ -125,10 +125,10 @@ discard block |
||
| 125 | 125 | $entity->getPermissions()->grant($group, PermissionsInterface::PERMISSION_VIEW); |
| 126 | 126 | } |
| 127 | 127 | $result['isSaved'] = true; |
| 128 | - $log->info('Jobs/manage/saveJob [user: ' . $user->login . ']:' . var_export($p, true)); |
|
| 128 | + $log->info('Jobs/manage/saveJob [user: '.$user->login.']:'.var_export($p, true)); |
|
| 129 | 129 | |
| 130 | 130 | if (!empty($params->companyId)) { |
| 131 | - $companyId = $params->companyId . $loginSuffix; |
|
| 131 | + $companyId = $params->companyId.$loginSuffix; |
|
| 132 | 132 | $repOrganization = $repositories->get('Organizations/Organization'); |
| 133 | 133 | $hydratorManager = $services->get('hydratorManager'); |
| 134 | 134 | /* @var \Organizations\Entity\Hydrator\OrganizationHydrator $hydrator */ |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $jobLocations->clear(); |
| 180 | 180 | foreach ($locations as $locData) { |
| 181 | 181 | $location = new Location(); |
| 182 | - $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']); |
|
| 182 | + $coords = array_map(function($i) { return (float) $i; }, $locData['coordinates']); |
|
| 183 | 183 | $location->setCountry($locData['country']) |
| 184 | 184 | ->setRegion($locData['region']) |
| 185 | 185 | ->setCity($locData['city']) |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | break; |
| 245 | 245 | } |
| 246 | 246 | if (array_key_exists($portal, $result['portals'])) { |
| 247 | - throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for ' . $portal); |
|
| 247 | + throw new \RuntimeException('Publisher-Events (internal error): There are two publisher registered for '.$portal); |
|
| 248 | 248 | } |
| 249 | 249 | $result['portals'][$portal] = $status; |
| 250 | 250 | } else { |
@@ -257,16 +257,16 @@ discard block |
||
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | } else { |
| 260 | - $log->info('Jobs/manage/saveJob [error: ' . $form->getMessages() . ']:' . var_export($p, true)); |
|
| 260 | + $log->info('Jobs/manage/saveJob [error: '.$form->getMessages().']:'.var_export($p, true)); |
|
| 261 | 261 | $result['valid Error'] = $form->getMessages(); |
| 262 | 262 | } |
| 263 | 263 | } |
| 264 | 264 | } else { |
| 265 | - $log->info('Jobs/manage/saveJob [error: session lost]:' . var_export($p, true)); |
|
| 265 | + $log->info('Jobs/manage/saveJob [error: session lost]:'.var_export($p, true)); |
|
| 266 | 266 | $result['message'] = 'session_id is lost'; |
| 267 | 267 | } |
| 268 | 268 | } catch (\Exception $e) { |
| 269 | - $result['message'] = 'exception occured: ' . $e->getMessage(); |
|
| 269 | + $result['message'] = 'exception occured: '.$e->getMessage(); |
|
| 270 | 270 | } |
| 271 | 271 | //$services->get('Core/Log')->info('Jobs/manage/saveJob result:' . PHP_EOL . var_export($p, True)); |
| 272 | 272 | return new JsonModel($result); |