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
/*
src/etc/inc/interfaces.inc
342 342

  
343 343
/**
344 344
 * Configure the child VLAN interfaces for a parent interface.
345
 * 
345
 *
346 346
 * @param bool $skip_parent_mtu Skip setting the parent interface's MTU
347 347
 */
348 348
function interfaces_vlan_configure($parentif = "", $skip_parent_mtu = false) {
......
386 386

  
387 387
/**
388 388
 * Configure a VLAN interface.
389
 * 
389
 *
390 390
 * @param bool $skip_parent_mtu Skip setting the parent interface's MTU
391 391
 */
392 392
function interface_vlan_configure(&$vlan, $flush = true, $skip_parent_mtu = false) {
......
4050 4050

  
4051 4051
/**
4052 4052
 * Applies the configured settings for an interface.
4053
 * 
4053
 *
4054 4054
 * @param bool $skip_parent_mtu Skip setting the parent interface's MTU
4055 4055
 */
4056 4056
function interface_configure($interface = "wan", $reloadall = false, $linkupevent = false, $skip_parent_mtu = false) {
......
6696 6696
/**
6697 6697
 * Get the first IPv6 address that is not a VIP or Link-Local address.
6698 6698
 * Prioritize IPv6 GUA over ULA.
6699
 * 
6699
 *
6700 6700
 * @param string $interface Interface to check
6701 6701
 * @return array|bool IP address and prefix length; false If no match is found
6702 6702
 */

Also available in: Unified diff