public static function isValidName( $name ): bool
	{
		$len = strlen($name);
		if( $len < 5 || ! preg_match('/^on[A-Z][a-zA-Z]*$/', $name) )
		{
			return false;
		}

		return $len < 256;
	}
public static function isValidName( $name ): bool
	{
		$len = strlen($name);
		if( $len < 5 || ! preg_match('/^on[A-Z][a-zA-Z]*$/', $name) )
		{
			return false;
		}

		return $len < 256;
	}
public static function isValidName ( $ name ) : bool { $ len = strlen ( $ name ) ; if ( $ len < 5 || ! preg_match ( '/^on[A-Z][a-zA-Z]*$/' , $ name ) ) { return false ; } return $ len < 256 ; }
Validate config name

@param string $name
@return bool
Validate config name