mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 21:35:47 -05:00
Apply Pint formatting to two extension files (#7250)
## Problem
`vendor/bin/pint --test` fails on the current 2.0 development branch,
which fails the Tests workflow for every pull request.
## Reproduction
Run `vendor/bin/pint --test --parallel --cache-file=.pint.cache app
bootstrap/app.php bootstrap/tests.php config database routes tests` on a
clean checkout. It reports two files:
`app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php` and
`app/Services/Extensions/ExtensionPackageLocator.php`.
## Root cause
Two recent changes were merged without running Pint. One docblock uses
`@inheritdoc` where the project style wants `{@inheritdoc}`, and one
blank line contains trailing whitespace.
## Fix
Run Pint on exactly those two files. The change is one docblock line and
one whitespace only line.
## Testing
`vendor/bin/pint --test` on the same paths passes afterwards. No
behaviour changes.
## Compatibility considerations
None. Formatting only.
This commit is contained in:
@@ -49,7 +49,7 @@ class InstallExtensionRequest extends AdminApiRequest
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function prepareForValidation(): void
|
||||
{
|
||||
|
||||
@@ -59,7 +59,7 @@ class ExtensionPackageLocator
|
||||
{
|
||||
$zip = new ZipArchive;
|
||||
throw_if($zip->open($archive) !== true, InvalidExtensionException::class, "Unable to open archive {$archive}.");
|
||||
|
||||
|
||||
try {
|
||||
$this->assertArchiveWithinLimits($zip, $archive);
|
||||
} catch (Throwable $throwable) {
|
||||
|
||||
Reference in New Issue
Block a user