Project

General

Profile

« Previous | Next » 

Revision 21b966d4

Added by Renato Botelho 7 months ago

Style fixes

View differences:

src/etc/inc/gwlb.inc
48 48
/**
49 49
 * Caches the gateway list and filters the result. Changes to gateways should
50 50
 * call refresh_gateways(), e.g. when adding or removing dynamic gateways.
51
 * 
51
 *
52 52
 * @param array $flags Additional gateways to include.
53
 * 
53
 *
54 54
 * @return array filtered list of gateways
55 55
 */
56 56
function get_gateways(int $flags = 0): array {
......
440 440
 * failover gateway group. A failover tier is any tier number greater than the
441 441
 * lowest configured tier number. A failover gateway group must consist of at
442 442
 * least two different tiers.
443
 * 
443
 *
444 444
 * @param string $gateway_group Name of an existing failover gateway group
445
 * 
445
 *
446 446
 * @return int The tier number - returns 0 if no matches are found
447 447
 * @return false Not a valid failover gateway group
448 448
 */
......
514 514
 * Loops through each gateway group and kills states for lower-priority gateways.
515 515
 * Supports the same gateway at different tiers in different gateway groups. A
516 516
 * failover gateway group name may be provided to restrict the state removal.
517
 * 
517
 *
518 518
 * @param string $gateway_name Gateway group name to remove failover states for
519 519
 */
520 520
function remove_failover_states(?string $gateway_name = null): void {
......
1988 1988
	if (empty($members)) {
1989 1989
		return false;
1990 1990
	}
1991
	
1991

  
1992 1992
	return $members;
1993 1993
}
1994 1994
/*

Also available in: Unified diff