diff --git a/src/Commands/Concerns/AsksApplication.php b/src/Commands/Concerns/AsksApplication.php index 35279d8..300a17d 100644 --- a/src/Commands/Concerns/AsksApplication.php +++ b/src/Commands/Concerns/AsksApplication.php @@ -10,7 +10,7 @@ trait AsksApplication use WrapsSuggestions; /** - * @param \Illuminate\Support\Collection<int, string> $applications + * @param Collection<int, string> $applications */ protected function askApplication(Collection $applications): string { @@ -22,7 +22,7 @@ protected function askApplication(Collection $applications): string } /** - * @param \Illuminate\Support\Collection<int, string>|null $domains + * @param Collection<int, string>|null $domains */ protected function askOptionalNamespace(string $classname, ?Collection $domains = null): string { diff --git a/src/Commands/Concerns/AsksClass.php b/src/Commands/Concerns/AsksClass.php index 3d9f6d7..9658215 100644 --- a/src/Commands/Concerns/AsksClass.php +++ b/src/Commands/Concerns/AsksClass.php @@ -74,7 +74,7 @@ private function qualifyClass(string $question, string $class): string } /** - * @param \Illuminate\Support\Collection<int, class-string> $guessedClasses + * @param Collection<int, class-string> $guessedClasses */ private function disambiguateClass(Collection $guessedClasses): string { diff --git a/src/Commands/Concerns/AsksData.php b/src/Commands/Concerns/AsksData.php index a560f40..17ad223 100644 --- a/src/Commands/Concerns/AsksData.php +++ b/src/Commands/Concerns/AsksData.php @@ -14,7 +14,7 @@ trait AsksData use WrapsSuggestions; /** - * @param \Illuminate\Support\Collection<int, class-string<\Spatie\LaravelData\Data>> $datas + * @param Collection<int, class-string<\Spatie\LaravelData\Data>> $datas * @return class-string<\Spatie\LaravelData\Data> */ protected function askData(Collection $datas): string @@ -68,7 +68,7 @@ private function qualifyData(string $data): string } /** - * @param \Illuminate\Support\Collection<int, class-string<\Spatie\LaravelData\Data>> $datas + * @param Collection<int, class-string<\Spatie\LaravelData\Data>> $datas */ private function disambiguateDatas(Collection $datas): string { diff --git a/src/Commands/Concerns/AsksDomain.php b/src/Commands/Concerns/AsksDomain.php index 5480352..20fb077 100644 --- a/src/Commands/Concerns/AsksDomain.php +++ b/src/Commands/Concerns/AsksDomain.php @@ -10,7 +10,7 @@ trait AsksDomain use WrapsSuggestions; /** - * @param \Illuminate\Support\Collection<int, string> $domains + * @param Collection<int, string> $domains */ protected function askDomain(Collection $domains): string { diff --git a/src/Commands/Concerns/AsksEvent.php b/src/Commands/Concerns/AsksEvent.php index e00755a..150aaa6 100644 --- a/src/Commands/Concerns/AsksEvent.php +++ b/src/Commands/Concerns/AsksEvent.php @@ -71,7 +71,7 @@ private function qualifyEvent(string $question, string $event): string } /** - * @param \Illuminate\Support\Collection<int, class-string> $guessedEvents + * @param Collection<int, class-string> $guessedEvents */ private function disambiguateEvent(Collection $guessedEvents): string { diff --git a/src/Commands/Concerns/AsksModel.php b/src/Commands/Concerns/AsksModel.php index 97801dd..f787d0f 100644 --- a/src/Commands/Concerns/AsksModel.php +++ b/src/Commands/Concerns/AsksModel.php @@ -14,7 +14,7 @@ trait AsksModel use WrapsSuggestions; /** - * @param \Illuminate\Support\Collection<int, class-string<\Illuminate\Database\Eloquent\Model>> $models + * @param Collection<int, class-string<\Illuminate\Database\Eloquent\Model>> $models * @return class-string<\Illuminate\Database\Eloquent\Model> */ protected function askModel(Collection $models): string @@ -69,7 +69,7 @@ private function qualifyModel(string $model): string } /** - * @param \Illuminate\Support\Collection<int, class-string<\Illuminate\Database\Eloquent\Model>> $models + * @param Collection<int, class-string<\Illuminate\Database\Eloquent\Model>> $models */ private function disambiguateModel(Collection $models): string { diff --git a/src/Commands/Concerns/WrapsSuggestions.php b/src/Commands/Concerns/WrapsSuggestions.php index c4b8b0d..6249ae9 100644 --- a/src/Commands/Concerns/WrapsSuggestions.php +++ b/src/Commands/Concerns/WrapsSuggestions.php @@ -9,7 +9,7 @@ trait WrapsSuggestions { /** - * @param \Illuminate\Support\Collection<int, string> $suggestions + * @param Collection<int, string> $suggestions * @return Closure(string): array<int, string> */ public function wrapSuggestions(Collection $suggestions): Closure diff --git a/src/Domains/DocBlock/DocBlock.php b/src/Domains/DocBlock/DocBlock.php index 94077a4..312bfe9 100644 --- a/src/Domains/DocBlock/DocBlock.php +++ b/src/Domains/DocBlock/DocBlock.php @@ -33,7 +33,7 @@ public function __construct() /** * @param class-string $class * @param array<string> $types - * @return \Illuminate\Support\Collection<int, \Soyhuce\Somake\Domains\DocBlock\DocTag> + * @return Collection<int, DocTag> */ public function getTags(string $class, array $types): Collection { diff --git a/src/Domains/Model/Model.php b/src/Domains/Model/Model.php index 59ed0f7..e51e1bd 100644 --- a/src/Domains/Model/Model.php +++ b/src/Domains/Model/Model.php @@ -32,7 +32,7 @@ public function getDomain(): string } /** - * @return \Illuminate\Support\Collection<int, \Soyhuce\Somake\Domains\Model\Attribute> + * @return Collection<int, Attribute> */ public function factoryAttributes(): Collection { @@ -46,7 +46,7 @@ public function factoryAttributes(): Collection } /** - * @return \Illuminate\Support\Collection<int, \Soyhuce\Somake\Domains\Model\Attribute> + * @return Collection<int, Attribute> */ public function allAttributes(): Collection { diff --git a/src/Domains/Test/UnitTestGenerator.php b/src/Domains/Test/UnitTestGenerator.php index fab4efb..39f9c74 100644 --- a/src/Domains/Test/UnitTestGenerator.php +++ b/src/Domains/Test/UnitTestGenerator.php @@ -11,7 +11,7 @@ */ class UnitTestGenerator { - /** @var \Soyhuce\Somake\Contracts\UnitTestGenerator<TClass> */ + /** @var UnitTestGeneratorContract<TClass> */ protected UnitTestGeneratorContract $generator; /** diff --git a/src/Domains/Test/UnitTestGenerators/JsonResourceTestGenerator.php b/src/Domains/Test/UnitTestGenerators/JsonResourceTestGenerator.php index a65e2de..b0000b4 100644 --- a/src/Domains/Test/UnitTestGenerators/JsonResourceTestGenerator.php +++ b/src/Domains/Test/UnitTestGenerators/JsonResourceTestGenerator.php @@ -59,7 +59,7 @@ public function data(string $class): array } /** - * @param class-string<\Illuminate\Http\Resources\Json\JsonResource> $class + * @param class-string<JsonResource> $class */ private function extractMixin(string $class): ?string { @@ -70,7 +70,7 @@ private function extractMixin(string $class): ?string } /** - * @param class-string<\Illuminate\Http\Resources\Json\JsonResource> $class + * @param class-string<JsonResource> $class * @return array<int, string> */ private function extractFields(string $class): array diff --git a/src/Support/FileOpener.php b/src/Support/FileOpener.php index d77f98b..f0ca1f0 100644 --- a/src/Support/FileOpener.php +++ b/src/Support/FileOpener.php @@ -10,7 +10,7 @@ class FileOpener { - /** @var Collection<int, \Soyhuce\Somake\Support\FileWritten> */ + /** @var Collection<int, FileWritten> */ protected Collection $events; public function __construct() diff --git a/src/Support/Finder.php b/src/Support/Finder.php index 688345f..a71e3c2 100644 --- a/src/Support/Finder.php +++ b/src/Support/Finder.php @@ -26,7 +26,7 @@ public function __construct(Composer $composer) } /** - * @return \Illuminate\Support\Collection<int, string> + * @return Collection<int, string> */ public function domains(): Collection { @@ -45,7 +45,7 @@ private function domainRootPath(): string } /** - * @return \Illuminate\Support\Collection<int, string> + * @return Collection<int, string> */ public function applications(): Collection { @@ -59,7 +59,7 @@ public function applicationPath(string $path): string } /** - * @return \Illuminate\Support\Collection<int, string> + * @return Collection<int, string> */ private function findApplications(string $path): Collection { @@ -91,7 +91,7 @@ public function supportRootPath(): string } /** - * @return \Illuminate\Support\Collection<int, class-string> + * @return Collection<int, class-string> */ public function events(): Collection { @@ -108,7 +108,7 @@ public function events(): Collection } /** - * @return \Illuminate\Support\Collection<int, class-string<\Illuminate\Database\Eloquent\Model>> + * @return Collection<int, class-string<Model>> */ public function models(): Collection { @@ -119,7 +119,7 @@ public function models(): Collection } /** - * @return \Illuminate\Support\Collection<int, class-string<\Spatie\LaravelData\Data>> + * @return Collection<int, class-string<Data>> */ public function datas(): Collection { @@ -130,7 +130,7 @@ public function datas(): Collection } /** - * @return \Illuminate\Support\Collection<int, class-string> + * @return Collection<int, class-string> */ public function classes(): Collection { @@ -147,7 +147,7 @@ public function classes(): Collection } /** - * @return \Illuminate\Support\Collection<int, class-string> + * @return Collection<int, class-string> */ public function controllers(): Collection { diff --git a/src/Support/PendingWriter.php b/src/Support/PendingWriter.php index 3c62ee6..e291990 100644 --- a/src/Support/PendingWriter.php +++ b/src/Support/PendingWriter.php @@ -16,7 +16,7 @@ class PendingWriter protected string $stub; - /** @var \Illuminate\Support\Collection<string, mixed> */ + /** @var Collection<string, mixed> */ protected Collection $data; /**