Completed
Push — develop ( 869ee0...da6f13 )
by
unknown
13:58
created
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 throw new \RuntimeException('Invalid application id.');
92 92
             }
93 93
 
94
-            $action     = 'process';
94
+            $action = 'process';
95 95
 
96 96
             $routeMatch->setParam('action', $action);
97 97
         } else {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $this->response->setStatusCode(410);
184 184
         $model = new ViewModel(
185
-            [ 'content' => /*@translate*/ 'Invalid apply id']
185
+            ['content' => /*@translate*/ 'Invalid apply id']
186 186
         );
187 187
         $model->setTemplate('applications/error/not-found');
188 188
         return $model;
@@ -360,13 +360,13 @@  discard block
 block discarded – undo
360 360
         }
361 361
 
362 362
         if ('previewmail' == $this->params()->fromQuery('do')) {
363
-            $this->mailer('Applications/CarbonCopy', [ 'application' => $application], true);
363
+            $this->mailer('Applications/CarbonCopy', ['application' => $application], true);
364 364
             $this->notification()->success(/*@translate*/ 'Mail has been send');
365 365
             return new JsonModel();
366 366
         }
367 367
 
368 368
         if ('sendmail' == $this->params()->fromQuery('do')) {
369
-            $jobEntity         = $application->getJob();
369
+            $jobEntity = $application->getJob();
370 370
 
371 371
             $mailData = array(
372 372
                 'application' => $application,
@@ -394,8 +394,8 @@  discard block
 block discarded – undo
394 394
             ->revoke($this->auth()->getUser(), PermissionsInterface::PERMISSION_CHANGE)
395 395
             ->inherit($application->getJob()->getPermissions());
396 396
 
397
-        $events   = $services->get('Applications/Events');
398
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]);
397
+        $events = $services->get('Applications/Events');
398
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]);
399 399
 
400 400
         $model = new ViewModel(
401 401
             array(
Please login to merge, or discard this patch.