Completed
Push — develop ( fd8298...e653e2 )
by Carsten
14s
created
module/Jobs/src/Jobs/Form/BaseFieldset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
 
55 55
             $locationsStrategy = new \Zend\Hydrator\Strategy\ClosureStrategy(
56 56
                 /* extract */
57
-                function ($value) use ($geoLocationStrategy)
57
+                function($value) use ($geoLocationStrategy)
58 58
                 {
59 59
                     return $geoLocationStrategy->extract($value->first());
60 60
                 },
61 61
 
62 62
                 /* hydrate */
63
-                function ($value) use ($geoLocationStrategy)
63
+                function($value) use ($geoLocationStrategy)
64 64
                 {
65 65
                     return new ArrayCollection([$geoLocationStrategy->hydrate($value)]);
66 66
                 }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                             $loc = $this->object->getLocations()->first();
112 112
                             if (!$loc) { return ''; }
113 113
 
114
-                            $value = $loc->getPostalCode() . ' ' . $loc->getCity() . ', ' . $loc->getRegion();
114
+                            $value = $loc->getPostalCode().' '.$loc->getCity().', '.$loc->getRegion();
115 115
                             $value = trim($value, ' ,');
116 116
 
117 117
                             return $value;
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractLocation.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     ? [
70 70
                         'type' => $coords->getType(),
71 71
                         'coordinates' => $coords->getCoordinates(),
72
-                      ]
72
+                        ]
73 73
                     : null
74 74
 
75 75
         ];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             if (!$value) { continue; }
86 86
 
87 87
             if ('coordinates' == $key) {
88
-                $class = '\\Geo\\Entity\\Geometry\\' . $value['type'];
88
+                $class = '\\Geo\\Entity\\Geometry\\'.$value['type'];
89 89
                 $value = new $class($value['coordinates']);
90 90
             }
91 91
 
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/SummaryForm.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $renderer->headscript()->appendFile($renderer->basePath('Core/js/jquery.summary-form.js'));
68 68
         
69 69
         $label = $form->getLabel();
70
-        $labelContent = $label ? '<div class="sf-headline"><h3>' . $this->getView()->translate($label) . '</h3></div>' : '';
70
+        $labelContent = $label ? '<div class="sf-headline"><h3>'.$this->getView()->translate($label).'</h3></div>' : '';
71 71
         $formContent  = $this->renderForm($form, $layout, $parameter);
72 72
         $summaryContent = $this->renderSummary($form);
73 73
         
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
     public function renderForm(SummaryFormInterface $form, $layout = Form::LAYOUT_HORIZONTAL, $parameter = array())
132 132
     {
133 133
                                                     /* @var $form SummaryFormInterface|\Core\Form\SummaryForm */
134
-        $renderer     = $this->getView();           /* @var $renderer \Zend\View\Renderer\PhpRenderer */
135
-        $formHelper   = $renderer->plugin('form');  /* @var $formHelper \Core\Form\View\Helper\Form */
134
+        $renderer     = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */
135
+        $formHelper   = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */
136 136
         $fieldset     = $form->getBaseFieldset();
137 137
         $resetPartial = false;
138 138
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $form->prepare();
167 167
         $baseFieldset = $form->getBaseFieldset();
168 168
         if (!isset($baseFieldset)) {
169
-            throw new \InvalidArgumentException('For the Form ' . get_class($form) . ' there is no Basefieldset');
169
+            throw new \InvalidArgumentException('For the Form '.get_class($form).' there is no Basefieldset');
170 170
         }
171 171
 
172 172
         $dataAttributesMarkup = '';
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             }
180 180
         }
181 181
         
182
-        $markup = '<div class="panel panel-default" style="min-height: 100px;"' . $dataAttributesMarkup . '>
182
+        $markup = '<div class="panel panel-default" style="min-height: 100px;"'.$dataAttributesMarkup.'>
183 183
                     <div class="panel-body"><div class="sf-controls">%s</div>%s</div></div>';
184 184
 
185 185
         $view = $this->getView();
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
         
193 193
         if (($controlButtons = $form->getOption('control_buttons')) !== null)
194 194
         {
195
-            $buttonMarkup .= PHP_EOL . implode(PHP_EOL, array_map(function (array $buttonSpec) use ($view) {
196
-                return '<button type="button" class="btn btn-default btn-xs' . (isset($buttonSpec['class']) ? ' ' . $buttonSpec['class'] : '') . '">'
197
-                    . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-' . $buttonSpec['icon'] . '"></span> ' : '')
195
+            $buttonMarkup .= PHP_EOL.implode(PHP_EOL, array_map(function(array $buttonSpec) use ($view) {
196
+                return '<button type="button" class="btn btn-default btn-xs'.(isset($buttonSpec['class']) ? ' '.$buttonSpec['class'] : '').'">'
197
+                    . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-'.$buttonSpec['icon'].'"></span> ' : '')
198 198
                     . $view->translate($buttonSpec['label'])
199 199
                     . '</button>';
200 200
             }, $controlButtons));
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
         }
235 235
 
236 236
         if ($element instanceof ViewPartialProviderInterface) {
237
-            $renderer    = $this->getView();                 /* @var $renderer \Zend\View\Renderer\PhpRenderer */
237
+            $renderer    = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */
238 238
             $origPartial = $element->getViewPartial();
239 239
             $partial     = "$origPartial.view";
240
-            $partialParams  = array(
240
+            $partialParams = array(
241 241
                 'element' => $element
242 242
             );
243 243
             if (!$renderer->resolver($partial)) {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         
254 254
         if ($element instanceof FieldsetInterface) {
255 255
             if (!$element instanceof FormInterface && $label) {
256
-                $markup .= '<h4>' . $label . '</h4>';
256
+                $markup .= '<h4>'.$label.'</h4>';
257 257
             }
258 258
             foreach ($element as $el) {
259 259
                 $markup .= $this->renderSummaryElement($el);
@@ -284,11 +284,11 @@  discard block
 block discarded – undo
284 284
                             if (!is_array($optVal) || !array_key_exists($optionKey, $optVal['options'])) { continue; }
285 285
 
286 286
                             $optGroupLabel = isset($optVal['label']) ? $translator->translate($optVal['label']) : $optKey;
287
-                            $multiOptions[] = $optGroupLabel . ' | ' . $translator->translate($optVal['options'][$optionKey]);
287
+                            $multiOptions[] = $optGroupLabel.' | '.$translator->translate($optVal['options'][$optionKey]);
288 288
                         }
289 289
                     }
290 290
 
291
-                    $elementValue = '<ul><li>' . join('</li><li>' , $multiOptions) . '</li></ul>';
291
+                    $elementValue = '<ul><li>'.join('</li><li>', $multiOptions).'</li></ul>';
292 292
 
293 293
                 } else {
294 294
                     $elementValue = $translator->translate($options[$elementValue]);
@@ -303,10 +303,10 @@  discard block
 block discarded – undo
303 303
         $markup .= '<div class="row">';
304 304
         $col = 12;
305 305
         if ($label) {
306
-            $markup .= '<div class="col-md-3 yk-label"><label>' . $label . '</label></div>';
306
+            $markup .= '<div class="col-md-3 yk-label"><label>'.$label.'</label></div>';
307 307
             $col = 9;
308 308
         }
309
-        $markup .= '<div class="col-md-' . $col . '">' . $elementValue . '</div>'
309
+        $markup .= '<div class="col-md-'.$col.'">'.$elementValue.'</div>'
310 310
             . '</div>';
311 311
         return $markup;
312 312
     }
Please login to merge, or discard this patch.
module/Geo/src/Geo/Service/Geo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $result = json_decode($result, JSON_OBJECT_AS_ARRAY);
42 42
 
43
-        $r=[];
43
+        $r = [];
44 44
         foreach ($result["result"] as $val) {
45 45
             $coords = $this->queryCoords($val);
46 46
             if (false !== strpos($val, ',')) {
Please login to merge, or discard this patch.
module/Geo/src/Geo/Service/Photon.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,16 +63,16 @@
 block discarded – undo
63 63
 
64 64
         foreach ($result as $key => $val) {
65 65
             $row=[
66
-                  'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
67
-                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
68
-                  'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
69
-                  'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
70
-                  'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
66
+                    'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
67
+                    'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
68
+                    'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
69
+                    'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
70
+                    'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
71 71
 
72
-                  'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
73
-                  'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
74
-                  //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()),
75
-                  //'data' => json_encode($val),
72
+                    'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''),
73
+                    'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''),
74
+                    //'id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : uniqid()),
75
+                    //'data' => json_encode($val),
76 76
             ];
77 77
             if ($val->geometry) {
78 78
                 $row['coordinates'] = [
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
         $client->setMethod('GET');
29 29
 
30 30
         $osmTags = [
31
-            'tourism','aeroway','railway', 'amenity', 'historic', 'tunnel', 'mountain_pass',
31
+            'tourism', 'aeroway', 'railway', 'amenity', 'historic', 'tunnel', 'mountain_pass',
32 32
             'leisure', 'natural', 'bridge', 'waterway'
33 33
         ];
34 34
 
35
-        $osmTags = array_map(function($i) { return urlencode('!' . $i); }, $osmTags);
35
+        $osmTags = array_map(function($i) { return urlencode('!'.$i); }, $osmTags);
36 36
 
37 37
         $uri = sprintf(
38 38
             '%s?osm_tag=%s',
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $result = json_decode($result);
61 61
         $result = $result->features;
62
-        $r=[];
62
+        $r = [];
63 63
 
64 64
         foreach ($result as $key => $val) {
65
-            $row=[
66
-                  'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''),
67
-                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''),
65
+            $row = [
66
+                  'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode : ''),
67
+                  'city' =>(property_exists($val->properties, 'city') ? $val->properties->city : ''),
68 68
                   'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''),
69 69
                   'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''),
70 70
                   'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''),
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 ];
82 82
             }
83 83
             //$row['id'] = json_encode($row);
84
-            $r[]=$row;
84
+            $r[] = $row;
85 85
         }
86 86
         return $r;
87 87
     }
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoSelectHydratorStrategy.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,10 +72,10 @@
 block discarded – undo
72 72
         if (0 === strpos($value, '{')) {
73 73
             return $value;
74 74
         }
75
-        if ($value){
75
+        if ($value) {
76 76
             $data = $this->geoClient->queryOne($value);
77 77
             return $data['id'];
78
-        }else{
78
+        } else {
79 79
             return;
80 80
         }
81 81
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         if ($value){
76 76
             $data = $this->geoClient->queryOne($value);
77 77
             return $data['id'];
78
-        }else{
78
+        } else{
79 79
             return;
80 80
         }
81 81
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ManageController.php 3 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
         $jobEntity = $this->initializeJob()->get($this->params(), true);
149 149
 
150 150
         $model = new ViewModel([
151
-                                   'portals' => $jobEntity->getPortals(),
152
-                                   'channels' => $channels,
153
-                                   'defaultCurrencyCode' => $options->defaultCurrencyCode,
154
-                                   'defaultTaxRate' =>  $options->defaultTaxRate,
155
-                                   'jobId' => $jobEntity->getId()
156
-                               ]);
151
+                                    'portals' => $jobEntity->getPortals(),
152
+                                    'channels' => $channels,
153
+                                    'defaultCurrencyCode' => $options->defaultCurrencyCode,
154
+                                    'defaultTaxRate' =>  $options->defaultTaxRate,
155
+                                    'jobId' => $jobEntity->getId()
156
+                                ]);
157 157
         $model->setTemplate('jobs/partials/channel-list')->setTerminal(true);
158 158
         return $model;
159 159
     }
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
             'lang/jobs/view',
514 514
             array(),
515 515
             array('query' => $query
516
-                      )
516
+                        )
517 517
         );
518 518
 
519 519
         $approvalLink = $this->url()->fromRoute(
@@ -529,10 +529,10 @@  discard block
 block discarded – undo
529 529
         );
530 530
 
531 531
         return array('job' => $jobEntity,
532
-                     'diffSnapshot' => $diff,
533
-                     'viewLink' => $viewLink,
534
-                     'approvalLink' => $approvalLink,
535
-                     'declineLink' => $declineLink);
532
+                        'diffSnapshot' => $diff,
533
+                        'viewLink' => $viewLink,
534
+                        'approvalLink' => $approvalLink,
535
+                        'declineLink' => $declineLink);
536 536
     }
537 537
 
538 538
     /**
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -165,7 +165,6 @@  discard block
 block discarded – undo
165 165
      *
166 166
      * parameter are arbitrary elements for defaults or programming flow
167 167
      *
168
-     * @param array $parameter
169 168
      * @return null|ViewModel
170 169
      * @throws \RuntimeException
171 170
      */
@@ -388,7 +387,7 @@  discard block
 block discarded – undo
388 387
 
389 388
     /**
390 389
      * @param  $job \Jobs\Entity\Job
391
-     * @return mixed
390
+     * @return \Jobs\Form\Job
392 391
      */
393 392
     protected function getFormular($job)
394 393
     {
@@ -411,7 +410,7 @@  discard block
 block discarded – undo
411 410
     }
412 411
 
413 412
     /**
414
-     * @param $form
413
+     * @param \Jobs\Form\Job $form
415 414
      * @param array $params
416 415
      * @return ViewModel
417 416
      */
@@ -604,7 +603,7 @@  discard block
 block discarded – undo
604 603
     }
605 604
 
606 605
     /**
607
-     * @param $script
606
+     * @param string $script
608 607
      * @param array $parameter
609 608
      * @return ViewModel
610 609
      */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         if (empty($user->getInfo()->getEmail())) {
179 179
             return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail'));
180 180
         }
181
-        $userOrg            = $user->getOrganization();
181
+        $userOrg = $user->getOrganization();
182 182
         if (!$userOrg->hasAssociation() || $userOrg->getOrganization()->isDraft()) {
183 183
             return $this->getErrorViewModel('no-parent', array('cause' => 'noCompany'));
184 184
         }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
         }
209 209
 
210 210
 
211
-        $viewModel          = null;
211
+        $viewModel = null;
212 212
         $this->acl($jobEntity, 'edit');
213 213
         if ($status = $params->fromQuery('status')) {
214 214
             $this->changeStatus($jobEntity, $status);
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
         $instanceForm       = null;
221 221
         $formErrorMessages = array();
222 222
 
223
-        if (isset($formIdentifier) &&  $request->isPost()) {
223
+        if (isset($formIdentifier) && $request->isPost()) {
224 224
             // at this point the form get instantiated and immediately accumulated
225 225
             $instanceForm = $form->getForm($formIdentifier);
226 226
             if (!isset($instanceForm)) {
227
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
227
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
228 228
             }
229 229
             // the id may be part of the postData, but it never should be altered
230 230
             $postData = $request->getPost();
@@ -278,20 +278,20 @@  discard block
 block discarded – undo
278 278
             $jobValid = false;
279 279
             $errorMessage[] = $this->translator->translate('Accept the Terms');
280 280
         }
281
-        $result = $formEvents->trigger('ValidateJob', $this, [ 'form' => $form ]);
281
+        $result = $formEvents->trigger('ValidateJob', $this, ['form' => $form]);
282 282
         foreach ($result as $messages) {
283 283
             if (!$messages) {
284 284
                 continue;
285 285
             }
286 286
             if (!is_array($messages)) {
287
-                $messages = [ $messages ];
287
+                $messages = [$messages];
288 288
             }
289 289
 
290 290
             $errorMessage = array_merge($errorMessage, $messages);
291 291
             $jobValid = false;
292 292
         }
293 293
 
294
-        $errorMessage = '<br />' . implode('<br />', $errorMessage);
294
+        $errorMessage = '<br />'.implode('<br />', $errorMessage);
295 295
         if ($isAjax) {
296 296
             if ($instanceForm instanceof SummaryForm) {
297 297
                 $instanceForm->setRenderMode(SummaryForm::RENDER_SUMMARY);
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             } else {
300 300
                 $viewHelper = 'form';
301 301
             }
302
-            $viewHelperManager  = $serviceLocator->get('ViewHelperManager');
302
+            $viewHelperManager = $serviceLocator->get('ViewHelperManager');
303 303
             $content = $viewHelperManager->get($viewHelper)->__invoke($instanceForm);
304 304
             $viewModel = new JsonModel(
305 305
                 array(
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                     }
323 323
                 }
324 324
             } else {
325
-                $formEvents->trigger('DisableElements', $this, [ 'form' => $form, 'job'=>$jobEntity ]);
325
+                $formEvents->trigger('DisableElements', $this, ['form' => $form, 'job'=>$jobEntity]);
326 326
                 // Job is deployed, some changes are now disabled
327 327
                 $form->enableAll();
328 328
             }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
             $completionLink = $this->url()->fromRoute(
332 332
                 'lang/jobs/completion',
333
-                [ 'id' => $jobEntity->getId()]
333
+                ['id' => $jobEntity->getId()]
334 334
             );
335 335
 
336 336
             $viewModel = $this->getViewModel($form);
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
         // array with differences between the last snapshot and the actual entity
502 502
         // is remains Null if there is no snapshot
503 503
         // it will be an empty array if the snapshot and the actual entity do not differ
504
-        $diff           = null;
504
+        $diff = null;
505 505
 
506 506
 
507 507
         if ($params == 'declined') {
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
      */
561 561
     public function deactivateAction()
562 562
     {
563
-        $user           = $this->auth->getUser();
563
+        $user = $this->auth->getUser();
564 564
 
565 565
         $jobEntity = $this->initializeJob()->get($this->params());
566 566
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/Plugin/InitializeJob.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function __construct(RepositoryService $repositoryService, AuthenticationService $auth, Acl $acl)
45 45
     {
46
-        $this->repositoryService=$repositoryService;
47
-        $this->auth=$auth;
48
-        $this->acl=$acl;
46
+        $this->repositoryService = $repositoryService;
47
+        $this->auth = $auth;
48
+        $this->acl = $acl;
49 49
     }
50 50
 
51 51
     public function __invoke()
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
     public function get(Params $params, $allowDraft = false, $getSnapshot = false)
65 65
     {
66 66
         /* @var \Jobs\Repository\Job $jobRepository */
67
-        $jobRepository  = $this->repositoryService->get('Jobs/Job');
67
+        $jobRepository = $this->repositoryService->get('Jobs/Job');
68 68
         $idFromRoute   = $params('id', 0);
69 69
         $idFromQuery   = $params->fromQuery('id', 0);
70 70
         $idFromSubForm = $params->fromPost('job', 0);
71 71
 
72
-        $id = empty($idFromRoute)? (empty($idFromQuery)?$idFromSubForm:$idFromQuery) : $idFromRoute;
72
+        $id = empty($idFromRoute) ? (empty($idFromQuery) ? $idFromSubForm : $idFromQuery) : $idFromRoute;
73 73
         $snapshotId = $params->fromPost('snapshot') ?: ($params->fromQuery('snapshot') ?: null);
74 74
 
75 75
         if (empty($id) && empty($snapshotId) && $allowDraft) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/Plugin/UserSwitcher.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     /**
94 94
      * Switch to another user.
95 95
      *
96
-     * @param string|UserInterface $id user id of the user to switch to.
96
+     * @param string $id user id of the user to switch to.
97 97
      * @param array $params Additional parameters to store in the session container.
98 98
      *
99 99
      * @return bool
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      * @param string $key
168 168
      * @param mixed $default Value to return if param $key is not set.
169 169
      *
170
-     * @return null
170
+     * @return string
171 171
      */
172 172
     public function getSessionParam($key, $default = null)
173 173
     {
Please login to merge, or discard this patch.