Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Applications/src/Applications/Controller/IndexController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             $params->set('by', 'me');
41 41
         }
42 42
 
43
-         //default sorting
43
+            //default sorting
44 44
         if (!isset($params['sort'])) {
45 45
             $params['sort']="-date";
46 46
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
 
43 43
          //default sorting
44 44
         if (!isset($params['sort'])) {
45
-            $params['sort']="-date";
45
+            $params['sort'] = "-date";
46 46
         }
47 47
         $params->count = 5;
48
-        $params->pageRange=5;
48
+        $params->pageRange = 5;
49 49
 
50 50
         $this->paginationParams()->setParams('Applications\Index', $params);
51 51
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ManageController.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $application->changeStatus(
147 147
                 $application->getStatus(),
148 148
                 sprintf(/*@translate*/ 'Application was read by %s',
149
-                                       $this->auth()->getUser()->getInfo()->getDisplayName()));
149
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()));
150 150
         }
151 151
 
152 152
 
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
                         $viewModel->setVariables(
174 174
                             /*array(
175 175
                             'application' => */$this->getServiceLocator()
176
-                                              ->get('builders')
177
-                                              ->get('JsonApplication')
178
-                                              ->unbuild($application)
176
+                                                ->get('builders')
177
+                                                ->get('JsonApplication')
178
+                                                ->unbuild($application)
179 179
                         );
180 180
                         $viewModel->setVariable('isUnread', $applicationIsUnread);
181 181
                         $return = $viewModel;
@@ -297,12 +297,12 @@  discard block
 block discarded – undo
297 297
 
298 298
         /* @var ApplicationEvent $event */
299 299
         $event = $events->getEvent(ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE,
300
-                                   $this,
301
-                                   [
302
-                                       'application' => $application,
303
-                                       'status' => $status,
304
-                                       'user' => $this->auth()->getUser(),
305
-                                   ]
300
+                                    $this,
301
+                                    [
302
+                                        'application' => $application,
303
+                                        'status' => $status,
304
+                                        'user' => $this->auth()->getUser(),
305
+                                    ]
306 306
         );
307 307
 
308 308
         $event->setIsPostRequest($request->isPost());
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $emailAddress = $this->params()->fromQuery('email');
354 354
         /* @var \Applications\Entity\Application $application */
355 355
         $application  = $services->get('repositories')->get('Applications/Application')
356
-                                 ->find($this->params('id'));
356
+                                    ->find($this->params('id'));
357 357
         
358 358
         $this->acl($application, 'forward');
359 359
         
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
         }
86 86
         $statusElement->setValueOptions($statesForSelections);
87 87
         
88
-        $job = $params->job ? $jobRepository->find($params->job)  : null;
88
+        $job = $params->job ? $jobRepository->find($params->job) : null;
89 89
         $paginator = $this->paginator('Applications');
90 90
 
91 91
         if ($job) {
92
-            $params['job_title'] = '[' . $job->getApplyId() . '] ' . $job->getTitle();
92
+            $params['job_title'] = '['.$job->getApplyId().'] '.$job->getTitle();
93 93
         }
94 94
 
95 95
         $form->bind($params);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 
153 153
         
154
-        $format=$this->params()->fromQuery('format');
154
+        $format = $this->params()->fromQuery('format');
155 155
 
156 156
         if ($application->isDraft()) {
157 157
             $list = false;
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                    && ($network = $this->params()->fromQuery('network'))
239 239
                    && ($data    = $this->params()->fromPost('data'))
240 240
         ) {
241
-            $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network;
241
+            $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network;
242 242
             $profile      = new $profileClass();
243 243
             $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY));
244 244
         } else {
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         
358 358
         $this->acl($application, 'forward');
359 359
         
360
-        $translator   = $services->get('translator');
360
+        $translator = $services->get('translator');
361 361
          
362 362
         if (!$emailAddress) {
363 363
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
     {
399 399
         $id          = $this->params('id');
400 400
         $services    = $this->getServiceLocator();
401
-        $repositories= $services->get('repositories');
401
+        $repositories = $services->get('repositories');
402 402
         $repository  = $repositories->get('Applications/Application');
403 403
         $application = $repository->find($id);
404 404
         
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
 
409 409
         $this->acl($application, 'delete');
410 410
 
411
-        $events   = $services->get('Applications/Events');
412
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]);
411
+        $events = $services->get('Applications/Events');
412
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]);
413 413
         
414 414
         $repositories->remove($application);
415 415
         
Please login to merge, or discard this patch.
module/Core/src/Core/Form/LocalizationSettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             )
47 47
         );
48 48
 
49
-        $timezones=array_merge(
49
+        $timezones = array_merge(
50 50
             \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA),
51 51
             \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA),
52 52
             \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA),
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/ToggleButton.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             if (null === $buttonContent) {
29 29
                 throw new Exception\DomainException(
30 30
                     sprintf(
31
-                        '%s expects either button content as the second argument, ' .
31
+                        '%s expects either button content as the second argument, '.
32 32
                         'or that the element provided has a label value; neither found',
33 33
                         __METHOD__
34 34
                     )
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $checkedBoole   = ($value == 1 || $value == 'on');
52 52
         
53 53
         //$checked        = $checkedBoole?'checked="checked"':'';
54
-        $checkedClass   = $checkedBoole?'active"':'';
54
+        $checkedClass   = $checkedBoole ? 'active"' : '';
55 55
 
56 56
         $hiddenElement = '';
57 57
         if ($element->useHiddenElement()) {
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
             $element->setUseHiddenElement(false);
69 69
         }
70 70
 
71
-        $buttonContent = $hiddenElement . PHP_EOL
72
-                . '<div class="btn-group" data-toggle="buttons">' . PHP_EOL
73
-                . '<label class="btn btn-default ' . $checkedClass . '">' . PHP_EOL
74
-                . parent::render($element) . $buttonContent . PHP_EOL . '</label>' . PHP_EOL
75
-                . '</div>' . PHP_EOL;
71
+        $buttonContent = $hiddenElement.PHP_EOL
72
+                . '<div class="btn-group" data-toggle="buttons">'.PHP_EOL
73
+                . '<label class="btn btn-default '.$checkedClass.'">'.PHP_EOL
74
+                . parent::render($element).$buttonContent.PHP_EOL.'</label>'.PHP_EOL
75
+                . '</div>'.PHP_EOL;
76 76
         
77 77
         //$buttonContent = '<div><div class="processing yk-hidden"><span class="fa-spin yk-icon-spinner yk-icon"></span> ' .
78 78
         //    $translator->translate('processing', $this->getTranslatorTextDomain()) . '</div><div class="default">' . $escape($buttonContent) . '</div></div>';
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             ->getHybridAuth();
240 240
         /* @var $authProfile \Hybrid_User_Profile */
241 241
         $authProfile = $hybridAuth->authenticate($network)
242
-           ->getUserProfile();
242
+            ->getUserProfile();
243 243
 
244 244
         /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */
245 245
         $profile = $this->plugin('Auth/SocialProfiles')->fetch($network);
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         }
293 293
         
294 294
         return $this->redirect()
295
-           ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
295
+            ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
296 296
     }
297 297
 
298 298
     public function processPreviewAction()
Please login to merge, or discard this 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.
module/Jobs/src/Jobs/Entity/AtsMode.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@
 block discarded – undo
182 182
 	 */
183 183
 	public function setOneClickApply($oneClickApply)
184 184
 	{
185
-		$this->oneClickApply = (bool)$oneClickApply;
185
+		$this->oneClickApply = (bool) $oneClickApply;
186 186
 		
187 187
 		return $this;
188 188
 	}
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
         return $this->email;
209 209
     }
210 210
 
211
-	/**
212
-	 * @return bool
213
-	 */
214
-	public function getOneClickApply()
215
-	{
216
-		return $this->oneClickApply;
217
-	}
211
+    /**
212
+     * @return bool
213
+     */
214
+    public function getOneClickApply()
215
+    {
216
+        return $this->oneClickApply;
217
+    }
218 218
 
219 219
 
220 220
     /**
@@ -222,29 +222,29 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @return $this
224 224
      */
225
-	public function setOneClickApply($oneClickApply)
226
-	{
227
-		$this->oneClickApply = (bool)$oneClickApply;
225
+    public function setOneClickApply($oneClickApply)
226
+    {
227
+        $this->oneClickApply = (bool)$oneClickApply;
228 228
 		
229
-		return $this;
230
-	}
231
-
232
-	/**
233
-	 * @return array
234
-	 */
235
-	public function getOneClickApplyProfiles()
236
-	{
237
-		return $this->oneClickApplyProfiles;
238
-	}
239
-
240
-	/**
241
-	 * @param array $oneClickApplyProfiles
242
-	 * @return AtsMode
243
-	 */
244
-	public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
-	{
246
-		$this->oneClickApplyProfiles = $oneClickApplyProfiles;
229
+        return $this;
230
+    }
231
+
232
+    /**
233
+     * @return array
234
+     */
235
+    public function getOneClickApplyProfiles()
236
+    {
237
+        return $this->oneClickApplyProfiles;
238
+    }
239
+
240
+    /**
241
+     * @param array $oneClickApplyProfiles
242
+     * @return AtsMode
243
+     */
244
+    public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
+    {
246
+        $this->oneClickApplyProfiles = $oneClickApplyProfiles;
247 247
 		
248
-		return $this;
249
-	}
248
+        return $this;
249
+    }
250 250
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/View/Helper/ApplyButtons.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             'sendImmediately' => false
72 72
         ], $options);
73 73
         $view = $this->view;
74
-		$currentTemplate = $view->viewModel()
74
+        $currentTemplate = $view->viewModel()
75 75
             ->getCurrent()
76 76
             ->getTemplate();
77 77
         $partial = dirname($currentTemplate) . '/' . $options['partial'];
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
             $label = $options['oneClickLabel'] ?: $view->translate('Apply with %s');
88 88
             
89 89
             foreach ($data['oneClickProfiles'] as $network) {
90
-				$variables['oneClick'][] = [
90
+                $variables['oneClick'][] = [
91 91
                     'label' => sprintf($label, $network),
92 92
                     'url' => $view->url('lang/apply-one-click', ['applyId' => $data['applyId'], 'network' => $network, 'immediately' => $options['sendImmediately'] ?: null], ['force_canonical' => true]),
93
-				    'network' => $network
93
+                    'network' => $network
94 94
                 ];
95 95
             }
96 96
         }
@@ -98,22 +98,22 @@  discard block
 block discarded – undo
98 98
         return $view->partial($partial, $variables);
99 99
     }
100 100
     
101
-	/**
102
-	 * @return string
103
-	 */
104
-	public function getPartial()
105
-	{
106
-		return $this->partial;
107
-	}
101
+    /**
102
+     * @return string
103
+     */
104
+    public function getPartial()
105
+    {
106
+        return $this->partial;
107
+    }
108 108
 
109
-	/**
110
-	 * @param string $partial
111
-	 * @return ApplyButtons
112
-	 */
113
-	public function setPartial($partial)
114
-	{
115
-		$this->partial = $partial;
109
+    /**
110
+     * @param string $partial
111
+     * @return ApplyButtons
112
+     */
113
+    public function setPartial($partial)
114
+    {
115
+        $this->partial = $partial;
116 116
 		
117
-		return $this;
118
-	}
117
+        return $this;
118
+    }
119 119
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 		$currentTemplate = $view->viewModel()
75 75
             ->getCurrent()
76 76
             ->getTemplate();
77
-        $partial = dirname($currentTemplate) . '/' . $options['partial'];
77
+        $partial = dirname($currentTemplate).'/'.$options['partial'];
78 78
         
79 79
         if (!$options['oneClickOnly'] && $data['uri']) {
80 80
             $variables['default'] = [
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Listener/ExceptionStrategyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             break;
38 38
         }
39 39
         
40
-        $config   = $serviceLocator->get('Config');
40
+        $config = $serviceLocator->get('Config');
41 41
          
42 42
         if (isset($config['view_manager'])) {
43 43
             if (isset($config['view_manager']['display_exceptions'])) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/DeactivatedUserListener.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         ];
34 34
         
35 35
         // do nothing for allowed routes
36
-		if (in_array($routeName, $allowedRoutes))
36
+        if (in_array($routeName, $allowedRoutes))
37 37
         {
38 38
             return;
39 39
         }
Please login to merge, or discard this patch.