Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Dec 30, 2024
1 parent f0791ab commit 11e4bd9
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Concerns/AsksApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/AsksClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Concerns/AsksData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/AsksDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/AsksEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Concerns/AsksModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Concerns/WrapsSuggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Domains/DocBlock/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Domains/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Domains/Test/UnitTestGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class UnitTestGenerator
{
/** @var \Soyhuce\Somake\Contracts\UnitTestGenerator<TClass> */
/** @var UnitTestGeneratorContract<TClass> */
protected UnitTestGeneratorContract $generator;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Support/FileOpener.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class FileOpener
{
/** @var Collection<int, \Soyhuce\Somake\Support\FileWritten> */
/** @var Collection<int, FileWritten> */
protected Collection $events;

public function __construct()
Expand Down
16 changes: 8 additions & 8 deletions src/Support/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(Composer $composer)
}

/**
* @return \Illuminate\Support\Collection<int, string>
* @return Collection<int, string>
*/
public function domains(): Collection
{
Expand All @@ -45,7 +45,7 @@ private function domainRootPath(): string
}

/**
* @return \Illuminate\Support\Collection<int, string>
* @return Collection<int, string>
*/
public function applications(): Collection
{
Expand All @@ -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
{
Expand Down Expand Up @@ -91,7 +91,7 @@ public function supportRootPath(): string
}

/**
* @return \Illuminate\Support\Collection<int, class-string>
* @return Collection<int, class-string>
*/
public function events(): Collection
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -130,7 +130,7 @@ public function datas(): Collection
}

/**
* @return \Illuminate\Support\Collection<int, class-string>
* @return Collection<int, class-string>
*/
public function classes(): Collection
{
Expand All @@ -147,7 +147,7 @@ public function classes(): Collection
}

/**
* @return \Illuminate\Support\Collection<int, class-string>
* @return Collection<int, class-string>
*/
public function controllers(): Collection
{
Expand Down
2 changes: 1 addition & 1 deletion src/Support/PendingWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PendingWriter

protected string $stub;

/** @var \Illuminate\Support\Collection<string, mixed> */
/** @var Collection<string, mixed> */
protected Collection $data;

/**
Expand Down

0 comments on commit 11e4bd9

Please sign in to comment.