Code Duplication    Length = 7-7 lines in 3 locations

engine/classes/ElggMetadata.php 3 locations

@@ 100-106 (lines=7) @@
97
	 *
98
	 * @return bool
99
	 */
100
	public function delete() {
101
		$success = _elgg_delete_metastring_based_object_by_id($this->id, 'metadata');
102
		if ($success) {
103
			_elgg_services()->metadataCache->clear($this->entity_guid);
104
		}
105
		return $success;
106
	}
107
108
	/**
109
	 * Disable the metadata
@@ 114-120 (lines=7) @@
111
	 * @return bool
112
	 * @since 1.8
113
	 */
114
	public function disable() {
115
		$success = _elgg_set_metastring_based_object_enabled_by_id($this->id, 'no', 'metadata');
116
		if ($success) {
117
			_elgg_services()->metadataCache->clear($this->entity_guid);
118
		}
119
		return $success;
120
	}
121
122
	/**
123
	 * Enable the metadata
@@ 128-134 (lines=7) @@
125
	 * @return bool
126
	 * @since 1.8
127
	 */
128
	public function enable() {
129
		$success = _elgg_set_metastring_based_object_enabled_by_id($this->id, 'yes', 'metadata');
130
		if ($success) {
131
			_elgg_services()->metadataCache->clear($this->entity_guid);
132
		}
133
		return $success;
134
	}
135
136
	// SYSTEM LOG INTERFACE ////////////////////////////////////////////////////////////
137