From fcec806acbc4059c814cbabed7aa5aa55448a5b6 Mon Sep 17 00:00:00 2001 From: DarkZmaj Date: Tue, 6 Oct 2026 16:17:00 +0200 Subject: [PATCH] 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. --- .../Requests/Api/Admin/Extensions/InstallExtensionRequest.php | 2 +- app/Services/Extensions/ExtensionPackageLocator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php b/app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php index 0c012738b..731ffd432 100644 --- a/app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php +++ b/app/Http/Requests/Api/Admin/Extensions/InstallExtensionRequest.php @@ -49,7 +49,7 @@ class InstallExtensionRequest extends AdminApiRequest } /** - * @inheritdoc + * {@inheritdoc} */ protected function prepareForValidation(): void { diff --git a/app/Services/Extensions/ExtensionPackageLocator.php b/app/Services/Extensions/ExtensionPackageLocator.php index 30329fba3..05d3d1c3b 100644 --- a/app/Services/Extensions/ExtensionPackageLocator.php +++ b/app/Services/Extensions/ExtensionPackageLocator.php @@ -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) {