Code Duplication    Length = 10-13 lines in 2 locations

programs/utilit/right.class.php 1 location

@@ 384-396 (lines=13) @@
381
	/**
382
	 * @return string
383
	 */
384
	public function getUnitLabel()
385
	{
386
		switch($this->quantity_unit)
387
		{
388
			case 'D':
389
				return absences_translate('day(s)');
390
	
391
			case 'H':
392
				return absences_translate('hour(s)');
393
		}
394
	
395
		return '';
396
	}
397
	
398
	/**
399
	 * Start date year

programs/utilit/csv.class.php 1 location

@@ 118-127 (lines=10) @@
115
     * @param string $quantity_unit
116
     * @return string
117
     */
118
    protected function getUnit($quantity_unit)
119
    {
120
        switch($quantity_unit)
121
        {
122
            case 'D': return absences_translate('days');
123
            case 'H': return absences_translate('hours');
124
        }
125
         
126
        return '';
127
    }
128
    
129
    
130
    protected function setHeaders($filename)