Completed
Push — master ( 58f753...77021e )
by Carsten
08:12 queued 10s
created
module/Applications/src/Form/SettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             array('type' => 'Laminas\Form\Element\Textarea',
70 70
                         'name' => 'mailConfirmationText',
71 71
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
72
-                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>' ))
72
+                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li><li>##link## = Link to the application details</li></ul>'))
73 73
         );
74 74
         
75 75
         $this->add(
Please login to merge, or discard this patch.
module/Core/src/Listener/NotificationListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
      */
43 43
     public function attachShared(SharedEventManagerInterface $events)
44 44
     {
45
-        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this,'add'), 1);
46
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderJSON'), -240);
47
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderHTML'), -250);
45
+        $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this, 'add'), 1);
46
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderJSON'), -240);
47
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderHTML'), -250);
48 48
         // Sometimes the Dispatch-Event is not reached, for instance with a route-direct
49 49
         // but also for Events, that are happening after the Dispatch
50
-        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_FINISH, array($this,'renderHTML'), -250);
50
+        $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_FINISH, array($this, 'renderHTML'), -250);
51 51
         return $this;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/CreatePaginatorService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@
 block discarded – undo
62 62
         $paginatorManager = $this->serviceManager->get('Core/PaginatorService');
63 63
         $paginator = $paginatorManager->get($paginatorName);
64 64
         if (!isset($paginator) || !$paginator instanceof LaminasPaginator) {
65
-            throw new \RuntimeException('Could not create paginator ' . $paginatorName);
65
+            throw new \RuntimeException('Could not create paginator '.$paginatorName);
66 66
         }
67 67
         $adapter = $paginator->getAdapter();
68 68
         if (!isset($adapter) || !$adapter instanceof AdapterInterface) {
69
-            throw new \RuntimeException('Paginator ' . $paginatorName . ' has no Adapter');
69
+            throw new \RuntimeException('Paginator '.$paginatorName.' has no Adapter');
70 70
         }
71 71
 
72 72
         $params     = $usePostParams
Please login to merge, or discard this patch.
module/Core/src/Mail/HTMLTemplateMessage.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
             }
234 234
 
235 235
             /* @var \Laminas\Mvc\View\Http\ViewManager $viewManager */
236
-            $viewManager  = $this->serviceManager->get('ViewManager');
236
+            $viewManager = $this->serviceManager->get('ViewManager');
237 237
             $resolver = $this->serviceManager->get('ViewResolver');
238 238
 
239 239
             /* @var \Laminas\Mvc\MvcEvent $event */
@@ -241,13 +241,13 @@  discard block
 block discarded – undo
241 241
             $lang = $forceLanguage ?: $event->getRouteMatch()->getParam('lang');
242 242
 
243 243
 
244
-            if ($resolver->resolve($this->getTemplate() . '.' . $lang)) {
245
-                $viewModel->setTemplate($this->getTemplate() . '.' . $lang);
244
+            if ($resolver->resolve($this->getTemplate().'.'.$lang)) {
245
+                $viewModel->setTemplate($this->getTemplate().'.'.$lang);
246 246
             } else {
247 247
                 $viewModel->setTemplate($this->getTemplate());
248 248
             }
249 249
 
250
-            $view         = $viewManager->getView();
250
+            $view = $viewManager->getView();
251 251
 
252 252
             $viewModel->setVariables($this->getVariables());
253 253
             $viewModel->setVariable('mail', $this);
Please login to merge, or discard this patch.
module/Core/src/Factory/View/Helper/SocialButtonsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         /* @var $serviceLocator \Laminas\View\HelperPluginManager */
31 31
         $options = $container->get('Auth/Options');
32 32
         $config = $container->get('Config');
33
-        $helper = new SocialButtons($options,$config);
33
+        $helper = new SocialButtons($options, $config);
34 34
         return $helper;
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
module/Core/src/Factory/EventManager/EventManagerAbstractFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $defaults = [
183 183
             'service' => 'EventManager',
184 184
             'configure' => true,
185
-            'identifiers' => [ $name ],
185
+            'identifiers' => [$name],
186 186
             'event' => '\Laminas\EventManager\Event',
187 187
             'listeners' => [],
188 188
         ];
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             }
298 298
 
299 299
             foreach ($options['attach'] as $spec) {
300
-                $callback = $spec['method'] ? [ $listener, $spec['method'] ] : $listener;
300
+                $callback = $spec['method'] ? [$listener, $spec['method']] : $listener;
301 301
                 $eventManager->attach($spec['event'], $callback, $spec['priority']);
302 302
             }
303 303
         }
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
         if (is_string($options)) {
368 368
             /* Only an event name is provided in config */
369
-            $normalized['attach'] = [ [ 'event' => $options, 'method' => null, 'priority' => 1 ] ];
369
+            $normalized['attach'] = [['event' => $options, 'method' => null, 'priority' => 1]];
370 370
             return $normalized;
371 371
         }
372 372
 
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
             } elseif (is_string($opt)) {
392 392
                 if (null === $event) {
393 393
                     /* first string found is assumed to be the event name */
394
-                    $event = [ $opt ];
394
+                    $event = [$opt];
395 395
                 } else {
396 396
                     /* second string found must be a method name. */
397 397
                     $method = $opt;
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         }
407 407
 
408 408
         foreach ($event as &$eventSpec) {
409
-            $eventSpec = [ 'event' => $eventSpec, 'method' => $method, 'priority' => $priority ];
409
+            $eventSpec = ['event' => $eventSpec, 'method' => $method, 'priority' => $priority];
410 410
         }
411 411
 
412 412
         $normalized['attach'] = $event;
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     protected function normalizeEventsSpec($options)
419 419
     {
420 420
         $listenerPriority = isset($options['priority']) ? $options['priority'] : 1;
421
-        $listenerMethod   = isset($options['method'])   ? $options['method']   : '__none__';
421
+        $listenerMethod   = isset($options['method']) ? $options['method'] : '__none__';
422 422
         $events = [];
423 423
 
424 424
         foreach ($options['events'] as $event => $spec) {
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
             } elseif (is_array($spec)) {
434 434
                 if (isset($spec['method'])) {
435 435
                     if (!is_array($spec['method'])) {
436
-                        $spec['method'] = [ $spec['method'] ];
436
+                        $spec['method'] = [$spec['method']];
437 437
                     }
438 438
 
439 439
                     foreach ($spec['method'] as $method => $methodPriority) {
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormFileUpload.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
     </a>
91 91
     <div class="fu-errors input-error">
92 92
         <ul class="errors">
93
-            <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain) . '</li>
94
-            <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain) . '</li>
93
+            <li class="fu-error-size">' . $translator->translate('The file is too big', $textDomain).'</li>
94
+            <li class="fu-error-type">' . $translator->translate('The file type is not supported', $textDomain).'</li>
95 95
             <li class="fu-error-count">' . sprintf(
96 96
     $translator->translate('You may only upload %d files', $textDomain),
97 97
     $element->getAttribute('data-maxfilecount')
98
-) . '</li><li class="fu-error-general">' . $translator->translate('An unknown error occured.') . '</li>
98
+).'</li><li class="fu-error-general">'.$translator->translate('An unknown error occured.').'</li>
99 99
         </ul>
100 100
    </div>
101 101
 </li>';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         /* @var $basepath \Laminas\View\Helper\BasePath */
104 104
         $renderer          = $this->getView();
105 105
         $basepath          = $renderer->plugin('basepath');
106
-        $createFileDisplay = function ($file) use ($template, $basepath) {
106
+        $createFileDisplay = function($file) use ($template, $basepath) {
107 107
             /* @var $file \Core\Entity\FileInterface */
108 108
             $uri  = $basepath($file->getUri());
109 109
             $name = $file->getName();
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
         }
138 138
 
139 139
         $nonemptynotice =
140
-            '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>'
141
-            . $this->getNonEmptyNotice() . '</div>';
140
+            '<div class="fu-nonempty-notice"'.('' == trim($preview) ? ' style="display:none;"' : '').'>'
141
+            . $this->getNonEmptyNotice().'</div>';
142 142
         $emptynotice    = '<div class="fu-empty-notice"'
143
-                          . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
144
-                       ' . $this->getEmptyNotice() . '
143
+                          . ('' == trim($preview) ? '' : ' style="display: none;"').'>
144
+                       ' . $this->getEmptyNotice().'
145 145
                   </div>';
146 146
 
147 147
         $markup = '
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     protected function getDefaultNotice()
290 290
     {
291
-        return '<small>' . $this->getTranslator()->translate('Click here to add files or use drag and drop.') . '</small>';
291
+        return '<small>'.$this->getTranslator()->translate('Click here to add files or use drag and drop.').'</small>';
292 292
     }
293 293
     
294 294
     /**
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     public function setAllowRemove($allowRemove)
300 300
     {
301
-        $this->allowRemove = (bool)$allowRemove;
301
+        $this->allowRemove = (bool) $allowRemove;
302 302
         
303 303
         return $this;
304 304
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     public function setAllowClickableDropZone($allowClickableDropZone)
312 312
     {
313
-        $this->allowClickableDropZone = (bool)$allowClickableDropZone;
313
+        $this->allowClickableDropZone = (bool) $allowClickableDropZone;
314 314
         
315 315
         return $this;
316 316
     }
Please login to merge, or discard this patch.
module/Core/src/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('modules/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
         
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
     public function renderForm(SummaryFormInterface $form, $layout = Form::LAYOUT_HORIZONTAL, $parameter = array())
133 133
     {
134 134
         /* @var $form SummaryFormInterface|\Core\Form\SummaryForm */
135
-        $renderer     = $this->getView();           /* @var $renderer \Laminas\View\Renderer\PhpRenderer */
136
-        $formHelper   = $renderer->plugin('form');  /* @var $formHelper \Core\Form\View\Helper\Form */
135
+        $renderer     = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */
136
+        $formHelper   = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */
137 137
         $fieldset     = $form->getBaseFieldset();
138 138
         $resetPartial = false;
139 139
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $form->prepare();
168 168
         $baseFieldset = $form->getBaseFieldset();
169 169
         if (!isset($baseFieldset)) {
170
-            throw new \InvalidArgumentException('For the Form ' . get_class($form) . ' there is no Basefieldset');
170
+            throw new \InvalidArgumentException('For the Form '.get_class($form).' there is no Basefieldset');
171 171
         }
172 172
 
173 173
         $dataAttributesMarkup = '';
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             }
179 179
         }
180 180
         
181
-        $markup = '<div class="panel panel-default" style="min-height: 100px;"' . $dataAttributesMarkup . '>
181
+        $markup = '<div class="panel panel-default" style="min-height: 100px;"'.$dataAttributesMarkup.'>
182 182
                     <div class="panel-body"><div class="sf-controls">%s</div>%s</div></div>';
183 183
 
184 184
         $view = $this->getView();
@@ -190,9 +190,9 @@  discard block
 block discarded – undo
190 190
                         . '</button>';
191 191
         
192 192
         if (($controlButtons = $form->getOption('control_buttons')) !== null) {
193
-            $buttonMarkup .= PHP_EOL . implode(PHP_EOL, array_map(function (array $buttonSpec) use ($view) {
194
-                return '<button type="button" class="btn btn-default btn-xs' . (isset($buttonSpec['class']) ? ' ' . $buttonSpec['class'] : '') . '">'
195
-                    . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-' . $buttonSpec['icon'] . '"></span> ' : '')
193
+            $buttonMarkup .= PHP_EOL.implode(PHP_EOL, array_map(function(array $buttonSpec) use ($view) {
194
+                return '<button type="button" class="btn btn-default btn-xs'.(isset($buttonSpec['class']) ? ' '.$buttonSpec['class'] : '').'">'
195
+                    . (isset($buttonSpec['icon']) ? '<span class="yk-icon yk-icon-'.$buttonSpec['icon'].'"></span> ' : '')
196 196
                     . $view->translate($buttonSpec['label'])
197 197
                     . '</button>';
198 198
             }, $controlButtons));
@@ -232,10 +232,10 @@  discard block
 block discarded – undo
232 232
         }
233 233
 
234 234
         if ($element instanceof ViewPartialProviderInterface) {
235
-            $renderer    = $this->getView();                 /* @var $renderer \Laminas\View\Renderer\PhpRenderer */
235
+            $renderer    = $this->getView(); /* @var $renderer \Laminas\View\Renderer\PhpRenderer */
236 236
             $origPartial = $element->getViewPartial();
237 237
             $partial     = "$origPartial.view";
238
-            $partialParams  = array(
238
+            $partialParams = array(
239 239
                 'element' => $element
240 240
             );
241 241
             if (!$renderer->resolver($partial)) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         
252 252
         if ($element instanceof FieldsetInterface) {
253 253
             if (!$element instanceof FormInterface && $label) {
254
-                $markup .= '<h4>' . $label . '</h4>';
254
+                $markup .= '<h4>'.$label.'</h4>';
255 255
             }
256 256
             foreach ($element as $el) {
257 257
                 $markup .= $this->renderSummaryElement($el);
@@ -283,11 +283,11 @@  discard block
 block discarded – undo
283 283
                             }
284 284
 
285 285
                             $optGroupLabel = isset($optVal['label']) ? $translator->translate($optVal['label']) : $optKey;
286
-                            $multiOptions[] = $optGroupLabel . ' | ' . $translator->translate($optVal['options'][$optionKey]);
286
+                            $multiOptions[] = $optGroupLabel.' | '.$translator->translate($optVal['options'][$optionKey]);
287 287
                         }
288 288
                     }
289 289
 
290
-                    $elementValue = '<ul><li>' . join('</li><li>', $multiOptions) . '</li></ul>';
290
+                    $elementValue = '<ul><li>'.join('</li><li>', $multiOptions).'</li></ul>';
291 291
                 } else {
292 292
                     $elementValue = $translator->translate($options[$elementValue]);
293 293
                 }
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
         $markup .= '<div class="row">';
302 302
         $col = 12;
303 303
         if ($label) {
304
-            $markup .= '<div class="col-md-3 yk-label"><label>' . $label . '</label></div>';
304
+            $markup .= '<div class="col-md-3 yk-label"><label>'.$label.'</label></div>';
305 305
             $col = 9;
306 306
         }
307
-        $markup .= '<div class="col-md-' . $col . '">' . $elementValue . '</div>'
307
+        $markup .= '<div class="col-md-'.$col.'">'.$elementValue.'</div>'
308 308
             . '</div>';
309 309
         return $markup;
310 310
     }
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormRow.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         
79 79
         // Does this element have errors ?
80 80
         if (!empty($elementErrors) && !empty($inputErrorClass) && $this->layout != Form::LAYOUT_BARE) {
81
-            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class') . ' ' : '');
82
-            $classAttributes = $classAttributes . $inputErrorClass;
81
+            $classAttributes = ($element->hasAttribute('class') ? $element->getAttribute('class').' ' : '');
82
+            $classAttributes = $classAttributes.$inputErrorClass;
83 83
     
84 84
             $element->setAttribute('class', $classAttributes);
85 85
         }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         if (!$element->hasAttribute('id')) {
88 88
             $elementId = preg_replace(
89 89
                 array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
90
-                array('-'             , '-',     ''),
90
+                array('-', '-', ''),
91 91
                 $element->getName()
92 92
             );
93 93
             $element->setAttribute('id', $elementId);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         }
134 134
         
135 135
         // moved label here so we can change it in the ElementViewHelper
136
-        $label           = $element->getLabel();
136
+        $label = $element->getLabel();
137 137
         if (isset($label) && '' !== $label && !$element instanceof \Laminas\Form\Element\Button) {
138 138
             // Translate the label
139 139
             if (null !== ($translator = $this->getTranslator())) {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     if ($this->shouldWrap) {
179 179
                         $spanWidth = 12 - $labelWidth;
180 180
                         $elementString = sprintf(
181
-                            '<div class="col-md-%d%s" id="' . $elementId . '-span">%s</div>',
181
+                            '<div class="col-md-%d%s" id="'.$elementId.'-span">%s</div>',
182 182
                             $spanWidth,
183 183
                             $elementErrors ? " $inputErrorClass" : '',
184 184
                             $elementString
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                             $label
190 190
                         );
191 191
                     }
192
-                    $markup = $label . $elementString;
192
+                    $markup = $label.$elementString;
193 193
                 }
194 194
             }
195 195
         } else {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             && !$element instanceof \Laminas\Form\Element\Button
211 211
             && $this->layout != Form::LAYOUT_BARE
212 212
             ) {
213
-            $markup = sprintf('<div class="controls controls-row ' . $form_row_class . '">%s</div>', $markup);
213
+            $markup = sprintf('<div class="controls controls-row '.$form_row_class.'">%s</div>', $markup);
214 214
         }
215 215
     
216 216
         return $markup;
Please login to merge, or discard this patch.