Completed
Push — develop ( 60c2a6...7c4b2f )
by Carsten
61:42 queued 47:32
created
module/Jobs/src/Jobs/Controller/ImportController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                         $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId));
106 106
                         if (!isset($entity)) {
107 107
                             // new Job (the more likely branch)
108
-                            $entity =$repositoriesJob->create(array("applyId" => (string) $applyId));
108
+                            $entity = $repositoriesJob->create(array("applyId" => (string) $applyId));
109 109
                         } else {
110 110
                             $createdJob = false;
111 111
                         }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/JobboardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         }
97 97
 
98 98
         if (!isset($params['sort'])) {
99
-            $params['sort']='-date';
99
+            $params['sort'] = '-date';
100 100
         }
101 101
 
102 102
         $this->searchForm->setAttribute('action', $url);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ManageController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         if (empty($user->info->email)) {
141 141
             return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail'));
142 142
         }
143
-        $userOrg            = $user->getOrganization();
143
+        $userOrg = $user->getOrganization();
144 144
         if (!$userOrg->hasAssociation()) {
145 145
             return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany'));
146 146
         }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $request            = $this->getRequest();
155 155
         $params             = $this->params();
156 156
         $formIdentifier     = $params->fromQuery('form');
157
-        $pageIdentifier     = (int) $params->fromQuery('page', array_key_exists('page', $parameter)?$parameter['page']:0);
157
+        $pageIdentifier     = (int) $params->fromQuery('page', array_key_exists('page', $parameter) ? $parameter['page'] : 0);
158 158
         $jobEntity          = $this->getJob();
159 159
         $viewModel          = null;
160 160
         $this->acl($jobEntity, 'edit');
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $instanceForm       = null;
166 166
         $viewHelperManager  = $serviceLocator->get('ViewHelperManager');
167 167
         $formErrorMessages = array();
168
-        if (isset($formIdentifier) &&  $request->isPost()) {
168
+        if (isset($formIdentifier) && $request->isPost()) {
169 169
             // at this point the form get instantiated and immediately accumulated
170 170
             $instanceForm = $form->getForm($formIdentifier);
171 171
             if (!isset($instanceForm)) {
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $id_fromQuery   = $this->params()->fromQuery('id', 0);
354 354
         $id_fromSubForm = $this->params()->fromPost('job', 0);
355 355
         $user           = $this->auth()->getUser();
356
-        $id             = empty($id_fromRoute)? (empty($id_fromQuery)?$id_fromSubForm:$id_fromQuery) : $id_fromRoute;
356
+        $id             = empty($id_fromRoute) ? (empty($id_fromQuery) ? $id_fromSubForm : $id_fromQuery) : $id_fromRoute;
357 357
 
358 358
         if (empty($id) && $allowDraft) {
359 359
             $this->acl('Jobs/Manage', 'new');
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
             return $job;
369 369
         }
370 370
 
371
-        $jobEntity      = $repository->find($id);
371
+        $jobEntity = $repository->find($id);
372 372
         if (!$jobEntity) {
373 373
             throw new \RuntimeException('No job found with id "' . $id . '"');
374 374
         }
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
         // array with differences between the last snapshot and the actual entity
451 451
         // is remains Null if there is no snapshot
452 452
         // it will be an empty array if the snapshot and the actual entity do not differ
453
-        $diff           = null;
453
+        $diff = null;
454 454
         // preliminary difference, contain all differences
455 455
         $prelDiff = $this->entitySnapshot()->diff($jobEntity);
456 456
         if (isset($prelDiff)) {
@@ -486,21 +486,21 @@  discard block
 block discarded – undo
486 486
             'lang/jobs/view',
487 487
             array(),
488 488
             array('query' =>
489
-                      array( 'id' => $jobEntity->id))
489
+                      array('id' => $jobEntity->id))
490 490
         );
491 491
 
492 492
         $approvalLink = $this->url()->fromRoute(
493 493
             'lang/jobs/approval',
494 494
             array('state' => 'approved'),
495 495
             array('query' =>
496
-                      array( 'id' => $jobEntity->id))
496
+                      array('id' => $jobEntity->id))
497 497
         );
498 498
 
499 499
         $declineLink = $this->url()->fromRoute(
500 500
             'lang/jobs/approval',
501 501
             array('state' => 'declined'),
502 502
             array('query' =>
503
-                      array( 'id' => $jobEntity->id))
503
+                      array('id' => $jobEntity->id))
504 504
         );
505 505
 
506 506
         return array('job' => $jobEntity,
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
     public function templateAction()
536 536
     {
537 537
         $serviceLocator          = $this->getServiceLocator();
538
-        $translator          = $serviceLocator->get('translator');
538
+        $translator = $serviceLocator->get('translator');
539 539
         try {
540 540
             $jobEntity           = $this->getJob();
541 541
             $template            = $this->params('template', 'default');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Hydrator/JsonJobsEntityHydratorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      *
23 23
      */
24 24
     protected function prepareHydrator() {
25
-        $this->hydrator->setExcludeMethods(array('user', 'applications', 'termsAccepted', 'atsEnabled', 'permissions'));;
25
+        $this->hydrator->setExcludeMethods(array('user', 'applications', 'termsAccepted', 'atsEnabled', 'permissions')); ;
26 26
     }
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Job.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
             if ($removePermissions) {
514 514
                 $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL);
515 515
             }
516
-            $this->user=null;
516
+            $this->user = null;
517 517
         }
518 518
 
519 519
         return $this;
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
      */
1004 1004
     public function getSnapshotGenerator()
1005 1005
     {
1006
-        $generator = array (
1006
+        $generator = array(
1007 1007
             'hydrator' => '',
1008 1008
             'target' => 'Jobs\Entity\JobSnapshot',
1009 1009
             'exclude' => array('permissions', 'history')
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/JobInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
      *
199 199
      * @return UserInterface $user
200 200
      */
201
-    public function getUser() ;
201
+    public function getUser();
202 202
 
203 203
     /**
204 204
      * Gets the link to the application form
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/JobSnapshot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,14 +303,14 @@
 block discarded – undo
303 303
     {
304 304
         $methods = array_filter(
305 305
             get_class_methods($source),
306
-            function ($v) {
306
+            function($v) {
307 307
                 return 3 < strlen($v) && strpos($v, 'get') === 0;
308 308
             }
309 309
         );
310 310
         // these attributes don't need to get copied
311 311
         $methods = array_diff($methods, array('getId', 'getHydrator', 'getHiringOrganizations'));
312 312
         $methods = array_map(
313
-            function ($v) {
313
+            function($v) {
314 314
                 return lcfirst(substr($v, 3));
315 315
             },
316 316
             $methods
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Status.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         if (!defined($constant)) {
57 57
             throw new \DomainException('Unknown status: ' . $status);
58 58
         }
59
-        $this->name=constant($constant);
60
-        $this->order=$this->getOrder();
59
+        $this->name = constant($constant);
60
+        $this->order = $this->getOrder();
61 61
     }
62 62
 
63 63
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getName()
68 68
     {
69
-        return isset($this->name)?$this->name:'';
69
+        return isset($this->name) ? $this->name : '';
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/StatusInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * A Job is accepted an is going to be published
38 38
      */
39
-    const PUBLISH  = /*@translate*/ 'publish';
39
+    const PUBLISH = /*@translate*/ 'publish';
40 40
 
41 41
     /**
42 42
      * A Job is online
43 43
      */
44
-    const ACTIVE  = /*@translate*/ 'active';
44
+    const ACTIVE = /*@translate*/ 'active';
45 45
 
46 46
     /**
47 47
      * A job was is set inactive
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * A job was expired
53 53
      */
54
-    const EXPIRED  = /*@translate*/ 'expired';
54
+    const EXPIRED = /*@translate*/ 'expired';
55 55
     
56 56
     public function __construct($status = self::CREATED);
57 57
 
Please login to merge, or discard this patch.