Skip to content

Commit 96aaf17

Browse files
style: run prettier on changed files
1 parent e59561c commit 96aaf17

50 files changed

Lines changed: 491 additions & 99 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core/Globals.inc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ const RESERVED_FIELD_NAMES = [
1717
'append',
1818
'remove',
1919
'reverse',
20-
'api_host', # used by ansible collection
21-
'api_port', # used by ansible collection
22-
'api_protocol', # used by ansible collection
23-
'api_username', # used by ansible collection
24-
'api_key', # used by ansible collection
25-
'validate_certs', # used by ansible collection
26-
'objects', # used by ansible collection
27-
'lookup_fields', # used by ansible collection
20+
'api_host', # used by ansible collection
21+
'api_port', # used by ansible collection
22+
'api_protocol', # used by ansible collection
23+
'api_username', # used by ansible collection
24+
'api_key', # used by ansible collection
25+
'validate_certs', # used by ansible collection
26+
'objects', # used by ansible collection
27+
'lookup_fields', # used by ansible collection
2828
'parent_lookup_query', # used by ansible collection
29-
'query_params', # used by ansible collection
29+
'query_params', # used by ansible collection
3030
];
3131

3232
/**

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ class ACMEAccountKey extends Model {
4040
];
4141

4242
# Define model Fields
43-
$this->name = new StringField(required: true, unique: true, verbose_name: 'Name', help_text: 'The name of the ACME account key.');
43+
$this->name = new StringField(
44+
required: true,
45+
unique: true,
46+
verbose_name: 'Name',
47+
help_text: 'The name of the ACME account key.',
48+
);
4449
$this->descr = new StringField(
4550
default: '',
4651
allow_empty: true,

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ class ACMECertificateAction extends Model {
3232
verbose_name: 'Status',
3333
help_text: 'The activation status of the ACME certificate.',
3434
);
35-
$this->command = new StringField(required: true, verbose_name: 'Command', help_text: 'The command to execute on the ACME certificate.');
35+
$this->command = new StringField(
36+
required: true,
37+
verbose_name: 'Command',
38+
help_text: 'The command to execute on the ACME certificate.',
39+
);
3640
$this->method = new StringField(
3741
required: true,
3842
choices: ['shellcommand', 'php_command', 'servicerestart', 'xmlrpcservicerestart'],

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,23 @@ class ARPTable extends Model {
5757
verbose_name: 'Interface',
5858
help_text: 'The interface where the ARP entry was registered.',
5959
);
60-
$this->type = new StringField(read_only: true, verbose_name: 'Type', help_text: 'The type of connection this host utilizes.');
60+
$this->type = new StringField(
61+
read_only: true,
62+
verbose_name: 'Type',
63+
help_text: 'The type of connection this host utilizes.',
64+
);
6165
$this->permanent = new BooleanField(
6266
read_only: true,
6367
indicates_true: true,
6468
indicates_false: false,
6569
verbose_name: 'Permanent',
6670
help_text: 'Indicates whether the ARP entry is permanent in the ARP table.',
6771
);
68-
$this->expires = new StringField(read_only: true, verbose_name: 'Expires', help_text: 'The expiration time for this ARP entry.');
72+
$this->expires = new StringField(
73+
read_only: true,
74+
verbose_name: 'Expires',
75+
help_text: 'The expiration time for this ARP entry.',
76+
);
6977

7078
parent::__construct($id, $parent_id, $data, ...$options);
7179
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class AuthLog extends Model {
2424
$this->internal_callable = 'get_auth_log';
2525
$this->many = true;
2626

27-
$this->text = new StringField(default: '', verbose_name: 'Text', help_text: 'The raw text of the auth log entry.');
27+
$this->text = new StringField(
28+
default: '',
29+
verbose_name: 'Text',
30+
help_text: 'The raw text of the auth log entry.',
31+
);
2832

2933
parent::__construct($id, $parent_id, $data, ...$options);
3034
}

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,24 @@ class AvailablePackage extends Model {
2424
$this->cache_class = 'AvailablePackageCache';
2525

2626
# Set model fields
27-
$this->name = new StringField(required: true, unique: true, verbose_name: 'Name', help_text: 'The name of the pfSense package.');
28-
$this->shortname = new StringField(default: '', read_only: true, verbose_name: 'Short Name', help_text: "The package's shortname.");
29-
$this->descr = new StringField(default: '', read_only: true, verbose_name: 'Description', help_text: "The package's description.");
27+
$this->name = new StringField(
28+
required: true,
29+
unique: true,
30+
verbose_name: 'Name',
31+
help_text: 'The name of the pfSense package.',
32+
);
33+
$this->shortname = new StringField(
34+
default: '',
35+
read_only: true,
36+
verbose_name: 'Short Name',
37+
help_text: "The package's shortname.",
38+
);
39+
$this->descr = new StringField(
40+
default: '',
41+
read_only: true,
42+
verbose_name: 'Description',
43+
help_text: "The package's description.",
44+
);
3045
$this->version = new StringField(
3146
default: '',
3247
read_only: true,

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ class BINDAccessList extends Model {
2525
$this->verbose_name = 'BIND Access List';
2626

2727
# Set model fields
28-
$this->name = new StringField(required: true, unique: true, verbose_name: 'Name', help_text: 'The name of the access list.');
28+
$this->name = new StringField(
29+
required: true,
30+
unique: true,
31+
verbose_name: 'Name',
32+
help_text: 'The name of the access list.',
33+
);
2934
$this->description = new StringField(
3035
default: '',
3136
allow_empty: true,

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ class BINDSyncRemoteHost extends Model {
4848
verbose_name: 'IP Address',
4949
help_text: 'The IP address/hostname of the remote host.',
5050
);
51-
$this->syncport = new PortField(required: true, verbose_name: 'Sync Port', help_text: 'The remote host port to use for syncing.');
51+
$this->syncport = new PortField(
52+
required: true,
53+
verbose_name: 'Sync Port',
54+
help_text: 'The remote host port to use for syncing.',
55+
);
5256
$this->username = new StringField(
5357
required: true,
5458
verbose_name: 'Username',

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ class BINDView extends Model {
3030
$this->verbose_name = 'BIND View';
3131

3232
# Set model fields
33-
$this->name = new StringField(required: true, unique: true, verbose_name: 'Name', help_text: 'The name of the view.');
34-
$this->descr = new StringField(default: '', allow_empty: true, verbose_name: 'Description', help_text: 'A description for the view.');
33+
$this->name = new StringField(
34+
required: true,
35+
unique: true,
36+
verbose_name: 'Name',
37+
help_text: 'The name of the view.',
38+
);
39+
$this->descr = new StringField(
40+
default: '',
41+
allow_empty: true,
42+
verbose_name: 'Description',
43+
help_text: 'A description for the view.',
44+
);
3545
$this->recursion = new BooleanField(
3646
default: false,
3747
indicates_true: 'yes',

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,18 @@ class BINDZone extends Model {
5858
$this->verbose_name = 'BIND Zone';
5959

6060
# Set model fields
61-
$this->disabled = new BooleanField(default: false, indicates_true: 'on', verbose_name: 'Disabled', help_text: 'Disable this BIND zone.');
62-
$this->name = new StringField(required: true, unique: true, verbose_name: 'Name', help_text: 'The name of this BIND zone.');
61+
$this->disabled = new BooleanField(
62+
default: false,
63+
indicates_true: 'on',
64+
verbose_name: 'Disabled',
65+
help_text: 'Disable this BIND zone.',
66+
);
67+
$this->name = new StringField(
68+
required: true,
69+
unique: true,
70+
verbose_name: 'Name',
71+
help_text: 'The name of this BIND zone.',
72+
);
6373
$this->description = new StringField(
6474
default: '',
6575
allow_empty: true,

0 commit comments

Comments
 (0)