rathena / FluxCP

Function with cyclomatic complexity higher than threshold found PHP-R1006
Anti-pattern
Minor
1 occurrence in this check
register has a cyclomatic complexity of 21 with "High" risk
107	/**
108	 *
109	 */
110	public function register($username, $password, $confirmPassword, $email,$email2, $gender, $birthdate, $securityCode)111	{
112		if (preg_match('/[^' . Flux::config('UsernameAllowedChars') . ']/', $username)) {
113			throw new Flux_RegisterError('Invalid character(s) used in username', Flux_RegisterError::INVALID_USERNAME);