diff --git a/app/Http/Requests/Bo/Fonts/StoreFontRequest.php b/app/Http/Requests/Bo/Fonts/StoreFontRequest.php index 548690f..f2a8dfe 100644 --- a/app/Http/Requests/Bo/Fonts/StoreFontRequest.php +++ b/app/Http/Requests/Bo/Fonts/StoreFontRequest.php @@ -40,8 +40,9 @@ class StoreFontRequest extends FormRequest { return [ 'font_name' => [ - // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed - 'present', 'required_without:font', 'nullable', function (string $attribute, $value, callable $fail) { + 'present', 'required_without:font', 'nullable', + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed + function (string $attribute, $value, callable $fail) { $font = $this->input('font'); if (is_null($font) and !in_array($value, Font::DEFAULT_FONTS)) { $fail(trans('validation.in_array', [ diff --git a/app/Jobs/ShowroomExport.php b/app/Jobs/ShowroomExport.php index 96d368a..cccf183 100644 --- a/app/Jobs/ShowroomExport.php +++ b/app/Jobs/ShowroomExport.php @@ -134,7 +134,8 @@ class ShowroomExport implements ShouldQueue, ShouldBeUnique } foreach ($filesToZip as $file) { - $fileToAdd = Str::of($file)->replace($this->tempFolder, '')->start('/')->explode('/')->filter()->implode('/'); + $fileToAdd = Str::of($file)->replace($this->tempFolder, '') + ->start('/')->explode('/')->filter()->implode('/'); if (!$zip->addFile($file, $fileToAdd)) { throw new \RuntimeException("Failed to add file {$file} into zip"); } diff --git a/app/Models/ActivityLog.php b/app/Models/ActivityLog.php index 0eca06b..5e8a4e4 100644 --- a/app/Models/ActivityLog.php +++ b/app/Models/ActivityLog.php @@ -103,8 +103,8 @@ class ActivityLog extends Model $activity->model_id )->first(); if ($targetModel != null) { - // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed $targetModelTypes = collect($targetModel->toArray()) + // phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed ->map(function ($field, $fieldIndex) use ($targetModel) { return Schema::getColumnType($targetModel->getTable(), $fieldIndex); })->toArray(); diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 7ef6744..c37f8c9 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -36,7 +36,7 @@ class UserFactory extends Factory */ public function unverified(): static { - // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass + // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found return $this->state(fn (array $attributes) => [ 'email_verified_at' => null, ]);