Code Duplication    Length = 7-7 lines in 2 locations

includes/filerepo/file/ForeignDBFile.php 1 location

@@ 48-54 (lines=7) @@
45
	 * @param FileRepo $repo
46
	 * @return ForeignDBFile
47
	 */
48
	static function newFromRow( $row, $repo ) {
49
		$title = Title::makeTitle( NS_FILE, $row->img_name );
50
		$file = new self( $title, $repo );
51
		$file->loadFromRow( $row );
52
53
		return $file;
54
	}
55
56
	/**
57
	 * @param string $srcPath

includes/filerepo/file/LocalFile.php 1 location

@@ 159-165 (lines=7) @@
156
	 *
157
	 * @return LocalFile
158
	 */
159
	static function newFromRow( $row, $repo ) {
160
		$title = Title::makeTitle( NS_FILE, $row->img_name );
161
		$file = new self( $title, $repo );
162
		$file->loadFromRow( $row );
163
164
		return $file;
165
	}
166
167
	/**
168
	 * Create a LocalFile from a SHA-1 key