Code Duplication    Length = 5-5 lines in 2 locations

core/Navigation.php 2 locations

@@ 39-43 (lines=5) @@
36
					->where("module.ID_module", "=", $id_module)
37
					->get();
38
39
				if (is_array($query) && (count($query) > 0)) {
40
					foreach ($query as $obj) {
41
						echo($obj->nom_module." ++ ".$obj->url."<br>");
42
					}
43
				}
44
			}
45
			else {
46
				$query = $dbc->select()
@@ 53-57 (lines=5) @@
50
					->where("page.ID_page", "=", $id_page)
51
					->get();
52
53
				if (is_array($query) && (count($query) > 0)) {
54
					foreach ($query as $obj) {
55
						echo($obj->titre." ++ ".$obj->url."<br>");
56
					}
57
				}
58
			}
59
		}
60
		//-------------------------- FIN GETTER ----------------------------------------------------------------------------//