Code Duplication    Length = 3-3 lines in 2 locations

importexport/inc/class.importexport_definition.inc.php 2 locations

@@ 328-330 (lines=3) @@
325
	 * @return string dst_identifier
326
	 */
327
	public function move ( $_dst_identifier ) {
328
		if ($this->user != $this->get_owner() && !$this->is_admin) {
329
			throw('Error: User '. $this->user. 'does not have permissions to move definition '.$this->get_identifier());
330
		}
331
		$old_object = clone $this;
332
		try {
333
			$dst_identifier = $this->save($_dst_identifier);
@@ 350-352 (lines=3) @@
347
	 *
348
	 */
349
	public function delete () {
350
		if($this->user != $this->get_owner() && !$this->is_admin) {
351
			throw('Error: User '. $this->user. 'does not have permissions to delete definition '.$this->get_identifier());
352
		}
353
		if(!$this->so_sql->delete()) {
354
			throw('Error: Api\Storage\Base was not able to delete definition: '.$this->get_identifier());
355
		}