diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index a8cc206d9..f3bc40cd3 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -114,7 +114,7 @@ class Handler extends ExceptionHandler /** * Render an exception into an HTTP response. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request * * @throws \Throwable */ @@ -140,7 +140,7 @@ class Handler extends ExceptionHandler * Transform a validation exception into a consistent format to be returned for * calls to the API. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request */ public function invalidJson($request, ValidationException $exception): JsonResponse { @@ -236,7 +236,7 @@ class Handler extends ExceptionHandler /** * Convert an authentication exception into an unauthenticated response. * - * @param \Illuminate\Http\Request $request + * @param \Illuminate\Http\Request $request */ protected function unauthenticated($request, AuthenticationException $exception): JsonResponse|RedirectResponse { diff --git a/app/Extensions/Backups/BackupManager.php b/app/Extensions/Backups/BackupManager.php index b26f8f4c5..16c704b97 100644 --- a/app/Extensions/Backups/BackupManager.php +++ b/app/Extensions/Backups/BackupManager.php @@ -145,7 +145,7 @@ class BackupManager /** * Unset the given adapter instances. * - * @param string|string[] $adapter + * @param string|string[] $adapter */ public function forget(array|string $adapter): self { diff --git a/app/Http/Controllers/Api/Application/ApplicationApiController.php b/app/Http/Controllers/Api/Application/ApplicationApiController.php index 174e6243a..e94de9889 100644 --- a/app/Http/Controllers/Api/Application/ApplicationApiController.php +++ b/app/Http/Controllers/Api/Application/ApplicationApiController.php @@ -51,7 +51,7 @@ abstract class ApplicationApiController extends Controller * * @template T of \App\Transformers\Api\Application\BaseTransformer * - * @param class-string $abstract + * @param class-string $abstract * * @return T * diff --git a/app/Http/Controllers/Api/Client/ClientApiController.php b/app/Http/Controllers/Api/Client/ClientApiController.php index 4cf081fec..a78e75487 100644 --- a/app/Http/Controllers/Api/Client/ClientApiController.php +++ b/app/Http/Controllers/Api/Client/ClientApiController.php @@ -41,7 +41,7 @@ abstract class ClientApiController extends ApplicationApiController * * @template T of \App\Transformers\Api\Client\BaseClientTransformer * - * @param class-string $abstract + * @param class-string $abstract * * @return T * diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 21ef4fee8..5c8d3d5d4 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -29,7 +29,7 @@ class ForgotPasswordController extends Controller /** * Get the response for a successful password reset link. * - * @param string $response + * @param string $response */ protected function sendResetLinkResponse(Request $request, $response): JsonResponse { diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index b4c338ee9..c8dbd898e 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -64,8 +64,8 @@ class ResetPasswordController extends Controller * account do not automatically log them in. In those cases, send the user back to the login * form with a note telling them their password was changed and to log back in. * - * @param \Illuminate\Contracts\Auth\CanResetPassword|\App\Models\User $user - * @param string $password + * @param \Illuminate\Contracts\Auth\CanResetPassword|\App\Models\User $user + * @param string $password * * @throws \App\Exceptions\Model\DataValidationException */ diff --git a/app/Http/Requests/Api/Application/ApplicationApiRequest.php b/app/Http/Requests/Api/Application/ApplicationApiRequest.php index a0e17c15d..33c9581b1 100644 --- a/app/Http/Requests/Api/Application/ApplicationApiRequest.php +++ b/app/Http/Requests/Api/Application/ApplicationApiRequest.php @@ -74,7 +74,7 @@ abstract class ApplicationApiRequest extends FormRequest * * @template T of \Illuminate\Database\Eloquent\Model * - * @param class-string $expect + * @param class-string $expect * * @return T * diff --git a/app/Models/Filters/AdminServerFilter.php b/app/Models/Filters/AdminServerFilter.php index d3c1eea60..bca17499f 100644 --- a/app/Models/Filters/AdminServerFilter.php +++ b/app/Models/Filters/AdminServerFilter.php @@ -11,7 +11,7 @@ class AdminServerFilter implements Filter * A multi-column filter for the servers table that allows an administrative user to search * across UUID, name, owner username, and owner email. * - * @param string $value + * @param string $value */ public function __invoke(Builder $query, $value, string $property) { diff --git a/app/Models/Filters/MultiFieldServerFilter.php b/app/Models/Filters/MultiFieldServerFilter.php index 0ab266574..6039c450b 100644 --- a/app/Models/Filters/MultiFieldServerFilter.php +++ b/app/Models/Filters/MultiFieldServerFilter.php @@ -19,7 +19,7 @@ class MultiFieldServerFilter implements Filter * search across multiple columns. This allows us to provide a very generic search ability for * the frontend. * - * @param string $value + * @param string $value */ public function __invoke(Builder $query, $value, string $property) { diff --git a/app/Models/User.php b/app/Models/User.php index 5bc8fa632..04ecbb0c4 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -234,7 +234,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac /** * Send the password reset notification. * - * @param string $token + * @param string $token */ public function sendPasswordResetNotification($token) { diff --git a/app/Repositories/Daemon/DaemonFileRepository.php b/app/Repositories/Daemon/DaemonFileRepository.php index ca6fc7399..a414b8db7 100644 --- a/app/Repositories/Daemon/DaemonFileRepository.php +++ b/app/Repositories/Daemon/DaemonFileRepository.php @@ -15,7 +15,7 @@ class DaemonFileRepository extends DaemonRepository /** * Return the contents of a given file. * - * @param int|null $notLargerThan the maximum content length in bytes + * @param int|null $notLargerThan the maximum content length in bytes * * @throws \GuzzleHttp\Exception\TransferException * @throws \App\Exceptions\Http\Server\FileSizeTooLargeException diff --git a/app/Rules/Username.php b/app/Rules/Username.php index 591df389c..f888da103 100644 --- a/app/Rules/Username.php +++ b/app/Rules/Username.php @@ -17,8 +17,8 @@ class Username implements Rule * * Allowed characters: a-z0-9_-. * - * @param string $attribute - * @param mixed $value + * @param string $attribute + * @param mixed $value */ public function passes($attribute, $value): bool { diff --git a/app/Services/Activity/ActivityLogService.php b/app/Services/Activity/ActivityLogService.php index 170278558..38f742b72 100644 --- a/app/Services/Activity/ActivityLogService.php +++ b/app/Services/Activity/ActivityLogService.php @@ -64,7 +64,7 @@ class ActivityLogService * * @template T extends \Illuminate\Database\Eloquent\Model|\Illuminate\Contracts\Auth\Authenticatable * - * @param T|T[]|null $subjects + * @param T|T[]|null $subjects */ public function subject(...$subjects): self { @@ -100,8 +100,8 @@ class ActivityLogService /** * Sets a custom property on the activity log instance. * - * @param string|array $key - * @param mixed $value + * @param string|array $key + * @param mixed $value */ public function property($key, $value = null): self { diff --git a/app/Services/Backups/InitiateBackupService.php b/app/Services/Backups/InitiateBackupService.php index 69807a942..fa15db88a 100644 --- a/app/Services/Backups/InitiateBackupService.php +++ b/app/Services/Backups/InitiateBackupService.php @@ -43,7 +43,7 @@ class InitiateBackupService /** * Sets the files to be ignored by this backup. * - * @param string[]|null $ignored + * @param string[]|null $ignored */ public function setIgnoredFiles(?array $ignored): self { diff --git a/app/Transformers/Api/Application/BaseTransformer.php b/app/Transformers/Api/Application/BaseTransformer.php index 62ee4ceeb..2fb5917c0 100644 --- a/app/Transformers/Api/Application/BaseTransformer.php +++ b/app/Transformers/Api/Application/BaseTransformer.php @@ -89,7 +89,7 @@ abstract class BaseTransformer extends TransformerAbstract * * @template T of \App\Transformers\Api\Application\BaseTransformer * - * @param class-string $abstract + * @param class-string $abstract * * @return T * diff --git a/pint.json b/pint.json index 606e3351a..aa20e37a0 100644 --- a/pint.json +++ b/pint.json @@ -3,7 +3,6 @@ "rules": { "not_operator_with_successor_space": false, "ordered_imports": false, - "phpdoc_align": false, "phpdoc_separation": false } } diff --git a/tests/Assertions/AssertsActivityLogged.php b/tests/Assertions/AssertsActivityLogged.php index ecc33a833..ed33729e4 100644 --- a/tests/Assertions/AssertsActivityLogged.php +++ b/tests/Assertions/AssertsActivityLogged.php @@ -11,7 +11,7 @@ use App\Models\ActivityLogSubject; trait AssertsActivityLogged { /** - * @param \Illuminate\Database\Eloquent\Model|array $subjects + * @param \Illuminate\Database\Eloquent\Model|array $subjects */ public function assertActivityFor(string $event, ?Model $actor, ...$subjects): void { diff --git a/tests/Integration/Api/Client/Server/PowerControllerTest.php b/tests/Integration/Api/Client/Server/PowerControllerTest.php index 5cadb3772..94d3e7326 100644 --- a/tests/Integration/Api/Client/Server/PowerControllerTest.php +++ b/tests/Integration/Api/Client/Server/PowerControllerTest.php @@ -14,7 +14,7 @@ class PowerControllerTest extends ClientApiIntegrationTestCase * an error in response. This checks against the specific permission needed to send * the command to the server. * - * @param string[] $permissions + * @param string[] $permissions * * @dataProvider invalidPermissionDataProvider */ diff --git a/tests/Traits/Integration/CreatesTestModels.php b/tests/Traits/Integration/CreatesTestModels.php index 12d645934..3bede405e 100644 --- a/tests/Traits/Integration/CreatesTestModels.php +++ b/tests/Traits/Integration/CreatesTestModels.php @@ -65,7 +65,7 @@ trait CreatesTestModels * Generates a user and a server for that user. If an array of permissions is passed it * is assumed that the user is actually a subuser of the server. * - * @param string[] $permissions + * @param string[] $permissions * * @return array{\App\Models\User, \App\Models\Server} */