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