Skip to content

Commit 7d6bdd7

Browse files
chore: bump @prettier/plugin-php from 0.22.2 to 0.22.4 (#647)
* chore: bump @prettier/plugin-php from 0.22.2 to 0.22.4 Bumps [@prettier/plugin-php](https://github.com/prettier/prettier-php) from 0.22.2 to 0.22.4. - [Release notes](https://github.com/prettier/prettier-php/releases) - [Commits](prettier/plugin-php@v0.22.2...v0.22.4) --- updated-dependencies: - dependency-name: "@prettier/plugin-php" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * style: write new prettier format --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jared Hendrickson <jaredhendrickson13@gmail.com>
1 parent b293325 commit 7d6bdd7

File tree

19 files changed

+28
-51
lines changed

19 files changed

+28
-51
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"devDependencies": {
3-
"@prettier/plugin-php": "^0.22.2",
3+
"@prettier/plugin-php": "^0.22.4",
44
"@stoplight/spectral-cli": "^6.14.2"
55
}
66
}

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,13 @@ class Auth {
101101
* Provides additional logic whenever authentication is successful. This is intended to be overridden by a
102102
* child Auth class when it needs something specific to happen after a client successfully authenticates.
103103
*/
104-
protected function on_successful_auth(): void {
105-
}
104+
protected function on_successful_auth(): void {}
106105

107106
/**
108107
* Provides additional logic whenever authentication has failed. This is intended to be overridden by a
109108
* child Auth class when it needs something specific to happen after a client fails to authenticate.
110109
*/
111-
protected function on_failed_auth(): void {
112-
}
110+
protected function on_failed_auth(): void {}
113111

114112
/**
115113
* Defines the steps required for users to authenticate wit this authentication method. This method must be

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ class Field {
479479
* @param mixed $value The value being validated. In the event that this is a `many` field, this method will
480480
* receive each value of the array individually, not the array value itself.
481481
*/
482-
public function validate_extra(mixed $value): void {
483-
}
482+
public function validate_extra(mixed $value): void {}
484483

485484
/**
486485
* Ensures this field has a parent model context assigned if a parent model context is required.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ class Form {
361361
* Performs tasks when the Form page is initially loaded. This method is intended to be overridden by the child
362362
* class.
363363
*/
364-
public function on_load(): void {
365-
}
364+
public function on_load(): void {}
366365

367366
/**
368367
* Performs validation and saves the Model assigned to this ModelForm.

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,7 @@ class Model {
12881288
* Allows child classes to define extra validation for their Models. This can be used to build complex validations
12891289
* that check conditions between multiple Model fields.
12901290
*/
1291-
public function validate_extra(): void {
1292-
}
1291+
public function validate_extra(): void {}
12931292

12941293
/**
12951294
* Performs a full validation on the API model. This includes checking that required packages are installed and
@@ -1612,15 +1611,13 @@ class Model {
16121611
* Initializes the default 'pre_apply' method. This method is intended to be overidden by a child model class and
16131612
* is called immediately before the 'apply' method. This method runs regardless of whether an apply was requested.
16141613
*/
1615-
protected function pre_apply() {
1616-
}
1614+
protected function pre_apply() {}
16171615

16181616
/**
16191617
* Initializes the default 'apply' method. This method is intended to be overridden by a child model class and is
16201618
* responsible for reloading/restarting services after changes occur.
16211619
*/
1622-
public function apply() {
1623-
}
1620+
public function apply() {}
16241621

16251622
/**
16261623
* Initializes the default 'pre_apply_create' method. This method is intended to be overridden by a child model class and

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,13 @@ class TestCase {
129129
* Sets up the test case before tests are run. This can be overridden by your TestCase to setup shared resources
130130
* required for your tests.
131131
*/
132-
public function setup(): void {
133-
}
132+
public function setup(): void {}
134133

135134
/**
136135
* Tears down the test case after tests are run. This can be overridden by your TestCase to destroy resources
137136
* that may have been created during tests.
138137
*/
139-
public function teardown(): void {
140-
}
138+
public function teardown(): void {}
141139

142140
/**
143141
* Obtains the environment variable with a given name.

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/GraphQL/Resolver.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class Resolver {
1818
* Constructs the GraphQLResolver object with a given Model object.
1919
* @param Model $model The Model object to be used for resolving queries and mutations.
2020
*/
21-
public function __construct(public Model $model) {
22-
}
21+
public function __construct(public Model $model) {}
2322

2423
/**
2524
* A resolver that maps a GraphQL query to the Model's 'query' method.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class DHCPServerApply extends Model {
3939
/**
4040
* Overrides the default _create() method but does nothing. This model is only intended to apply pending changes.
4141
*/
42-
protected function _create(): void {
43-
}
42+
protected function _create(): void {}
4443

4544
/**
4645
* Applies changes to the DHCP server configuration.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ class DNSForwarderApply extends Model {
4141
/**
4242
* Override the _create method so it does nothing. We only want to apply changes when this is called.
4343
*/
44-
public function _create(): void {
45-
}
44+
public function _create(): void {}
4645

4746
/**
4847
* Applies pending DNS Resolver changes.

0 commit comments

Comments
 (0)