Code Duplication    Length = 8-8 lines in 2 locations

Ubiquity/controllers/Startup.php 1 location

@@ 47-54 (lines=8) @@
44
		}
45
	}
46
47
	public static function getNS($part = "controllers") {
48
		$config = self::$config;
49
		$ns = $config ["mvcNS"] [$part];
50
		if ($ns !== "" && $ns !== null) {
51
			$ns .= "\\";
52
		}
53
		return $ns;
54
	}
55
56
	private static function setCtrlNS() {
57
		self::$ctrlNS = self::getNS ();

Ubiquity/controllers/traits/StartupConfigTrait.php 1 location

@@ 36-43 (lines=8) @@
33
		}
34
	}
35
	
36
	public static function getNS($part = "controllers") {
37
		$config = self::$config;
38
		$ns = $config ["mvcNS"] [$part];
39
		if ($ns !== "" && $ns !== null) {
40
			$ns .= "\\";
41
		}
42
		return $ns;
43
	}
44
	
45
	protected static function setCtrlNS() {
46
		self::$ctrlNS = self::getNS ();