@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | $ditTitle .= ' (0)'; |
63 | 63 | } |
64 | 64 | $divTab = [ |
65 | - 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">', |
|
65 | + 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">', |
|
66 | 66 | 'end' => '</div><!-- from tab_NoData -->', |
67 | 67 | ]; |
68 | 68 | if (!isset($ftrs['noGlobalTab'])) { |
69 | 69 | $divTab = [ |
70 | - 'start' => '<div class="tabber" id="tab">' . $divTab['start'], |
|
71 | - 'end' => $divTab['end'] . '</div><!-- from global Tab -->', |
|
70 | + 'start' => '<div class="tabber" id="tab">'.$divTab['start'], |
|
71 | + 'end' => $divTab['end'].'</div><!-- from global Tab -->', |
|
72 | 72 | ]; |
73 | 73 | } |
74 | 74 | } |
@@ -91,14 +91,14 @@ discard block |
||
91 | 91 | } |
92 | 92 | $checkboxFormId = ''; |
93 | 93 | if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) { |
94 | - $checkboxFormId = 'frm' . date('YmdHis'); |
|
95 | - $sReturn .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId |
|
96 | - . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >'; |
|
94 | + $checkboxFormId = 'frm'.date('YmdHis'); |
|
95 | + $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId |
|
96 | + . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >'; |
|
97 | 97 | } |
98 | 98 | $tbl = []; |
99 | 99 | $tbl['Def'] = '<table' |
100 | - . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '') |
|
101 | - . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '') |
|
100 | + . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '') |
|
101 | + . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '') |
|
102 | 102 | . '>'; |
103 | 103 | if (!isset($ftrs['grouping_cell_type'])) { |
104 | 104 | $ftrs['grouping_cell_type'] = 'row'; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $sReturn .= $tbl['Head']; |
140 | 140 | } |
141 | 141 | if (isset($iStartingPageRecord)) { |
142 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
142 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
143 | 143 | $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [ |
144 | 144 | 'colspan' => $iTableColumns |
145 | 145 | ]), 'tr'); |
@@ -181,22 +181,22 @@ discard block |
||
181 | 181 | } |
182 | 182 | $remebered_value = $color_column_value; |
183 | 183 | } |
184 | - $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"'; |
|
184 | + $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"'; |
|
185 | 185 | } else { |
186 | 186 | if (isset($ftrs['RowStyle'])) { |
187 | - $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"'; |
|
187 | + $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"'; |
|
188 | 188 | } else { |
189 | 189 | $color = ''; |
190 | 190 | } |
191 | 191 | } |
192 | - $tbl['tr_Color'] = '<tr' . $color . '>'; |
|
192 | + $tbl['tr_Color'] = '<tr'.$color.'>'; |
|
193 | 193 | // Grouping column |
194 | 194 | if (isset($ftrs['grouping_cell'])) { |
195 | 195 | foreach ($aElements[$rCntr] as $key => $value) { |
196 | 196 | if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) { |
197 | 197 | switch ($ftrs['grouping_cell_type']) { |
198 | 198 | case 'row': |
199 | - $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">' |
|
199 | + $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">' |
|
200 | 200 | . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded']) |
201 | 201 | . '</td></tr>'; |
202 | 202 | break; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | } else { |
209 | 209 | $sReturn .= '</tbody></table>'; |
210 | 210 | if (isset($ftrs['showGroupingCounter'])) { |
211 | - $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
211 | + $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
212 | 212 | $groupCounter = 0; |
213 | 213 | } |
214 | 214 | $sReturn .= '</div>'; |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | if (isset($ftrs['grouping_default_tab'])) { |
218 | 218 | $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : ''); |
219 | 219 | } |
220 | - $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" ' |
|
221 | - . 'title="' . $value . '">' |
|
222 | - . $tbl['Def'] . $tbl['Head'] . $tbl['Header']; |
|
220 | + $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" ' |
|
221 | + . 'title="'.$value.'">' |
|
222 | + . $tbl['Def'].$tbl['Head'].$tbl['Header']; |
|
223 | 223 | break; |
224 | 224 | } |
225 | 225 | $remindGroupValue = $value; |
@@ -233,12 +233,12 @@ discard block |
||
233 | 233 | } |
234 | 234 | } |
235 | 235 | } |
236 | - $sReturn .= $tbl['tr_Color']; |
|
236 | + $sReturn .= $tbl['tr_Color']; |
|
237 | 237 | // Action column |
238 | 238 | $checkboxName = ''; |
239 | 239 | $checkboxNameS = ''; |
240 | 240 | if (isset($ftrs['actions'])) { |
241 | - $sReturn .= '<td style="white-space:nowrap;">'; |
|
241 | + $sReturn .= '<td style="white-space:nowrap;">'; |
|
242 | 242 | $action_argument = 0; |
243 | 243 | if (isset($ftrs['actions']['key'])) { |
244 | 244 | $actionKey = $ftrs['actions']['key']; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $actionKey = 'view'; |
247 | 247 | } |
248 | 248 | if (isset($ftrs['action_prefix'])) { |
249 | - $actPrfx = $ftrs['action_prefix'] . '&'; |
|
249 | + $actPrfx = $ftrs['action_prefix'].'&'; |
|
250 | 250 | $actionKey = 'view2'; |
251 | 251 | } else { |
252 | 252 | $actPrfx = ''; |
@@ -257,11 +257,11 @@ discard block |
||
257 | 257 | } |
258 | 258 | switch ($key) { |
259 | 259 | case 'checkbox': |
260 | - $checkboxName = $value . '[]'; |
|
260 | + $checkboxName = $value.'[]'; |
|
261 | 261 | $checkboxNameS = $value; |
262 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
263 | - . '" id="n' . $aElements[$rCntr][$value] |
|
264 | - . '" value="' . $aElements[$rCntr][$value] . '" '; |
|
262 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
263 | + . '" id="n'.$aElements[$rCntr][$value] |
|
264 | + . '" value="'.$aElements[$rCntr][$value].'" '; |
|
265 | 265 | if (isset($_REQUEST[$checkboxNameS])) { |
266 | 266 | if (is_array($_REQUEST[$checkboxNameS])) { |
267 | 267 | if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) { |
@@ -276,29 +276,29 @@ discard block |
||
276 | 276 | if (strpos($_REQUEST['view'], 'multiEdit') !== false) { |
277 | 277 | $sReturn .= 'disabled="disabled" '; |
278 | 278 | } |
279 | - $sReturn .= '/>'; |
|
279 | + $sReturn .= '/>'; |
|
280 | 280 | break; |
281 | 281 | case 'checkbox_inlineEdit': |
282 | - $checkboxName = $value . '[]'; |
|
282 | + $checkboxName = $value.'[]'; |
|
283 | 283 | $checkboxNameS = $value; |
284 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
285 | - . '" id="n' . $aElements[$rCntr][$value] . '" value="' |
|
286 | - . $aElements[$rCntr][$value] . '"/>'; |
|
284 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
285 | + . '" id="n'.$aElements[$rCntr][$value].'" value="' |
|
286 | + . $aElements[$rCntr][$value].'"/>'; |
|
287 | 287 | break; |
288 | 288 | case 'delete': |
289 | - $sReturn .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\''; |
|
290 | - $iActArgs = count($value[1]); |
|
289 | + $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\''; |
|
290 | + $iActArgs = count($value[1]); |
|
291 | 291 | for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) { |
292 | - $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]]; |
|
292 | + $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]]; |
|
293 | 293 | } |
294 | - $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times"> </i></a>'; |
|
294 | + $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times"> </i></a>'; |
|
295 | 295 | break; |
296 | 296 | case 'edit': |
297 | 297 | case 'list2': |
298 | 298 | case 'schedule': |
299 | - $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
299 | + $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
300 | 300 | $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [ |
301 | - 'vIcon' => 'fa fa-' . $vIc, |
|
301 | + 'vIcon' => 'fa fa-'.$vIc, |
|
302 | 302 | 'aPrefix' => $actPrfx, |
303 | 303 | 'aKey' => $actionKey, |
304 | 304 | 'rCounter' => $rCntr, |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | switch ($value[1]) { |
327 | 327 | case '/': |
328 | 328 | // next variable is only to avoid a long line |
329 | - $shorter = [ |
|
329 | + $shorter = [ |
|
330 | 330 | $aElements[$rCntr][$value[3]], |
331 | 331 | $aElements[$rCntr][$value[4]], |
332 | 332 | ]; |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | break; |
335 | 335 | case '+': |
336 | 336 | // next variable is only to avoid a long line |
337 | - $iTemp = $this->setArrayValuesAsKey([ |
|
337 | + $iTemp = $this->setArrayValuesAsKey([ |
|
338 | 338 | $value[0], |
339 | 339 | $value[1], |
340 | 340 | $value[2] |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | } |
352 | 352 | if ($value[0] == '%') { |
353 | 353 | $rowComputed[$key] = ($aElements[$rCntr][$key] * 100); |
354 | - $dec -= 2; |
|
354 | + $dec -= 2; |
|
355 | 355 | } else { |
356 | 356 | $rowComputed[$key] = $aElements[$rCntr][$key]; |
357 | 357 | } |
@@ -363,59 +363,59 @@ discard block |
||
363 | 363 | $sReturn .= '</tr>'; |
364 | 364 | } |
365 | 365 | if (isset($iStartingPageRecord)) { |
366 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
367 | - $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>'; |
|
366 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
367 | + $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>'; |
|
368 | 368 | } |
369 | 369 | $sReturn .= '</tbody></table>'; |
370 | 370 | if ($ftrs['grouping_cell_type'] == 'tab') { |
371 | 371 | if (isset($ftrs['showGroupingCounter'])) { |
372 | 372 | $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
373 | 373 | } |
374 | - $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->'; |
|
374 | + $sReturn .= '</div><!-- from '.$remindGroupValue.' -->'; |
|
375 | 375 | if (!isset($ftrs['noGlobalTab'])) { |
376 | 376 | $sReturn .= '</div><!-- from global tab -->'; |
377 | 377 | } |
378 | 378 | } |
379 | 379 | if (isset($ftrs['actions']['checkbox'])) { |
380 | 380 | if (strpos($_REQUEST['view'], 'multiEdit') === false) { |
381 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
382 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
383 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
384 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> ' |
|
385 | - . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />'; |
|
381 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
382 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
383 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
384 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> ' |
|
385 | + . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />'; |
|
386 | 386 | if (isset($ftrs['hiddenInput'])) { |
387 | 387 | if (is_array($ftrs['hiddenInput'])) { |
388 | 388 | foreach ($ftrs['hiddenInput'] as $valueF) { |
389 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
390 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
389 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
390 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
391 | 391 | } |
392 | 392 | } else { |
393 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
394 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
393 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
394 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
395 | 395 | } |
396 | 396 | } |
397 | - $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />'; |
|
397 | + $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />'; |
|
398 | 398 | } |
399 | 399 | $sReturn .= '</form>'; |
400 | 400 | } |
401 | 401 | if (isset($ftrs['actions']['checkbox_inlineEdit'])) { |
402 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
403 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
404 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
405 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> '; |
|
402 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
403 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
404 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
405 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> '; |
|
406 | 406 | if (isset($ftrs['visibleInput'])) { |
407 | 407 | $sReturn .= $ftrs['visibleInput']; |
408 | 408 | } |
409 | - $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />'; |
|
409 | + $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />'; |
|
410 | 410 | if (isset($ftrs['hiddenInput'])) { |
411 | 411 | if (is_array($ftrs['hiddenInput'])) { |
412 | 412 | foreach ($ftrs['hiddenInput'] as $valueF) { |
413 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
414 | - . '" value="' . $_REQUEST[$valueF] . '" />'; |
|
413 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
414 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
415 | 415 | } |
416 | 416 | } else { |
417 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
418 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
417 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
418 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
419 | 419 | } |
420 | 420 | } |
421 | 421 | $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />'; |
@@ -435,12 +435,12 @@ discard block |
||
435 | 435 | { |
436 | 436 | return $this->setStringIntoTag(' ', 'span', [ |
437 | 437 | 'onclick' => implode('', [ |
438 | - 'javascript:NewCssCal(\'' . $controlName, |
|
438 | + 'javascript:NewCssCal(\''.$controlName, |
|
439 | 439 | '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
440 | 440 | ]), |
441 | 441 | 'class' => 'fa fa-calendar', |
442 | - 'id' => $controlName . '_picker', |
|
443 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
442 | + 'id' => $controlName.'_picker', |
|
443 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
444 | 444 | ]); |
445 | 445 | } |
446 | 446 | |
@@ -455,30 +455,30 @@ discard block |
||
455 | 455 | { |
456 | 456 | return $this->setStringIntoTag(' ', 'span', [ |
457 | 457 | 'onclick' => implode('', [ |
458 | - 'javascript:NewCssCal(\'' . $controlName, |
|
458 | + 'javascript:NewCssCal(\''.$controlName, |
|
459 | 459 | '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
460 | 460 | ]), |
461 | 461 | 'class' => 'fa fa-calendar', |
462 | - 'id' => $controlName . '_picker', |
|
463 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
462 | + 'id' => $controlName.'_picker', |
|
463 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
464 | 464 | ]); |
465 | 465 | } |
466 | 466 | |
467 | 467 | private function setDynamicActionToSpecialCell($val, $aElements, $inP) |
468 | 468 | { |
469 | 469 | $aArgumemts = []; |
470 | - $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0]; |
|
470 | + $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0]; |
|
471 | 471 | $iActArgs = count($val[1]); |
472 | 472 | for ($counter = 0; $counter < $iActArgs; $counter++) { |
473 | - $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]]; |
|
473 | + $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]]; |
|
474 | 474 | } |
475 | - $id = $inP['key'] . $inP['rCounter']; |
|
475 | + $id = $inP['key'].$inP['rCounter']; |
|
476 | 476 | if (isset($inP['Features']['NoAjaxEditing'])) { |
477 | - return '<a href="' . implode('&', $aArgumemts) . '" id="' . $id . '"><i class="' |
|
478 | - . $inP['vIcon'] . '"> </i></a>'; |
|
477 | + return '<a href="'.implode('&', $aArgumemts).'" id="'.$id.'"><i class="' |
|
478 | + . $inP['vIcon'].'"> </i></a>'; |
|
479 | 479 | } |
480 | - return '<a href="#" onclick="javascript:loadAE(\'' . implode('&', $aArgumemts) . '\');"' |
|
481 | - . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '"> </i></a>'; |
|
480 | + return '<a href="#" onclick="javascript:loadAE(\''.implode('&', $aArgumemts).'\');"' |
|
481 | + . ' id="'.$id.'"><i class="'.$inP['vIcon'].'"> </i></a>'; |
|
482 | 482 | } |
483 | 483 | |
484 | 484 | /** |
@@ -493,7 +493,7 @@ discard block |
||
493 | 493 | if (!is_null($sHK) && (in_array('noHeader', $sHK))) { |
494 | 494 | return ''; |
495 | 495 | } |
496 | - return $this->setFooterCommonInjected($footerInjected) . '</body></html>'; |
|
496 | + return $this->setFooterCommonInjected($footerInjected).'</body></html>'; |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | protected function setFooterCommonInjected($footerInjected = null) |
@@ -526,11 +526,11 @@ discard block |
||
526 | 526 | 'lang' => '<html lang="en-US">', |
527 | 527 | 'head' => '<head>', |
528 | 528 | 'charset' => '<meta charset="utf-8" />', |
529 | - 'viewport' => '<meta name="viewport" content="' . implode(', ', [ |
|
529 | + 'viewport' => '<meta name="viewport" content="'.implode(', ', [ |
|
530 | 530 | 'width=device-width', |
531 | 531 | 'height=device-height', |
532 | 532 | 'initial-scale=1', |
533 | - ]) . '" />', |
|
533 | + ]).'" />', |
|
534 | 534 | ]; |
535 | 535 | if ($headerFeatures !== []) { |
536 | 536 | $aFeatures = []; |
@@ -557,11 +557,11 @@ discard block |
||
557 | 557 | break; |
558 | 558 | case 'lang': |
559 | 559 | $fixedHeaderElements['lang'] = '<html lang="' |
560 | - . filter_var($value, FILTER_SANITIZE_STRING) . '">'; |
|
560 | + . filter_var($value, FILTER_SANITIZE_STRING).'">'; |
|
561 | 561 | break; |
562 | 562 | case 'title': |
563 | - $aFeatures[] = '<title>' |
|
564 | - . filter_var($value, FILTER_SANITIZE_STRING) . '</title>'; |
|
563 | + $aFeatures[] = '<title>' |
|
564 | + . filter_var($value, FILTER_SANITIZE_STRING).'</title>'; |
|
565 | 565 | break; |
566 | 566 | } |
567 | 567 | } |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | . '</head>' |
575 | 575 | . '<body>' |
576 | 576 | . '<p style="background-color:red;color:#FFF;">The parameter sent to ' |
577 | - . __FUNCTION__ . ' must be a non-empty array</p>' |
|
577 | + . __FUNCTION__.' must be a non-empty array</p>' |
|
578 | 578 | . $this->setFooterCommon(); |
579 | 579 | throw new \Exception(implode('', $sReturn)); |
580 | 580 | } |
@@ -601,10 +601,10 @@ discard block |
||
601 | 601 | if (isset($features['column_formatting'][$key])) { |
602 | 602 | switch ($features['column_formatting'][$key]) { |
603 | 603 | case '@': |
604 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
604 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
605 | 605 | break; |
606 | 606 | case 'right': |
607 | - $sReturn .= 'style="text-align:right;">' . $value; |
|
607 | + $sReturn .= 'style="text-align:right;">'.$value; |
|
608 | 608 | break; |
609 | 609 | default: |
610 | 610 | $sReturn .= '???'; |
@@ -618,12 +618,12 @@ discard block |
||
618 | 618 | if ((strpos($value, '-') !== false) && (strlen($value) == 10)) { |
619 | 619 | if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) { |
620 | 620 | $outputet = true; |
621 | - $sReturn .= 'style="text-align:right;width: 10px;">' |
|
622 | - . $regs[3] . '.' . $regs[2] . '.' . $regs[1]; |
|
621 | + $sReturn .= 'style="text-align:right;width: 10px;">' |
|
622 | + . $regs[3].'.'.$regs[2].'.'.$regs[1]; |
|
623 | 623 | } |
624 | 624 | } |
625 | 625 | if (!$outputet) { |
626 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
626 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
627 | 627 | } |
628 | 628 | } |
629 | 629 | } |
@@ -649,11 +649,11 @@ discard block |
||
649 | 649 | { |
650 | 650 | $styleToReturn = 'style="text-align: right;">'; |
651 | 651 | if (substr($value, 0, 1) === '0') { |
652 | - return $styleToReturn . $value; |
|
652 | + return $styleToReturn.$value; |
|
653 | 653 | } |
654 | 654 | $decimals = $this->setTableCellDecimals($key, $features); |
655 | 655 | $nDc = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals]; |
656 | - return $styleToReturn . $this->setNumberFormat($value, $nDc); |
|
656 | + return $styleToReturn.$this->setNumberFormat($value, $nDc); |
|
657 | 657 | } |
658 | 658 | |
659 | 659 | /** |
@@ -689,7 +689,7 @@ discard block |
||
689 | 689 | $this->handleLanguageIntoSession(); |
690 | 690 | return '<div class="upperRightBox">' |
691 | 691 | . '<div style="text-align:right;">' |
692 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
692 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
693 | 693 | . '" style="margin-right:2px;"> </span>' |
694 | 694 | . $aAvailableLanguages[$this->tCmnSession->get('lang')] |
695 | 695 | . '</div><!-- default Language -->' |
@@ -702,17 +702,17 @@ discard block |
||
702 | 702 | $linkWithoutLanguage = ''; |
703 | 703 | $alR = $this->tCmnSuperGlobals->query->all(); |
704 | 704 | if (count($alR) > 0) { |
705 | - $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']) . '&'; |
|
705 | + $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']).'&'; |
|
706 | 706 | } |
707 | 707 | $sReturn = []; |
708 | 708 | foreach ($aAvailableLanguages as $key => $value) { |
709 | 709 | if ($this->tCmnSession->get('lang') !== $key) { |
710 | - $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">' |
|
711 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2)) |
|
712 | - . '" style="margin-right:2px;"> </span>' . $value . '</a>'; |
|
710 | + $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">' |
|
711 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2)) |
|
712 | + . '" style="margin-right:2px;"> </span>'.$value.'</a>'; |
|
713 | 713 | } |
714 | 714 | } |
715 | - return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->'; |
|
715 | + return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->'; |
|
716 | 716 | } |
717 | 717 | |
718 | 718 | } |