Completed
Push — master ( 427ab7...6e55b3 )
by Daniel
01:57
created
source/DomComponentsByDanielGP.php 1 patch
Spacing   +94 added lines, -94 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 'class'    => 'input_readonly',
77 77
                 'value'    => $sDefaultValue,
78 78
             ];
79
-            return $this->setStringIntoShortTag('input', $inputFeatures) . $aElements[$sDefaultValue];
79
+            return $this->setStringIntoShortTag('input', $inputFeatures).$aElements[$sDefaultValue];
80 80
         }
81 81
         return $this->setArrayToSelectNotReadOnly($aElements, $sDefaultValue, $selectName, $featArray);
82 82
     }
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
                         $ditTitle .= ' (0)';
123 123
                     }
124 124
                     $divTab = [
125
-                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">',
125
+                        'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">',
126 126
                         'end'   => '</div><!-- from tab_NoData -->',
127 127
                     ];
128 128
                     if (!isset($ftrs['noGlobalTab'])) {
129 129
                         $divTab = [
130
-                            'start' => '<div class="tabber" id="tab">' . $divTab['start'],
131
-                            'end'   => $divTab['end'] . '</div><!-- from global Tab -->',
130
+                            'start' => '<div class="tabber" id="tab">'.$divTab['start'],
131
+                            'end'   => $divTab['end'].'</div><!-- from global Tab -->',
132 132
                         ];
133 133
                     }
134 134
                 }
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
         }
152 152
         $checkboxFormId = '';
153 153
         if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) {
154
-            $checkboxFormId = 'frm' . date('YmdHis');
155
-            $sReturn        .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId
156
-                    . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >';
154
+            $checkboxFormId = 'frm'.date('YmdHis');
155
+            $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId
156
+                    . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >';
157 157
         }
158 158
         $tbl        = [];
159 159
         $tbl['Def'] = '<table'
160
-                . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '')
161
-                . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '')
160
+                . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '')
161
+                . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '')
162 162
                 . '>';
163 163
         if (!isset($ftrs['grouping_cell_type'])) {
164 164
             $ftrs['grouping_cell_type'] = 'row';
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                     $sReturn .= $tbl['Head'];
200 200
                 }
201 201
                 if (isset($iStartingPageRecord)) {
202
-                    $pgn     = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge);
202
+                    $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge);
203 203
                     $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [
204 204
                                 'colspan' => $iTableColumns
205 205
                             ]), 'tr');
@@ -241,22 +241,22 @@  discard block
 block discarded – undo
241 241
                     }
242 242
                     $remebered_value = $color_column_value;
243 243
                 }
244
-                $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"';
244
+                $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"';
245 245
             } else {
246 246
                 if (isset($ftrs['RowStyle'])) {
247
-                    $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"';
247
+                    $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"';
248 248
                 } else {
249 249
                     $color = '';
250 250
                 }
251 251
             }
252
-            $tbl['tr_Color'] = '<tr' . $color . '>';
252
+            $tbl['tr_Color'] = '<tr'.$color.'>';
253 253
 // Grouping column
254 254
             if (isset($ftrs['grouping_cell'])) {
255 255
                 foreach ($aElements[$rCntr] as $key => $value) {
256 256
                     if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) {
257 257
                         switch ($ftrs['grouping_cell_type']) {
258 258
                             case 'row':
259
-                                $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">'
259
+                                $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">'
260 260
                                         . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded'])
261 261
                                         . '</td></tr>';
262 262
                                 break;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                                 } else {
269 269
                                     $sReturn .= '</tbody></table>';
270 270
                                     if (isset($ftrs['showGroupingCounter'])) {
271
-                                        $sReturn      .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
271
+                                        $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
272 272
                                         $groupCounter = 0;
273 273
                                     }
274 274
                                     $sReturn .= '</div>';
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
                                 if (isset($ftrs['grouping_default_tab'])) {
278 278
                                     $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : '');
279 279
                                 }
280
-                                $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" '
281
-                                        . 'title="' . $value . '">'
282
-                                        . $tbl['Def'] . $tbl['Head'] . $tbl['Header'];
280
+                                $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" '
281
+                                        . 'title="'.$value.'">'
282
+                                        . $tbl['Def'].$tbl['Head'].$tbl['Header'];
283 283
                                 break;
284 284
                         }
285 285
                         $remindGroupValue = $value;
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
                     }
294 294
                 }
295 295
             }
296
-            $sReturn       .= $tbl['tr_Color'];
296
+            $sReturn .= $tbl['tr_Color'];
297 297
 // Action column
298 298
             $checkboxName  = '';
299 299
             $checkboxNameS = '';
300 300
             if (isset($ftrs['actions'])) {
301
-                $sReturn         .= '<td style="white-space:nowrap;">';
301
+                $sReturn .= '<td style="white-space:nowrap;">';
302 302
                 $action_argument = 0;
303 303
                 if (isset($ftrs['actions']['key'])) {
304 304
                     $actionKey = $ftrs['actions']['key'];
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
                     $actionKey = 'view';
307 307
                 }
308 308
                 if (isset($ftrs['action_prefix'])) {
309
-                    $actPrfx   = $ftrs['action_prefix'] . '&amp;';
309
+                    $actPrfx   = $ftrs['action_prefix'].'&amp;';
310 310
                     $actionKey = 'view2';
311 311
                 } else {
312 312
                     $actPrfx = '';
@@ -317,11 +317,11 @@  discard block
 block discarded – undo
317 317
                     }
318 318
                     switch ($key) {
319 319
                         case 'checkbox':
320
-                            $checkboxName  = $value . '[]';
320
+                            $checkboxName  = $value.'[]';
321 321
                             $checkboxNameS = $value;
322
-                            $sReturn       .= '&nbsp;<input type="checkbox" name="' . $checkboxName
323
-                                    . '" id="n' . $aElements[$rCntr][$value]
324
-                                    . '" value="' . $aElements[$rCntr][$value] . '" ';
322
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
323
+                                    . '" id="n'.$aElements[$rCntr][$value]
324
+                                    . '" value="'.$aElements[$rCntr][$value].'" ';
325 325
                             if (isset($_REQUEST[$checkboxNameS])) {
326 326
                                 if (is_array($_REQUEST[$checkboxNameS])) {
327 327
                                     if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) {
@@ -336,29 +336,29 @@  discard block
 block discarded – undo
336 336
                             if (strpos($_REQUEST['view'], 'multiEdit') !== false) {
337 337
                                 $sReturn .= 'disabled="disabled" ';
338 338
                             }
339
-                            $sReturn       .= '/>';
339
+                            $sReturn .= '/>';
340 340
                             break;
341 341
                         case 'checkbox_inlineEdit':
342
-                            $checkboxName  = $value . '[]';
342
+                            $checkboxName  = $value.'[]';
343 343
                             $checkboxNameS = $value;
344
-                            $sReturn       .= '&nbsp;<input type="checkbox" name="' . $checkboxName
345
-                                    . '" id="n' . $aElements[$rCntr][$value] . '" value="'
346
-                                    . $aElements[$rCntr][$value] . '"/>';
344
+                            $sReturn .= '&nbsp;<input type="checkbox" name="'.$checkboxName
345
+                                    . '" id="n'.$aElements[$rCntr][$value].'" value="'
346
+                                    . $aElements[$rCntr][$value].'"/>';
347 347
                             break;
348 348
                         case 'delete':
349
-                            $sReturn       .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\'';
350
-                            $iActArgs      = count($value[1]);
349
+                            $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\'';
350
+                            $iActArgs = count($value[1]);
351 351
                             for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) {
352
-                                $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]];
352
+                                $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]];
353 353
                             }
354
-                            $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times">&nbsp;</i></a>';
354
+                            $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times">&nbsp;</i></a>';
355 355
                             break;
356 356
                         case 'edit':
357 357
                         case 'list2':
358 358
                         case 'schedule':
359
-                            $vIc     = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half'));
359
+                            $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half'));
360 360
                             $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [
361
-                                'vIcon'    => 'fa fa-' . $vIc,
361
+                                'vIcon'    => 'fa fa-'.$vIc,
362 362
                                 'aPrefix'  => $actPrfx,
363 363
                                 'aKey'     => $actionKey,
364 364
                                 'rCounter' => $rCntr,
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
                     switch ($value[1]) {
387 387
                         case '/':
388 388
                             // next variable is only to avoid a long line
389
-                            $shorter                 = [
389
+                            $shorter = [
390 390
                                 $aElements[$rCntr][$value[3]],
391 391
                                 $aElements[$rCntr][$value[4]],
392 392
                             ];
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
                             break;
395 395
                         case '+':
396 396
                             // next variable is only to avoid a long line
397
-                            $iTemp                   = $this->setArrayValuesAsKey([
397
+                            $iTemp = $this->setArrayValuesAsKey([
398 398
                                 $value[0],
399 399
                                 $value[1],
400 400
                                 $value[2]
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                     }
412 412
                     if ($value[0] == '%') {
413 413
                         $rowComputed[$key] = ($aElements[$rCntr][$key] * 100);
414
-                        $dec               -= 2;
414
+                        $dec -= 2;
415 415
                     } else {
416 416
                         $rowComputed[$key] = $aElements[$rCntr][$key];
417 417
                     }
@@ -423,59 +423,59 @@  discard block
 block discarded – undo
423 423
             $sReturn .= '</tr>';
424 424
         }
425 425
         if (isset($iStartingPageRecord)) {
426
-            $pgn     = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
427
-            $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>';
426
+            $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]);
427
+            $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>';
428 428
         }
429 429
         $sReturn .= '</tbody></table>';
430 430
         if ($ftrs['grouping_cell_type'] == 'tab') {
431 431
             if (isset($ftrs['showGroupingCounter'])) {
432 432
                 $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter);
433 433
             }
434
-            $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->';
434
+            $sReturn .= '</div><!-- from '.$remindGroupValue.' -->';
435 435
             if (!isset($ftrs['noGlobalTab'])) {
436 436
                 $sReturn .= '</div><!-- from global tab -->';
437 437
             }
438 438
         }
439 439
         if (isset($ftrs['actions']['checkbox'])) {
440 440
             if (strpos($_REQUEST['view'], 'multiEdit') === false) {
441
-                $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
442
-                        . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
443
-                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
444
-                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
445
-                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
441
+                $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
442
+                        . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
443
+                        . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
444
+                        . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;'
445
+                        . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />';
446 446
                 if (isset($ftrs['hiddenInput'])) {
447 447
                     if (is_array($ftrs['hiddenInput'])) {
448 448
                         foreach ($ftrs['hiddenInput'] as $valueF) {
449
-                            $sReturn .= '<input type="hidden" name="' . $valueF
450
-                                    . '" value="' . $_REQUEST[$valueF] . '" />';
449
+                            $sReturn .= '<input type="hidden" name="'.$valueF
450
+                                    . '" value="'.$_REQUEST[$valueF].'" />';
451 451
                         }
452 452
                     } else {
453
-                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
454
-                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
453
+                        $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
454
+                                . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
455 455
                     }
456 456
                 }
457
-                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
457
+                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />';
458 458
             }
459 459
             $sReturn .= '</form>';
460 460
         }
461 461
         if (isset($ftrs['actions']['checkbox_inlineEdit'])) {
462
-            $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
463
-                    . '\',\'' . $checkboxName . '\',true);">Check All</a>&nbsp;&nbsp;'
464
-                    . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
465
-                    . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;';
462
+            $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
463
+                    . '\',\''.$checkboxName.'\',true);">Check All</a>&nbsp;&nbsp;'
464
+                    . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId
465
+                    . '\',\''.$checkboxName.'\',false);">Uncheck All</a>&nbsp;&nbsp;';
466 466
             if (isset($ftrs['visibleInput'])) {
467 467
                 $sReturn .= $ftrs['visibleInput'];
468 468
             }
469
-            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
469
+            $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />';
470 470
             if (isset($ftrs['hiddenInput'])) {
471 471
                 if (is_array($ftrs['hiddenInput'])) {
472 472
                     foreach ($ftrs['hiddenInput'] as $valueF) {
473
-                        $sReturn .= '<input type="hidden" name="' . $valueF
474
-                                . '" value="' . $_REQUEST[$valueF] . '" />';
473
+                        $sReturn .= '<input type="hidden" name="'.$valueF
474
+                                . '" value="'.$_REQUEST[$valueF].'" />';
475 475
                     }
476 476
                 } else {
477
-                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
478
-                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
477
+                    $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput']
478
+                            . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />';
479 479
                 }
480 480
             }
481 481
             $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
@@ -495,12 +495,12 @@  discard block
 block discarded – undo
495 495
     {
496 496
         return $this->setStringIntoTag('&nbsp;', 'span', [
497 497
                     'onclick' => implode('', [
498
-                        'javascript:NewCssCal(\'' . $controlName,
498
+                        'javascript:NewCssCal(\''.$controlName,
499 499
                         '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);',
500 500
                     ]),
501 501
                     'class'   => 'fa fa-calendar',
502
-                    'id'      => $controlName . '_picker',
503
-                    'style'   => 'cursor:pointer;' . $additionalStyle,
502
+                    'id'      => $controlName.'_picker',
503
+                    'style'   => 'cursor:pointer;'.$additionalStyle,
504 504
         ]);
505 505
     }
506 506
 
@@ -515,30 +515,30 @@  discard block
 block discarded – undo
515 515
     {
516 516
         return $this->setStringIntoTag('&nbsp;', 'span', [
517 517
                     'onclick' => implode('', [
518
-                        'javascript:NewCssCal(\'' . $controlName,
518
+                        'javascript:NewCssCal(\''.$controlName,
519 519
                         '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);',
520 520
                     ]),
521 521
                     'class'   => 'fa fa-calendar',
522
-                    'id'      => $controlName . '_picker',
523
-                    'style'   => 'cursor:pointer;' . $additionalStyle,
522
+                    'id'      => $controlName.'_picker',
523
+                    'style'   => 'cursor:pointer;'.$additionalStyle,
524 524
         ]);
525 525
     }
526 526
 
527 527
     private function setDynamicActionToSpecialCell($val, $aElements, $inP)
528 528
     {
529 529
         $aArgumemts   = [];
530
-        $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0];
530
+        $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0];
531 531
         $iActArgs     = count($val[1]);
532 532
         for ($counter = 0; $counter < $iActArgs; $counter++) {
533
-            $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]];
533
+            $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]];
534 534
         }
535
-        $id = $inP['key'] . $inP['rCounter'];
535
+        $id = $inP['key'].$inP['rCounter'];
536 536
         if (isset($inP['Features']['NoAjaxEditing'])) {
537
-            return '<a href="' . implode('&amp;', $aArgumemts) . '" id="' . $id . '"><i class="'
538
-                    . $inP['vIcon'] . '">&nbsp;</i></a>';
537
+            return '<a href="'.implode('&amp;', $aArgumemts).'" id="'.$id.'"><i class="'
538
+                    . $inP['vIcon'].'">&nbsp;</i></a>';
539 539
         }
540
-        return '<a href="#" onclick="javascript:loadAE(\'' . implode('&amp;', $aArgumemts) . '\');"'
541
-                . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '">&nbsp;</i></a>';
540
+        return '<a href="#" onclick="javascript:loadAE(\''.implode('&amp;', $aArgumemts).'\');"'
541
+                . ' id="'.$id.'"><i class="'.$inP['vIcon'].'">&nbsp;</i></a>';
542 542
     }
543 543
 
544 544
     /**
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
         if (!is_null($sHK) && (in_array('noHeader', $sHK))) {
554 554
             return '';
555 555
         }
556
-        return $this->setFooterCommonInjected($footerInjected) . '</body></html>';
556
+        return $this->setFooterCommonInjected($footerInjected).'</body></html>';
557 557
     }
558 558
 
559 559
     protected function setFooterCommonInjected($footerInjected = null)
@@ -586,11 +586,11 @@  discard block
 block discarded – undo
586 586
                 'lang'     => '<html lang="en-US">',
587 587
                 'head'     => '<head>',
588 588
                 'charset'  => '<meta charset="utf-8" />',
589
-                'viewport' => '<meta name="viewport" content="' . implode(', ', [
589
+                'viewport' => '<meta name="viewport" content="'.implode(', ', [
590 590
                     'width=device-width',
591 591
                     'height=device-height',
592 592
                     'initial-scale=1',
593
-                ]) . '" />',
593
+                ]).'" />',
594 594
             ];
595 595
             if (!is_null($headerFeatures)) {
596 596
                 if (is_array($headerFeatures)) {
@@ -618,11 +618,11 @@  discard block
 block discarded – undo
618 618
                                 break;
619 619
                             case 'lang':
620 620
                                 $fixedHeaderElements['lang'] = '<html lang="'
621
-                                        . filter_var($value, FILTER_SANITIZE_STRING) . '">';
621
+                                        . filter_var($value, FILTER_SANITIZE_STRING).'">';
622 622
                                 break;
623 623
                             case 'title':
624
-                                $aFeatures[]                 = '<title>'
625
-                                        . filter_var($value, FILTER_SANITIZE_STRING) . '</title>';
624
+                                $aFeatures[] = '<title>'
625
+                                        . filter_var($value, FILTER_SANITIZE_STRING).'</title>';
626 626
                                 break;
627 627
                         }
628 628
                     }
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
                             . '</head>'
636 636
                             . '<body>'
637 637
                             . '<p style="background-color:red;color:#FFF;">The parameter sent to '
638
-                            . __FUNCTION__ . ' must be an array</p>'
638
+                            . __FUNCTION__.' must be an array</p>'
639 639
                             . $this->setFooterCommon();
640 640
                     throw new \Exception($sReturn);
641 641
                 }
@@ -663,10 +663,10 @@  discard block
 block discarded – undo
663 663
                 if (isset($features['column_formatting'][$key])) {
664 664
                     switch ($features['column_formatting'][$key]) {
665 665
                         case '@':
666
-                            $sReturn .= 'style="text-align:left;">' . $value;
666
+                            $sReturn .= 'style="text-align:left;">'.$value;
667 667
                             break;
668 668
                         case 'right':
669
-                            $sReturn .= 'style="text-align:right;">' . $value;
669
+                            $sReturn .= 'style="text-align:right;">'.$value;
670 670
                             break;
671 671
                         default:
672 672
                             $sReturn .= '???';
@@ -680,12 +680,12 @@  discard block
 block discarded – undo
680 680
                         if ((strpos($value, '-') !== false) && (strlen($value) == 10)) {
681 681
                             if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) {
682 682
                                 $outputet = true;
683
-                                $sReturn  .= 'style="text-align:right;width: 10px;">'
684
-                                        . $regs[3] . '.' . $regs[2] . '.' . $regs[1];
683
+                                $sReturn .= 'style="text-align:right;width: 10px;">'
684
+                                        . $regs[3].'.'.$regs[2].'.'.$regs[1];
685 685
                             }
686 686
                         }
687 687
                         if (!$outputet) {
688
-                            $sReturn .= 'style="text-align:left;">' . $value;
688
+                            $sReturn .= 'style="text-align:left;">'.$value;
689 689
                         }
690 690
                     }
691 691
                 }
@@ -711,11 +711,11 @@  discard block
 block discarded – undo
711 711
     {
712 712
         $styleToReturn = 'style="text-align: right;">';
713 713
         if (substr($value, 0, 1) === '0') {
714
-            return $styleToReturn . $value;
714
+            return $styleToReturn.$value;
715 715
         }
716 716
         $decimals = $this->setTableCellDecimals($key, $features);
717 717
         $nDc      = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals];
718
-        return $styleToReturn . $this->setNumberFormat($value, $nDc);
718
+        return $styleToReturn.$this->setNumberFormat($value, $nDc);
719 719
     }
720 720
 
721 721
     /**
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
         $this->handleLanguageIntoSession();
752 752
         return '<div class="upperRightBox">'
753 753
                 . '<div style="text-align:right;">'
754
-                . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2))
754
+                . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2))
755 755
                 . '" style="margin-right:2px;">&nbsp;</span>'
756 756
                 . $aAvailableLanguages[$this->tCmnSession->get('lang')]
757 757
                 . '</div><!-- default Language -->'
@@ -764,17 +764,17 @@  discard block
 block discarded – undo
764 764
         $linkWithoutLanguage = '';
765 765
         $alR                 = $this->tCmnSuperGlobals->query->all();
766 766
         if (count($alR) > 0) {
767
-            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']) . '&amp;';
767
+            $linkWithoutLanguage = $this->setArrayToStringForUrl('&amp;', $alR, ['lang']).'&amp;';
768 768
         }
769 769
         $sReturn = [];
770 770
         foreach ($aAvailableLanguages as $key => $value) {
771 771
             if ($this->tCmnSession->get('lang') !== $key) {
772
-                $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">'
773
-                        . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2))
774
-                        . '" style="margin-right:2px;">&nbsp;</span>' . $value . '</a>';
772
+                $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">'
773
+                        . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2))
774
+                        . '" style="margin-right:2px;">&nbsp;</span>'.$value.'</a>';
775 775
             }
776 776
         }
777
-        return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->';
777
+        return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->';
778 778
     }
779 779
 
780 780
 }
Please login to merge, or discard this patch.