Code Duplication    Length = 11-11 lines in 3 locations

programs/utilit/right.class.php 1 location

@@ 402-412 (lines=11) @@
399
	 * Start date year
400
	 * @return int
401
	 */
402
	public function getYear()
403
	{
404
		$year = (int) substr($this->date_begin, 0, 4);
405
		
406
		if (0 === $year)
407
		{
408
			return null;
409
		}
410
		
411
		return $year;
412
	}
413
	
414
	
415
	/**

programs/utilit/workperiod_recover_request.class.php 1 location

@@ 419-429 (lines=11) @@
416
	
417
	
418
	
419
	public function getYear()
420
	{
421
		$year = (int) substr($this->date_begin, 0, 4);
422
	
423
		if (0 === $year)
424
		{
425
			return null;
426
		}
427
	
428
		return $year;
429
	}
430
	
431
	
432
	public function getArchiveYear()

programs/utilit/entry.class.php 1 location

@@ 2142-2152 (lines=11) @@
2139
	}
2140
2141
2142
	public function getYear()
2143
	{
2144
		$year = (int) substr($this->date_begin, 0, 4);
2145
2146
		if (0 === $year)
2147
		{
2148
			return null;
2149
		}
2150
2151
		return $year;
2152
	}
2153
2154
2155
	public function getArchiveYear()