Code Duplication    Length = 19-21 lines in 2 locations

manager/actions/mutate_content.dynamic.php 2 locations

@@ 980-1000 (lines=21) @@
977
                                    <table>';
978
                                                    }
979
                                                } else if ($group_tvs == 2 || $group_tvs == 4) {
980
                                                    if ($i === 0) {
981
                                                        $templateVariablesOutput .= '
982
                            <div id="tabTV_' . $row['category_id'] . '" class="tab-page tmplvars">
983
                                <h2 class="tab">' . $row['category'] . '</h2>
984
                                <script type="text/javascript">tpTemplateVariables.addTabPage(document.getElementById(\'tabTV_' . $row['category_id'] . '\'));</script>
985
986
                                <div class="tab-body tmplvars">
987
                                    <table>';
988
                                                    } else {
989
                                                        $templateVariablesOutput .= '
990
                                    </table>
991
                                </div>
992
                            </div>
993
994
                            <div id="tabTV_' . $row['category_id'] . '" class="tab-page tmplvars">
995
                                <h2 class="tab">' . $row['category'] . '</h2>
996
                                <script type="text/javascript">tpTemplateVariables.addTabPage(document.getElementById(\'tabTV_' . $row['category_id'] . '\'));</script>
997
998
                                <div class="tab-body tmplvars">
999
                                    <table>';
1000
                                                    }
1001
                                                } else if ($group_tvs == 5) {
1002
                                                    if ($i === 0) {
1003
                                                        $templateVariablesOutput .= '
@@ 1001-1019 (lines=19) @@
998
                                <div class="tab-body tmplvars">
999
                                    <table>';
1000
                                                    }
1001
                                                } else if ($group_tvs == 5) {
1002
                                                    if ($i === 0) {
1003
                                                        $templateVariablesOutput .= '
1004
                                <div id="tabTV_' . $row['category_id'] . '" class="tab-page tmplvars">
1005
                                    <h2 class="tab">' . $row['category'] . '</h2>
1006
                                    <script type="text/javascript">tpSettings.addTabPage(document.getElementById(\'tabTV_' . $row['category_id'] . '\'));</script>
1007
                                    <table>';
1008
                                                    } else {
1009
                                                        $templateVariablesOutput .= '
1010
                                    </table>
1011
                                </div>
1012
1013
                                <div id="tabTV_' . $row['category_id'] . '" class="tab-page tmplvars">
1014
                                    <h2 class="tab">' . $row['category'] . '</h2>
1015
                                    <script type="text/javascript">tpSettings.addTabPage(document.getElementById(\'tabTV_' . $row['category_id'] . '\'));</script>
1016
1017
                                    <table>';
1018
                                                    }
1019
                                                }
1020
                                                $split = 0;
1021
                                            } else {
1022
                                                $split = 1;