Completed
Push — develop ( 037ef6...a650ad )
by Carsten
06:58
created
module/Core/src/Core/Entity/EntityInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * @throws \Core\Entity\Exception\OutOfBoundsException if the property does not exists.
73 73
      * @since 0.25
74 74
      */
75
-    public function notEmpty($property, array $args=[]);
75
+    public function notEmpty($property, array $args = []);
76 76
 
77 77
     /**
78 78
      * Checks, if this entity has a property.
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Tree/AbstractLeafs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 $parent = $nextParent;
72 72
             }
73 73
             $nameParts[] = $item->getName();
74
-            $items[]     = join(' | ' , $nameParts);
74
+            $items[]     = join(' | ', $nameParts);
75 75
 
76 76
         }
77 77
 
Please login to merge, or discard this patch.
module/Settings/src/Settings/Controller/IndexController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $mvcEvent->setParam('__settings_active_module', $moduleName);
67 67
         
68 68
         $formManager = $this->serviceLocator->get('FormElementManager');
69
-        $formName = $moduleName . '/SettingsForm';
69
+        $formName = $moduleName.'/SettingsForm';
70 70
         if (!$formManager->has($formName)) {
71 71
             $formName = "Settings/Form";
72 72
         }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $valid   = $form->isValid();
89 89
             $partial = $services->get('viewhelpermanager')->get('partial');
90 90
             $text    = $valid
91
-                     ?  /*@translate*/'Changes successfully saved'
91
+                     ? /*@translate*/'Changes successfully saved'
92 92
                      :  /*@translate*/'Changes could not be saved';
93 93
 
94 94
             $vars = array();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             return new JsonModel($vars);
109 109
         }
110 110
 
111
-        $vars['form']=$form;
111
+        $vars['form'] = $form;
112 112
         return $vars;
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/AbstractSettingsForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
         $this->setAttribute('method', 'post');
58 58
         $object = $this->getObject();
59
-        $fieldsetName = $object->getModuleName() . '/SettingsFieldset';
59
+        $fieldsetName = $object->getModuleName().'/SettingsFieldset';
60 60
         
61 61
         if ($this->formManager->has($fieldsetName)) {
62 62
             $fieldset = $this->formManager->get($fieldsetName);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $this->add($fieldset);
73 73
         
74 74
         $this->add($this->formManager->get('DefaultButtonsFieldset'));
75
-        $this->isBuild=true;
75
+        $this->isBuild = true;
76 76
     }
77 77
         
78 78
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     
91 91
     public function setName($name)
92 92
     {
93
-        parent::setName(strtolower($name) . '-settings');
93
+        parent::setName(strtolower($name).'-settings');
94 94
         $urlHelper = $this->formManager->getServiceLocator()
95 95
                      ->get('ViewHelperManager')
96 96
                      ->get('url');
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/SettingsFieldset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
 
75 75
             $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName;
76 76
 
77
-            if (is_array($inputLabel)){
78
-                $priority = isset($inputLabel[1])?$inputLabel[1]:0;
77
+            if (is_array($inputLabel)) {
78
+                $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0;
79 79
                 $inputLabel = $inputLabel[0];
80
-            }else{
80
+            } else {
81 81
                 $priority = 0;
82 82
             }
83 83
 
@@ -89,19 +89,19 @@  discard block
 block discarded – undo
89 89
                     ),
90 90
             );
91 91
             if (is_bool($value)) {
92
-                $input['type']= 'Checkbox';
92
+                $input['type'] = 'Checkbox';
93 93
                 $input['attributes']['checked'] = $value;
94 94
             } else {
95 95
                 $input['attributes']['value'] = $value;
96 96
             }
97
-            $this->add($input,['priority'=>$priority]);
97
+            $this->add($input, ['priority'=>$priority]);
98 98
             
99 99
         }
100 100
         
101 101
         foreach ($children as $name => $child) {
102 102
             $objectClass  = ltrim(get_class($settings), '\\');
103 103
             $moduleName   = substr($objectClass, 0, strpos($objectClass, '\\'));
104
-            $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset';
104
+            $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset';
105 105
             
106 106
             if ($this->formManager->has($fieldsetName)) {
107 107
                 $fieldset = $this->formManager->get($fieldsetName);
Please login to merge, or discard this patch.
module/Settings/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getConfig()
30 30
     {
31
-        return include __DIR__ . '/config/module.config.php';
31
+        return include __DIR__.'/config/module.config.php';
32 32
     }
33 33
 
34 34
     /**
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         return array(
43 43
             'Zend\Loader\StandardAutoloader' => array(
44 44
                 'namespaces' => array(
45
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
45
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
46 46
                 ),
47 47
             ),
48 48
         );
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/AdminController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     public function indexAction()
27 27
     {
28 28
         return $this->pagination([
29
-            'params'    => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ],
30
-            'form'      => [ 'as' => 'form', 'Jobs/AdminSearch' ],
31
-            'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ],
29
+            'params'    => ['Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']],
30
+            'form'      => ['as' => 'form', 'Jobs/AdminSearch'],
31
+            'paginator' => ['as' => 'jobs', 'Jobs/Admin'],
32 32
         ]);
33 33
     }
34 34
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     $oldStatus = $job->getStatus();
55 55
                     $job->changeStatus($post['statusselect'], '[System] Status changed via Admin GUI.');
56 56
                     $events = $services->get('Jobs/Events');
57
-                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]);
57
+                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]);
58 58
                 }
59 59
             }
60 60
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $form->bind($job);
68 68
 
69
-        return [ 'form' => $form, 'job' => $job ];
69
+        return ['form' => $form, 'job' => $job];
70 70
     }
71 71
     
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ManageController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         if (empty($user->info->email)) {
178 178
             return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail'));
179 179
         }
180
-        $userOrg            = $user->getOrganization();
180
+        $userOrg = $user->getOrganization();
181 181
         if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) {
182 182
             return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany'));
183 183
         }
@@ -212,11 +212,11 @@  discard block
 block discarded – undo
212 212
         $instanceForm       = null;
213 213
         $formErrorMessages = array();
214 214
 
215
-        if (isset($formIdentifier) &&  $request->isPost()) {
215
+        if (isset($formIdentifier) && $request->isPost()) {
216 216
             // at this point the form get instantiated and immediately accumulated
217 217
             $instanceForm = $form->getForm($formIdentifier);
218 218
             if (!isset($instanceForm)) {
219
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
219
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
220 220
             }
221 221
             // the id may be part of the postData, but it never should be altered
222 222
             $postData = $request->getPost();
@@ -270,20 +270,20 @@  discard block
 block discarded – undo
270 270
             $jobValid = false;
271 271
             $errorMessage[] = $this->translator->translate('Accept the Terms');
272 272
         }
273
-        $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]);
273
+        $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]);
274 274
         foreach ($result as $messages) {
275 275
             if (!$messages) {
276 276
                 continue;
277 277
             }
278 278
             if (!is_array($messages)) {
279
-                $messages = [ $messages ];
279
+                $messages = [$messages];
280 280
             }
281 281
 
282 282
             $errorMessage = array_merge($errorMessage, $messages);
283 283
             $jobValid = false;
284 284
         }
285 285
 
286
-        $errorMessage = '<br />' . implode('<br />', $errorMessage);
286
+        $errorMessage = '<br />'.implode('<br />', $errorMessage);
287 287
         if ($isAjax) {
288 288
             if ($instanceForm instanceof SummaryForm) {
289 289
                 $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
             } else {
292 292
                 $viewHelper = 'form';
293 293
             }
294
-            $viewHelperManager  = $serviceLocator->get('ViewHelperManager');
294
+            $viewHelperManager = $serviceLocator->get('ViewHelperManager');
295 295
             $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm);
296 296
             $viewModel = new JsonModel(
297 297
                 array(
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                     }
315 315
                 }
316 316
             } else {
317
-                $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]);
317
+                $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]);
318 318
                 // Job is deployed, some changes are now disabled
319 319
                 $form->enableAll();
320 320
             }
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
             $completionLink = $this->url()->fromRoute(
324 324
                 'lang/jobs/completion',
325
-                [ 'id' => $jobEntity->getId()]
325
+                ['id' => $jobEntity->getId()]
326 326
             );
327 327
 
328 328
             $viewModel = $this->getViewModel($form);
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
         // array with differences between the last snapshot and the actual entity
477 477
         // is remains Null if there is no snapshot
478 478
         // it will be an empty array if the snapshot and the actual entity do not differ
479
-        $diff           = null;
479
+        $diff = null;
480 480
         // preliminary difference, contain all differences
481 481
         $prelDiff = $this->entitySnapshot()->diff($jobEntity);
482 482
         if (isset($prelDiff)) {
@@ -514,21 +514,21 @@  discard block
 block discarded – undo
514 514
             'lang/jobs/view',
515 515
             array(),
516 516
             array('query' =>
517
-                      array( 'id' => $jobEntity->getId()))
517
+                      array('id' => $jobEntity->getId()))
518 518
         );
519 519
 
520 520
         $approvalLink = $this->url()->fromRoute(
521 521
             'lang/jobs/approval',
522 522
             array('state' => 'approved'),
523 523
             array('query' =>
524
-                      array( 'id' => $jobEntity->getId()))
524
+                      array('id' => $jobEntity->getId()))
525 525
         );
526 526
 
527 527
         $declineLink = $this->url()->fromRoute(
528 528
             'lang/jobs/approval',
529 529
             array('state' => 'declined'),
530 530
             array('query' =>
531
-                      array( 'id' => $jobEntity->getId()))
531
+                      array('id' => $jobEntity->getId()))
532 532
         );
533 533
 
534 534
         return array('job' => $jobEntity,
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
      */
546 546
     public function deactivateAction()
547 547
     {
548
-        $user           = $this->auth->getUser();
548
+        $user = $this->auth->getUser();
549 549
 
550 550
         $jobEntity = $this->initializeJob()->get($this->params());
551 551
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ViewModelTemplateFilterForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'lang/jobs/view',
49 49
             [],
50 50
             [
51
-                'query' => [ 'id' => $job->getId() ],
51
+                'query' => ['id' => $job->getId()],
52 52
                 'force_canonical' => true
53 53
             ]
54 54
         );
Please login to merge, or discard this patch.