Code Duplication    Length = 7-9 lines in 2 locations

src/Helpers/Html.php 2 locations

@@ 653-659 (lines=7) @@
650
        $uVariables = $uVariables + self::$defaults;
651
        $tResult = String::format($uVariables["table_table"], []);
652
653
        if (count($uHeaders) > 0) {
654
            $tResult .= "<tr>";
655
            foreach ($uHeaders as $tColumn) {
656
                $tResult .= String::format($uVariables["table_header"], ["value" => $tColumn]);
657
            }
658
            $tResult .= "</tr>";
659
        }
660
661
        $tCount = 0;
662
        foreach ($uData as $tRow) {
@@ 668-676 (lines=9) @@
665
            } else {
666
                if (isset($uVariables["row"])) {
667
                    $tResult .= String::format($uVariables["table_row"], $tRow);
668
                } else {
669
                    $tResult .= "<tr>";
670
671
                    foreach ($tRow as $tColumn) {
672
                        $tResult .= String::format($uVariables["table_cell"], ["value" => $tColumn]);
673
                    }
674
675
                    $tResult .= "</tr>";
676
                }
677
            }
678
        }
679