Skip to content

Commit

Permalink
refactor: pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pemudakoding committed Feb 25, 2023
1 parent 19c60ea commit 792f8e3
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/Actions/Command/ResolveCommandAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function __construct(
}

/**
* @return void
*
* @throws FileAlreadyExistException
* @throws FileNotFoundException
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Actions/Composer/ResolveComposerAutoLoaderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public function execute(): bool
}

/**
* @return stdClass
*
* @throws FileNotFoundException
* @throws Throwable
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Actions/Stub/CopyStubAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
/**
* Copy Stub to Diamond Infrastructure
*
* @param CopyStubData $data
* @return void
*
* @throws FileNotFoundException
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Actions/Stub/ReplacePlaceholderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
/**
* Replace Placeholder Stub data
*
* @param string $filePath
* @param PlaceholderData $placeholders
* @return void
*
* @throws FileNotFoundException
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/Concerns/HasOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ protected function resolveFactoryOption(): bool
return (bool) $this->option(key: 'factory');
}

/**
* @return string|null
*/
protected function resolveTableName(): string | null
{
/** @var string|null $name */
Expand Down
3 changes: 0 additions & 3 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public function handle(): void
$this->info(string: 'Successfully generate base file');
}

/**
* @return string
*/
protected function resolveBaseDirectoryPath(): string
{
return base_path(path: Source::resolveBasePath());
Expand Down
1 change: 0 additions & 1 deletion src/Foundation/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Resolve an action class
*
* @param array<array-key, mixed> $parameters
* @return static
*/
public static function resolve(array $parameters = []): static
{
Expand Down
3 changes: 0 additions & 3 deletions src/Foundation/DataTransferObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public function toArray(): array

/**
* Resolve result array-key of toArray method from behaviour
*
* @param string $key
* @return string
*/
protected function resolveArrayKey(string $key): string
{
Expand Down
8 changes: 0 additions & 8 deletions src/Foundation/DataTransferObject/HasResolvable.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ trait HasResolvable
* @template TValue
*
* @param array<TKey, TValue> $data
* @return static
*/
public static function resolveFromArray(array $data): static
{
Expand All @@ -29,7 +28,6 @@ public static function resolveFromArray(array $data): static
* @template TValue
*
* @param FormRequest | Model | array<TKey, TValue> $abstract
* @return static
*/
public static function resolveFrom(FormRequest | Model | array $abstract): static
{
Expand All @@ -50,9 +48,6 @@ public static function resolveFrom(FormRequest | Model | array $abstract): stati

/**
* Resolve unstructured data from FormRequest
*
* @param FormRequest $request
* @return static
*/
public static function resolveFromFormRequest(FormRequest $request): static
{
Expand All @@ -61,9 +56,6 @@ public static function resolveFromFormRequest(FormRequest $request): static

/**
* Resolve unstructured data from Model
*
* @param Model $model
* @return static
*/
public static function resolveFromModel(Model $model): static
{
Expand Down

0 comments on commit 792f8e3

Please sign in to comment.