Completed
Pull Request — develop (#349)
by ANTHONIUS
06:14
created
module/Jobs/src/Jobs/Listener/Publisher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,14 +171,14 @@
 block discarded – undo
171 171
                 $jsonLastError = json_last_error();
172 172
                 if (json_last_error() != JSON_ERROR_NONE) {
173 173
                     // not able to decode json
174
-                    $log->info('RestCall Response not Json [errorCode: ' . $jsonLastError . ']: ' . var_export($body, true));
174
+                    $log->info('RestCall Response not Json [errorCode: '.$jsonLastError.']: '.var_export($body, true));
175 175
                 } else {
176 176
                     // does the provider want to have an own ID for Identification ?
177 177
                     $response_referenceUpdate = $decodedBody->referenceUpdate;
178 178
                     $response_externalIdUpdate = $decodedBody->applyIdUpdate;
179 179
 
180 180
                     if ($publisher->externalId != $response_externalIdUpdate || $publisher->reference != $response_referenceUpdate) {
181
-                        $log->info('RestCall changed externalID [' . var_export($publisher->externalId, true) . ' => ' . var_export($response_externalIdUpdate, true) . '], reference  [' . var_export($publisher->reference, true) . ' => ' . var_export($response_referenceUpdate, true) . ']');
181
+                        $log->info('RestCall changed externalID ['.var_export($publisher->externalId, true).' => '.var_export($response_externalIdUpdate, true).'], reference  ['.var_export($publisher->reference, true).' => '.var_export($response_referenceUpdate, true).']');
182 182
                         $publisher->reference = $response_referenceUpdate;
183 183
                         $publisher->externalId = $response_externalIdUpdate;
184 184
                         $serviceManager->get('repositories')->store($entity);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/AdminController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             return new JsonModel([
72 72
                 'valid' => $valid,
73 73
                 'errors' => $errors
74
-                                 ]);
74
+                                    ]);
75 75
         }
76 76
 
77 77
         $form->bind($job);
Please login to merge, or discard this 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/AssignUserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $job = $this->repository->find($id);
63 63
 
64 64
         if (!$job) {
65
-            throw new \RuntimeException('No job found with id "' . $id . '"');
65
+            throw new \RuntimeException('No job found with id "'.$id.'"');
66 66
         }
67 67
 
68 68
         $this->acl($job, 'edit');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Filter/ViewModelTemplateFilterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
             $filter->setViewHelperForm($viewHelperForm);
59 59
         }
60 60
         if (!isset($filter)) {
61
-            throw new \InvalidArgumentException(get_class($element) . ' cannot be used to initialize a template');
61
+            throw new \InvalidArgumentException(get_class($element).' cannot be used to initialize a template');
62 62
         }
63 63
         $viewManager = $this->service->get('viewHelperManager');
64 64
         $basePathHelper = $viewManager->get('basePath');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Service/JobsPublisherFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if (!array_key_exists('path', $config)) {
40 40
             throw new \RuntimeException('path is missing', 500);
41 41
         }
42
-        return $config['scheme'] . '://' . $config['host'] . '/' . $config['path'];
42
+        return $config['scheme'].'://'.$config['host'].'/'.$config['path'];
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationImage.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
     function getUri()
48 48
     {
49
-        return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name),'/');
49
+        return '/'.trim('file/Organizations.OrganizationImage/'.$this->id."/".urlencode($this->name), '/');
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/Employee.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function setStatus($status)
115 115
     {
116
-        if (!defined('self::STATUS_' . strtoupper($status))) {
116
+        if (!defined('self::STATUS_'.strtoupper($status))) {
117 117
             $status = self::STATUS_ASSIGNED;
118 118
         }
119 119
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param $role
135 135
      */
136 136
     public function setRole($role) {
137
-        $this->role=$role;
137
+        $this->role = $role;
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
Organizations/src/Organizations/Entity/Hydrator/OrganizationHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             if (!$this->filterComposite->filter($propertyName)) {
60 60
                 continue;
61 61
             }
62
-            $getter = 'get' . ucfirst($propertyName);
62
+            $getter = 'get'.ucfirst($propertyName);
63 63
             $value = method_exists($object, $getter)
64 64
                    ? $object->$getter()
65 65
                    : $property->getValue($object);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         foreach ($this->data as $key => $value) {
88 88
             if (isset($reflProperties[$key])) {
89 89
                 $value  = $this->hydrateValue($key, $value);
90
-                $setter = 'set' . ucfirst($key);
90
+                $setter = 'set'.ucfirst($key);
91 91
                 if (method_exists($object, $setter)) {
92 92
                     $object->$setter($value);
93 93
                 } else {
Please login to merge, or discard this patch.
Organizations/src/Organizations/Controller/Plugin/InvitationHandler.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -310,9 +310,9 @@
 block discarded – undo
310 310
         if (!$user) {
311 311
             $user = $repository->create();
312 312
             $user->setEmail($email)
313
-                 ->setLogin($email)
314
-                 ->setRole(\Auth\Entity\User::ROLE_RECRUITER)
315
-                 ->setIsDraft(true);
313
+                    ->setLogin($email)
314
+                    ->setRole(\Auth\Entity\User::ROLE_RECRUITER)
315
+                    ->setIsDraft(true);
316 316
             $info = $user->getInfo();
317 317
             /* @var $info \Auth\Entity\InfoInterface */
318 318
             $info->setEmail($email);
Please login to merge, or discard this patch.