Code Duplication    Length = 3-3 lines in 2 locations

src/Webroot.php 1 location

@@ 78-80 (lines=3) @@
75
76
		// Check the database type
77
		$dbFunction = 'putdb_'.$details['db_type'];
78
		if(!method_exists($this,$dbFunction)) {
79
			throw new Exception("Can't process database type '" . $details['db_type'] . "'");
80
		}
81
82
		// Extract DB direct from sspak file
83
		return $this->$dbFunction($details, $sspak, $dropdb);

src/SSPak.php 1 location

@@ 182-184 (lines=3) @@
179
		if($pakParts['db']) {
180
			// Check the database type
181
			$dbFunction = 'getdb_'.$details['db_type'];
182
			if(!method_exists($this,$dbFunction)) {
183
				throw new Exception("Can't process database type '" . $details['db_type'] . "'");
184
			}
185
			$this->$dbFunction($webroot, $details, $sspak, basename($dbFile));
186
		}
187