Code Duplication    Length = 7-7 lines in 2 locations

model/fieldtypes/DBClassName.php 1 location

@@ 189-195 (lines=7) @@
186
		return $classNames;
187
	}
188
189
	public function setValue($value, $record = null, $markChanged = true) {
190
		parent::setValue($value, $record, $markChanged);
191
192
		if($record instanceof DataObject) {
193
			$this->record = $record;
194
		}
195
	}
196
197
	public function getDefault() {
198
		// Check for assigned default

model/fieldtypes/PrimaryKey.php 1 location

@@ 62-68 (lines=7) @@
59
		parent::scaffoldFormField($title);
60
	}
61
62
	public function setValue($value, $record = null, $markChanged = true) {
63
		parent::setValue($value, $record, $markChanged);
64
65
		if($record instanceof DataObject) {
66
			$this->object = $record;
67
		}
68
	}
69
}
70