Code Duplication    Length = 7-7 lines in 4 locations

engine/classes/ElggGroup.php 1 location

@@ 23-29 (lines=7) @@
20
	 *
21
	 * @return void
22
	 */
23
	protected function initializeAttributes() {
24
		parent::initializeAttributes();
25
26
		$this->attributes['type'] = "group";
27
		$this->attributes += self::getExternalAttributes();
28
		$this->tables_split = 2;
29
	}
30
31
	/**
32
	 * Get default values for attributes stored in a separate table

engine/classes/ElggObject.php 1 location

@@ 30-36 (lines=7) @@
27
	 *
28
	 * @return void
29
	 */
30
	protected function initializeAttributes() {
31
		parent::initializeAttributes();
32
33
		$this->attributes['type'] = "object";
34
		$this->attributes += self::getExternalAttributes();
35
		$this->tables_split = 2;
36
	}
37
38
	/**
39
	 * Get default values for attributes stored in a separate table

engine/classes/ElggSite.php 1 location

@@ 36-42 (lines=7) @@
33
	 *
34
	 * @return void
35
	 */
36
	protected function initializeAttributes() {
37
		parent::initializeAttributes();
38
39
		$this->attributes['type'] = "site";
40
		$this->attributes += self::getExternalAttributes();
41
		$this->tables_split = 2;
42
	}
43
44
	/**
45
	 * Get default values for attributes stored in a separate table

engine/classes/ElggUser.php 1 location

@@ 29-35 (lines=7) @@
26
	 *
27
	 * @return void
28
	 */
29
	protected function initializeAttributes() {
30
		parent::initializeAttributes();
31
32
		$this->attributes['type'] = "user";
33
		$this->attributes += self::getExternalAttributes();
34
		$this->tables_split = 2;
35
	}
36
37
	/**
38
	 * Get default values for attributes stored in a separate table