Code Duplication    Length = 11-11 lines in 2 locations

Ubiquity/controllers/Startup.php 1 location

@@ 172-182 (lines=11) @@
169
		}
170
	}
171
172
	public static function checkDbConfig() {
173
		$config = self::$config;
174
		$result = [ ];
175
		$needs = [ "type","dbName","serverName" ];
176
		if (! isset ( $config ["database"] )) {
177
			$result [] = "database";
178
		} else {
179
			self::needsKeyInConfigArray ( $result, $config ["database"], $needs );
180
		}
181
		return $result;
182
	}
183
184
	public static function checkModelsConfig() {
185
		$config = self::$config;

Ubiquity/controllers/traits/StartupConfigTrait.php 1 location

@@ 49-59 (lines=11) @@
46
		self::$ctrlNS = self::getNS ();
47
	}
48
	
49
	public static function checkDbConfig() {
50
		$config = self::$config;
51
		$result = [ ];
52
		$needs = [ "type","dbName","serverName" ];
53
		if (! isset ( $config ["database"] )) {
54
			$result [] = "database";
55
		} else {
56
			self::needsKeyInConfigArray ( $result, $config ["database"], $needs );
57
		}
58
		return $result;
59
	}
60
	
61
	public static function checkModelsConfig() {
62
		$config = self::$config;