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

@@ 264-266 (lines=3) @@
261
		if($pakParts['db']) {
262
			// Check the database type
263
			$dbFunction = 'getdb_'.$details['db_type'];
264
			if(!method_exists($this,$dbFunction)) {
265
				throw new Exception("Can't process database type '" . $details['db_type'] . "'");
266
			}
267
			$this->$dbFunction($webroot, $details, $sspak, basename($dbFile));
268
		}
269