src/Utility/Time.php
public static function cWeeks($year = null) {
		if ($year === null) {
			$year = date('Y');
		}
		return (int)date('W', mktime(23, 59, 59, 12, 28, $year));
	}
public static function cWeeks($year = null) {
		if ($year === null) {
			$year = date('Y');
		}
		return (int)date('W', mktime(23, 59, 59, 12, 28, $year));
	}
public static function cWeeks ( $ year = null ) { if ( $ year === null ) { $ year = date ( 'Y' ) ; } return ( int ) date ( 'W' , mktime ( 23 , 59 , 59 , 12 , 28 , $ year ) ) ; }
Calculate the amount of calender weeks in a year

@param int|null $year (format xxxx, defaults to current year)
@return int Amount of weeks - 52 or 53
Calculate the amount of calender weeks in a year