Completed
Push — develop ( 037ef6...a650ad )
by Carsten
06:58
created
module/Jobs/src/Jobs/Entity/JobSnapshot.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -286,14 +286,14 @@  discard block
 block discarded – undo
286 286
     {
287 287
         $methods = array_filter(
288 288
             get_class_methods($source),
289
-            function ($v) {
289
+            function($v) {
290 290
                 return 3 < strlen($v) && strpos($v, 'get') === 0;
291 291
             }
292 292
         );
293 293
         // these attributes don't need to get copied
294 294
         $methods = array_diff($methods, array('getId', 'getHydrator', 'getHiringOrganizations'));
295 295
         $methods = array_map(
296
-            function ($v) {
296
+            function($v) {
297 297
                 return lcfirst(substr($v, 3));
298 298
             },
299 299
             $methods
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             $element = $source->$attribute;
303 303
             if (isset($element)) {
304 304
                 // when the parameter is rigid you can't assign an non-existing elements
305
-                if (method_exists($target, 'set' . lcfirst($attribute))) {
305
+                if (method_exists($target, 'set'.lcfirst($attribute))) {
306 306
                     $target->$attribute = $element;
307 307
                 }
308 308
             }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/OrganizationSelect.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
             $image    = $org->getImage();
64 64
             $imageUrl = $image ? $image->getUri() : '';
65 65
 
66
-            $options[$org->getId()] = $name . '|'
67
-                                      . $contact->getCity() . '|'
68
-                                      . $contact->getStreet() . '|'
69
-                                      . $contact->getHouseNumber() . '|'
66
+            $options[$org->getId()] = $name.'|'
67
+                                      . $contact->getCity().'|'
68
+                                      . $contact->getStreet().'|'
69
+                                      . $contact->getHouseNumber().'|'
70 70
                                       . $imageUrl;
71 71
         }
72 72
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/View/Helper/PreviewLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function render(ElementInterface $element, $options = null)
37 37
     {
38
-        $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>';
38
+        $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>';
39 39
         return $content;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Job.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
         return $this->findBy(
58 58
             array(
59
-            'permissions.assigned.' . $resourceId => array(
59
+            'permissions.assigned.'.$resourceId => array(
60 60
                 '$exists' => true
61 61
             )
62 62
             )
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $qb->hydrate(false)
78 78
            ->select('title', 'applyId')
79 79
            ->field('permissions.view')->equals($userId)
80
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
80
+           ->field('title')->equals(new \MongoRegex('/'.$query.'/i'))
81 81
            ->sort('title')
82 82
            ->limit(5);
83 83
         
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $qb = $this->createQueryBuilder();
145 145
         $qb->distinct('organization')
146 146
             ->hydrate(true)
147
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
147
+           ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]);
148 148
         $q = $qb->getQuery();
149 149
         $r = $q->execute();
150 150
         $r = $r->toArray();
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ViewModelTemplateFilterAbstract.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         if (!isset($this->job)) {
124 124
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job');
125 125
         }
126
-        $model->setTemplate('templates/' . $this->job->getTemplate() . '/index');
126
+        $model->setTemplate('templates/'.$this->job->getTemplate().'/index');
127 127
         return $model;
128 128
     }
129 129
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job');
172 172
         }
173 173
         $location = $this->job->getLocation();
174
-        $this->container['location'] = isset($location)?$location:'';
174
+        $this->container['location'] = isset($location) ? $location : '';
175 175
         return $this;
176 176
     }
177 177
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         }
193 193
         $description = $this->job->templateValues->description;
194 194
 
195
-        $this->container['description'] = isset($description)?$description:'';
195
+        $this->container['description'] = isset($description) ? $description : '';
196 196
         return $this;
197 197
     }
198 198
 
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
         if (!isset($this->job)) {
257 257
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
258 258
         }
259
-        $labelQualifications='';
260
-        $labelBenefits='';
261
-        $labelRequirements='';
259
+        $labelQualifications = '';
260
+        $labelBenefits = '';
261
+        $labelRequirements = '';
262 262
 
263 263
         $organization = $this->job->organization;
264 264
         if (isset($organization)) {
Please login to merge, or discard this patch.
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/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/Form/MultipostingSelectFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $helpers = $services->get('ViewHelperManager');
37 37
        // $headScript = $helpers->get('headScript');
38 38
        /// $basePath  = $helpers->get('basePath');
39
-        $currencyFormat  = $helpers->get('currencyFormat');
39
+        $currencyFormat = $helpers->get('currencyFormat');
40 40
 
41 41
         $channels = $services->get('Jobs/Options/Provider');
42 42
 
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
 
56 56
             $link = $router->assemble($channel->getParams(), array('name' => $channel->getRoute()));
57 57
             $groups[$category]['options'][$channel->getKey()] =
58
-                              $channel->getLabel() . '|'
59
-                            . $channel->getHeadLine() . '|'
60
-                            . $channel->getDescription() . '|'
61
-                            . $channel->getLinkText() . '|'
62
-                            . $link . '|' . $channel->getPublishDuration() . '|'
58
+                              $channel->getLabel().'|'
59
+                            . $channel->getHeadLine().'|'
60
+                            . $channel->getDescription().'|'
61
+                            . $channel->getLinkText().'|'
62
+                            . $link.'|'.$channel->getPublishDuration().'|'
63 63
                             . $channel->getLogo();
64 64
         }
65 65
 
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.