Code Duplication    Length = 5-6 lines in 2 locations

main/group/import.php 1 location

@@ 52-57 (lines=6) @@
49
50
                $html .= " <h3>".get_lang(ucfirst($status)).' </h3>';
51
52
                if (!empty($data['category'])) {
53
                    $html .= "<h4> ".get_lang('Categories').':</h4>';
54
                    foreach ($data['category'] as $category) {
55
                        $html .= "<div>".$category['category']."</div>";
56
                    }
57
                }
58
59
                if (!empty($data['group'])) {
60
                    $html .= "<h4> ".get_lang('Groups').':</h4>';

src/Chamilo/CoreBundle/Framework/PageController.php 1 location

@@ 718-722 (lines=5) @@
715
                        ).'?category='.$catLine['parent_id'].'">&lt;&lt; '.get_lang('Up').'</a>';
716
                    }
717
                    $htmlTitre .= "</p>";
718
                    if ($category != "" && !is_null($catLine['code'])) {
719
                        $htmlTitre .= '<h3>'.$catLine['name']."</h3>";
720
                    } else {
721
                        $htmlTitre .= '<h3>'.get_lang('Categories')."</h3>";
722
                    }
723
                }
724
            }
725
            $htmlListCat .= "</ul>";