Code Duplication    Length = 5-5 lines in 2 locations

core/Navigation.php 2 locations

@@ 52-56 (lines=5) @@
49
				->where("page.parent", "=", 0)
50
				->get();
51
52
			if (is_array($query) && (count($query) > 0)) {
53
				foreach ($query as $obj) {
54
					return [$obj->titre, $obj->url, $obj->balise_title, $this->getSousMenu($id_page)];
55
				}
56
			}
57
		}
58
59
		private function getSousMenu($id_page) {
@@ 65-69 (lines=5) @@
62
63
			$query = $dbc->select()->from("page")->where("parent", "=", $id_page)->get();
64
65
			if (is_array($query) && (count($query) > 0)) {
66
				foreach ($query as $obj) {
67
					$sous_menu[] = [$obj->titre, $obj->url, $obj->balise_title,];
68
				}
69
			}
70
71
			return $sous_menu;
72
		}