Code Duplication    Length = 7-7 lines in 2 locations

engine/classes/ElggGroup.php 1 location

@@ 550-556 (lines=7) @@
547
	/**
548
	 * {@inheritdoc}
549
	 */
550
	protected function prepareObject($object) {
551
		$object = parent::prepareObject($object);
552
		$object->name = $this->getDisplayName();
553
		$object->description = $this->description;
554
		unset($object->read_access);
555
		return $object;
556
	}
557
558
559
	// EXPORTABLE INTERFACE ////////////////////////////////////////////////////////////

engine/classes/ElggSite.php 1 location

@@ 451-457 (lines=7) @@
448
	/**
449
	 * {@inheritdoc}
450
	 */
451
	protected function prepareObject($object) {
452
		$object = parent::prepareObject($object);
453
		$object->name = $this->getDisplayName();
454
		$object->description = $this->description;
455
		unset($object->read_access);
456
		return $object;
457
	}
458
459
	/*
460
	 * EXPORTABLE INTERFACE