Code Duplication    Length = 7-7 lines in 2 locations

programs/portletbackend.class.php 2 locations

@@ 121-127 (lines=7) @@
118
	private $name;
119
	private $description;
120
121
	public function __construct()
122
	{
123
		$this->id = 'absences_publicPlanning';
124
		$this->name = absences_translate('Absences planning');
125
		$this->description = absences_translate('Public planning for absences');
126
		$this->addon = bab_getAddonInfosInstance('absences');
127
	}
128
129
	public function getId()
130
	{
@@ 344-350 (lines=7) @@
341
	private $name;
342
	private $description;
343
	
344
	public function __construct()
345
	{
346
		$this->id = 'absences_forthcoming';
347
		$this->name = absences_translate('Forthcomming absences');
348
		$this->description = absences_translate('Forthcomming absences for users in the same department or for all personel members');
349
		$this->addon = bab_getAddonInfosInstance('absences');
350
	}
351
352
	public function getId()
353
	{