@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | if (empty($user->info->email)) { |
| 179 | 179 | return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail')); |
| 180 | 180 | } |
| 181 | - $userOrg = $user->getOrganization(); |
|
| 181 | + $userOrg = $user->getOrganization(); |
|
| 182 | 182 | if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) { |
| 183 | 183 | return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany')); |
| 184 | 184 | } |
@@ -213,11 +213,11 @@ discard block |
||
| 213 | 213 | $instanceForm = null; |
| 214 | 214 | $formErrorMessages = array(); |
| 215 | 215 | |
| 216 | - if (isset($formIdentifier) && $request->isPost()) { |
|
| 216 | + if (isset($formIdentifier) && $request->isPost()) { |
|
| 217 | 217 | // at this point the form get instantiated and immediately accumulated |
| 218 | 218 | $instanceForm = $form->getForm($formIdentifier); |
| 219 | 219 | if (!isset($instanceForm)) { |
| 220 | - throw new \RuntimeException('No form found for "' . $formIdentifier . '"'); |
|
| 220 | + throw new \RuntimeException('No form found for "'.$formIdentifier.'"'); |
|
| 221 | 221 | } |
| 222 | 222 | // the id may be part of the postData, but it never should be altered |
| 223 | 223 | $postData = $request->getPost(); |
@@ -271,20 +271,20 @@ discard block |
||
| 271 | 271 | $jobValid = false; |
| 272 | 272 | $errorMessage[] = $this->translator->translate('Accept the Terms'); |
| 273 | 273 | } |
| 274 | - $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]); |
|
| 274 | + $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]); |
|
| 275 | 275 | foreach ($result as $messages) { |
| 276 | 276 | if (!$messages) { |
| 277 | 277 | continue; |
| 278 | 278 | } |
| 279 | 279 | if (!is_array($messages)) { |
| 280 | - $messages = [ $messages ]; |
|
| 280 | + $messages = [$messages]; |
|
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | $errorMessage = array_merge($errorMessage, $messages); |
| 284 | 284 | $jobValid = false; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - $errorMessage = '<br />' . implode('<br />', $errorMessage); |
|
| 287 | + $errorMessage = '<br />'.implode('<br />', $errorMessage); |
|
| 288 | 288 | if ($isAjax) { |
| 289 | 289 | if ($instanceForm instanceof SummaryForm) { |
| 290 | 290 | $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY); |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | } else { |
| 293 | 293 | $viewHelper = 'form'; |
| 294 | 294 | } |
| 295 | - $viewHelperManager = $serviceLocator->get('ViewHelperManager'); |
|
| 295 | + $viewHelperManager = $serviceLocator->get('ViewHelperManager'); |
|
| 296 | 296 | $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm); |
| 297 | 297 | $viewModel = new JsonModel( |
| 298 | 298 | array( |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | } |
| 317 | 317 | } else { |
| 318 | - $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]); |
|
| 318 | + $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]); |
|
| 319 | 319 | // Job is deployed, some changes are now disabled |
| 320 | 320 | $form->enableAll(); |
| 321 | 321 | } |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | |
| 324 | 324 | $completionLink = $this->url()->fromRoute( |
| 325 | 325 | 'lang/jobs/completion', |
| 326 | - [ 'id' => $jobEntity->getId()] |
|
| 326 | + ['id' => $jobEntity->getId()] |
|
| 327 | 327 | ); |
| 328 | 328 | |
| 329 | 329 | $viewModel = $this->getViewModel($form); |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | { |
| 431 | 431 | $serviceLocator = $this->serviceLocator; |
| 432 | 432 | |
| 433 | - $job = $this->initializeJob()->get($this->params(), false, true ); |
|
| 433 | + $job = $this->initializeJob()->get($this->params(), false, true); |
|
| 434 | 434 | |
| 435 | 435 | if ($job->isDraft()) { |
| 436 | 436 | |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | // array with differences between the last snapshot and the actual entity |
| 484 | 484 | // is remains Null if there is no snapshot |
| 485 | 485 | // it will be an empty array if the snapshot and the actual entity do not differ |
| 486 | - $diff = null; |
|
| 486 | + $diff = null; |
|
| 487 | 487 | |
| 488 | 488 | |
| 489 | 489 | if ($params == 'declined') { |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | */ |
| 543 | 543 | public function deactivateAction() |
| 544 | 544 | { |
| 545 | - $user = $this->auth->getUser(); |
|
| 545 | + $user = $this->auth->getUser(); |
|
| 546 | 546 | |
| 547 | 547 | $jobEntity = $this->initializeJob()->get($this->params()); |
| 548 | 548 | |