Code Duplication    Length = 7-7 lines in 2 locations

Ubiquity/controllers/Startup.php 1 location

@@ 164-170 (lines=7) @@
161
		self::$config = $config;
162
	}
163
164
	private static function needsKeyInConfigArray(&$result, $array, $needs) {
165
		foreach ( $needs as $need ) {
166
			if (! isset ( $array [$need] ) || UString::isNull ( $array [$need] )) {
167
				$result [] = $need;
168
			}
169
		}
170
	}
171
172
	public static function checkDbConfig() {
173
		$config = self::$config;

Ubiquity/controllers/traits/StartupConfigTrait.php 1 location

@@ 28-34 (lines=7) @@
25
		return ROOT . DS . self::getModelsDir ();
26
	}
27
	
28
	protected static function needsKeyInConfigArray(&$result, $array, $needs) {
29
		foreach ( $needs as $need ) {
30
			if (! isset ( $array [$need] ) || UString::isNull ( $array [$need] )) {
31
				$result [] = $need;
32
			}
33
		}
34
	}
35
	
36
	public static function getNS($part = "controllers") {
37
		$config = self::$config;