Completed
Push — develop ( e649e8...88dc2a )
by
unknown
08:28
created
module/Applications/src/Applications/Form/SettingsFieldset.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
     public function init()
41 41
     {
42 42
         $this->setName('emails')
43
-             ->setLabel(/* @translate */ 'E-Mail Notifications');
43
+                ->setLabel(/* @translate */ 'E-Mail Notifications');
44 44
 
45 45
         $this->add(
46 46
             array('type' => 'Zend\Form\Element\Checkbox',
47 47
                 'name' => 'mailAccess',
48 48
                 'options' => array('label' => /* @translate */ 'receive E-Mail alert',
49
-                                   'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
49
+                                    'long_label' => /* @translate */ 'if checked, you\'ll be informed by mail about new applications.'),
50 50
                 )
51 51
         );
52 52
         $this->add(
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
             array('type' => 'Zend\Form\Element\Checkbox',
61 61
                 'name' => 'autoConfirmMail',
62 62
                 'options' => array('label' => /* @translate */ 'confirm application immidiatly after submit',
63
-                                   'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
63
+                                    'long_label' => /* @translate */ 'if checked, an application is immediatly confirmed. If unchecked confirmation is the duty of the recruiter.'),
64 64
                 )
65 65
         );
66 66
         $this->add(
67 67
             array('type' => 'Zend\Form\Element\Textarea',
68 68
                         'name' => 'mailConfirmationText',
69
-                         'options' => array('label' => /* @translate */ 'Confirmation mail text',
69
+                            'options' => array('label' => /* @translate */ 'Confirmation mail text',
70 70
                                             'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>' ))
71 71
         );
72 72
         
Please login to merge, or discard this patch.
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/ApplyController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 throw new \RuntimeException('Invalid application id.');
94 94
             }
95 95
 
96
-            $action     = 'process';
96
+            $action = 'process';
97 97
 
98 98
             $routeMatch->setParam('action', $action);
99 99
         } else {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $this->response->setStatusCode(410);
186 186
         $model = new ViewModel(
187
-            [ 'content' => /*@translate*/ 'Invalid apply id']
187
+            ['content' => /*@translate*/ 'Invalid apply id']
188 188
         );
189 189
         $model->setTemplate('applications/error/not-found');
190 190
         return $model;
@@ -193,12 +193,12 @@  discard block
 block discarded – undo
193 193
     public function indexAction()
194 194
     {
195 195
         /* @var \Applications\Form\Apply $form */
196
-        $form        = $this->container;
196
+        $form = $this->container;
197 197
         $serviceLocator = $this->getServiceLocator();
198 198
         $translator = $serviceLocator->get('Translator');
199 199
         /* @var \Auth\Form\SocialProfiles $profiles */
200 200
 
201
-        $profiles=$form->get('profiles');
201
+        $profiles = $form->get('profiles');
202 202
         /*
203 203
          * can we add the description to Applications\Form\Apply ?
204 204
          */
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
         }
295 295
 
296 296
         if ('sendmail' == $this->params()->fromQuery('do')) {
297
-            $jobEntity         = $application->getJob();
297
+            $jobEntity = $application->getJob();
298 298
 
299 299
             $mailData = array(
300 300
                 'application' => $application,
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
             ->revoke($this->auth()->getUser(), PermissionsInterface::PERMISSION_CHANGE)
323 323
             ->inherit($application->getJob()->getPermissions());
324 324
 
325
-        $events   = $services->get('Applications/Events');
326
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]);
325
+        $events = $services->get('Applications/Events');
326
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]);
327 327
 
328 328
         $model = new ViewModel(
329 329
             array(
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/Applications/src/Applications/Mail/NewApplication.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function setUser($user)
123 123
     {
124
-        $this->user=$user;
124
+        $this->user = $user;
125 125
         return $this;
126 126
     }
127 127
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     protected function setReciptient() {
139 139
         $workflowSettings = $this->getWorkflowSettings();
140
-        if ($workflowSettings->getAcceptApplicationByDepartmentManager()){
140
+        if ($workflowSettings->getAcceptApplicationByDepartmentManager()) {
141 141
             $departmentManagers = $this->getDepartmentManagers();
142 142
             foreach ($departmentManagers as $employee) { /* @var \Organizations\Entity\Employee $employee */
143 143
                 $this->setTo($employee->getUser()->getInfo()->getEmail(), $employee->getUser()->getInfo()->getDisplayName());
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         }
148 148
         if (true === $this->admin && $this->user->getSettings('Applications')->getMailBCC()) {
149 149
             $this->addBcc($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName());
150
-        } elseif($this->admin instanceof UserInterface && $this->admin->getSettings('Applications')->getMailBCC()) {
150
+        } elseif ($this->admin instanceof UserInterface && $this->admin->getSettings('Applications')->getMailBCC()) {
151 151
             $this->addBcc($this->admin->getInfo()->getEmail(), $this->admin->getInfo()->getDisplayName());
152 152
         }
153 153
     }
@@ -155,10 +155,10 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * @return bool|\Doctrine\Common\Collections\Collection
157 157
      */
158
-    protected function getDepartmentManagers(){
158
+    protected function getDepartmentManagers() {
159 159
         if (true === $this->admin) {
160 160
             return $this->user->getOrganization()->getOrganization()->getEmployeesByRole(EmployeeInterface::ROLE_DEPARTMENT_MANAGER);
161
-        } elseif($this->admin) {
161
+        } elseif ($this->admin) {
162 162
             return $this->admin->getOrganization()->getOrganization()->getEmployeesByRole(EmployeeInterface::ROLE_DEPARTMENT_MANAGER);
163 163
         } else {
164 164
             return false;
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.