Completed
Push — develop ( 2e5ccf...97dfc2 )
by
unknown
24:02 queued 16:27
created
module/Jobs/src/Jobs/Controller/ManageController.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
     protected function save()
228 228
     {
229 229
 		$formEvents = $this->jobFormEvents;
230
-        $user               = $this->auth->getUser();
230
+        $user = $this->auth->getUser();
231 231
         if (empty($user->getInfo()->getEmail())) {
232 232
             return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail'));
233 233
         }
234
-        $userOrg            = $user->getOrganization();
234
+        $userOrg = $user->getOrganization();
235 235
         if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) {
236 236
             return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany'));
237 237
         }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         }
262 262
 
263 263
 
264
-        $viewModel          = null;
264
+        $viewModel = null;
265 265
         $this->acl($jobEntity, 'edit');
266 266
         if ($status = $params->fromQuery('status')) {
267 267
             $this->changeStatus($jobEntity, $status);
@@ -273,11 +273,11 @@  discard block
 block discarded – undo
273 273
         $instanceForm       = null;
274 274
         $formErrorMessages = array();
275 275
 
276
-        if (isset($formIdentifier) &&  $request->isPost()) {
276
+        if (isset($formIdentifier) && $request->isPost()) {
277 277
             // at this point the form get instantiated and immediately accumulated
278 278
             $instanceForm = $form->getForm($formIdentifier);
279 279
             if (!isset($instanceForm)) {
280
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
280
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
281 281
             }
282 282
             // the id may be part of the postData, but it never should be altered
283 283
             $postData = $request->getPost();
@@ -331,20 +331,20 @@  discard block
 block discarded – undo
331 331
             $jobValid = false;
332 332
             $errorMessage[] = $this->translator->translate('Accept the Terms');
333 333
         }
334
-        $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]);
334
+        $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]);
335 335
         foreach ($result as $messages) {
336 336
             if (!$messages) {
337 337
                 continue;
338 338
             }
339 339
             if (!is_array($messages)) {
340
-                $messages = [ $messages ];
340
+                $messages = [$messages];
341 341
             }
342 342
 
343 343
             $errorMessage = array_merge($errorMessage, $messages);
344 344
             $jobValid = false;
345 345
         }
346 346
 
347
-        $errorMessage = '<br />' . implode('<br />', $errorMessage);
347
+        $errorMessage = '<br />'.implode('<br />', $errorMessage);
348 348
         if ($isAjax) {
349 349
             if ($instanceForm instanceof SummaryForm) {
350 350
                 $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY);
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
             } else {
353 353
                 $viewHelper = 'form';
354 354
             }
355
-            $viewHelperManager  = $this->viewHelper;
355
+            $viewHelperManager = $this->viewHelper;
356 356
             $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm);
357 357
             $viewModel = new JsonModel(
358 358
                 array(
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                     }
377 377
                 }
378 378
             } else {
379
-                $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]);
379
+                $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]);
380 380
                 // Job is deployed, some changes are now disabled
381 381
                 $form->enableAll();
382 382
             }
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 
385 385
             $completionLink = $this->url()->fromRoute(
386 386
                 'lang/jobs/completion',
387
-                [ 'id' => $jobEntity->getId()]
387
+                ['id' => $jobEntity->getId()]
388 388
             );
389 389
 
390 390
             $viewModel = $this->getViewModel($form);
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     protected function getFormular($job)
451 451
     {
452 452
         /* @var $forms \Zend\Form\FormElementManager\FormElementManagerV3Polyfill */
453
-        $forms    = $this->formManager;
453
+        $forms = $this->formManager;
454 454
         /* @var $container \Jobs\Form\Job */
455 455
 
456 456
         $container = $forms->get(
@@ -555,11 +555,11 @@  discard block
 block discarded – undo
555 555
         // array with differences between the last snapshot and the actual entity
556 556
         // is remains Null if there is no snapshot
557 557
         // it will be an empty array if the snapshot and the actual entity do not differ
558
-        $diff           = null;
558
+        $diff = null;
559 559
 
560 560
 
561 561
         if ($params == 'declined') {
562
-            if ($jobEntity instanceOf JobSnapshot)  {
562
+            if ($jobEntity instanceOf JobSnapshot) {
563 563
                 $jobEntity->getOriginalEntity()->changeStatus(
564 564
                     Status::ACTIVE,
565 565
                     sprintf(
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      */
635 635
     public function deactivateAction()
636 636
     {
637
-        $user           = $this->auth->getUser();
637
+        $user = $this->auth->getUser();
638 638
 
639 639
         $jobEntity = $this->initializeJob()->get($this->params());
640 640
 
Please login to merge, or discard this patch.
module/Cv/src/Cv/Factory/Form/LanguageSkillCollectionFactory.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 
10 10
 class LanguageSkillCollectionFactory implements FactoryInterface
11 11
 {
12
-	/**
13
-	 * Create a CollectionContainer form
14
-	 *
15
-	 * @param ContainerInterface $container
16
-	 * @param string $requestedName
17
-	 * @param array|null $options
18
-	 *
19
-	 * @return \Core\Form\CollectionContainer
20
-	 */
12
+    /**
13
+     * Create a CollectionContainer form
14
+     *
15
+     * @param ContainerInterface $container
16
+     * @param string $requestedName
17
+     * @param array|null $options
18
+     *
19
+     * @return \Core\Form\CollectionContainer
20
+     */
21 21
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
22
-	    $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
23
-	    $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
22
+        $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
23
+        $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
24 24
 	
25
-	    return $collectionContainer;
25
+        return $collectionContainer;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	 * @return \Core\Form\CollectionContainer
20 20
 	 */
21 21
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
22
-	    $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
22
+	    $collectionContainer = new CollectionContainer('Cv/LanguageSkillForm', new Language());
23 23
 	    $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
24 24
 	
25 25
 	    return $collectionContainer;
Please login to merge, or discard this patch.