Skip to content

Commit df4ee3a

Browse files
chore(HAProxyBackendServer): sort arguments
1 parent 96aaf17 commit df4ee3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/HAProxyBackendServer.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class HAProxyBackendServer extends Model {
3939
required: true,
4040
unique: true,
4141
minimum_length: 2,
42-
validators: [new RegexValidator(pattern: '/[^a-zA-Z0-9\.\-_]/', invert: true)],
4342
verbose_name: 'Name',
43+
validators: [new RegexValidator(pattern: '/[^a-zA-Z0-9\.\-_]/', invert: true)],
4444
help_text: 'The unique name for this backend server.',
4545
);
4646
$this->status = new StringField(
@@ -51,8 +51,8 @@ class HAProxyBackendServer extends Model {
5151
);
5252
$this->address = new StringField(
5353
required: true,
54-
validators: [new IPAddressValidator(allow_ipv4: true, allow_ipv6: true, allow_fqdn: true)],
5554
verbose_name: 'Address',
55+
validators: [new IPAddressValidator(allow_ipv4: true, allow_ipv6: true, allow_fqdn: true)],
5656
help_text: 'The hostname or IP address of this backend server. Hostname values are only resolved at ' .
5757
'service startup.',
5858
);

0 commit comments

Comments
 (0)