Code Duplication    Length = 7-7 lines in 3 locations

tests/model/VersionedTest.php 3 locations

@@ 1201-1207 (lines=7) @@
1198
	);
1199
1200
1201
	public function canView($member = null) {
1202
		$extended = $this->extendedCan(__FUNCTION__, $member);
1203
		if($extended !== null) {
1204
			return $extended;
1205
		}
1206
		return true;
1207
	}
1208
}
1209
1210
/**
@@ 1300-1306 (lines=7) @@
1297
		"SilverStripe\\ORM\\Versioning\\Versioned"
1298
	);
1299
1300
	public function canView($member = null) {
1301
		$extended = $this->extendedCan(__FUNCTION__, $member);
1302
		if($extended !== null) {
1303
			return $extended;
1304
		}
1305
		return true;
1306
	}
1307
1308
	public function canViewVersioned($member = null) {
1309
		// All non-live modes are public
@@ 1322-1328 (lines=7) @@
1319
 */
1320
class VersionedTest_PublicViaExtension extends DataObject implements TestOnly {
1321
1322
	public function canView($member = null) {
1323
		$extended = $this->extendedCan(__FUNCTION__, $member);
1324
		if($extended !== null) {
1325
			return $extended;
1326
		}
1327
		return true;
1328
	}
1329
1330
	private static $db = array(
1331
		'Title' => 'Varchar'