diff --git a/src/Actions/FormatFilesAction.php b/src/Actions/FormatFilesAction.php index 93ad693..f028b22 100644 --- a/src/Actions/FormatFilesAction.php +++ b/src/Actions/FormatFilesAction.php @@ -2,7 +2,6 @@ namespace Spatie\TypeScriptTransformer\Actions; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Support\WrittenFile; use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig; @@ -14,7 +13,7 @@ public function __construct( } /** - * @param array $writtenFiles + * @param array $writtenFiles */ public function execute(array $writtenFiles): void { diff --git a/src/Actions/ProvideTypesAction.php b/src/Actions/ProvideTypesAction.php index 38b9f48..10e2663 100644 --- a/src/Actions/ProvideTypesAction.php +++ b/src/Actions/ProvideTypesAction.php @@ -3,7 +3,6 @@ namespace Spatie\TypeScriptTransformer\Actions; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\TypeProviders\TypesProvider; use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig; diff --git a/src/Actions/WriteTypesAction.php b/src/Actions/WriteTypesAction.php index bb4fd1b..58e423e 100644 --- a/src/Actions/WriteTypesAction.php +++ b/src/Actions/WriteTypesAction.php @@ -4,7 +4,6 @@ use Spatie\TypeScriptTransformer\Collections\ReferenceMap; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Support\WrittenFile; use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig; diff --git a/src/Laravel/LaravelNamedRouteTypesProvider.php b/src/Laravel/LaravelNamedRouteTypesProvider.php index 258a0c8..d144bf5 100644 --- a/src/Laravel/LaravelNamedRouteTypesProvider.php +++ b/src/Laravel/LaravelNamedRouteTypesProvider.php @@ -13,7 +13,6 @@ use Spatie\TypeScriptTransformer\Laravel\Support\WithoutRoutes; use Spatie\TypeScriptTransformer\References\CustomReference; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Transformed\Transformed; use Spatie\TypeScriptTransformer\TypeProviders\TypesProvider; use Spatie\TypeScriptTransformer\TypeScript\TypeReference; diff --git a/src/Laravel/LaravelRouteActionTypesProvider.php b/src/Laravel/LaravelRouteActionTypesProvider.php index 679c3fd..bb87e29 100644 --- a/src/Laravel/LaravelRouteActionTypesProvider.php +++ b/src/Laravel/LaravelRouteActionTypesProvider.php @@ -12,7 +12,6 @@ use Spatie\TypeScriptTransformer\Laravel\Support\WithoutRoutes; use Spatie\TypeScriptTransformer\References\CustomReference; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Transformed\Transformed; use Spatie\TypeScriptTransformer\TypeProviders\TypesProvider; use Spatie\TypeScriptTransformer\TypeScript\TypeReference; diff --git a/src/Laravel/LaravelTypesProvider.php b/src/Laravel/LaravelTypesProvider.php index 35321f9..18fae30 100644 --- a/src/Laravel/LaravelTypesProvider.php +++ b/src/Laravel/LaravelTypesProvider.php @@ -8,7 +8,6 @@ use Illuminate\Support\Collection; use Spatie\TypeScriptTransformer\References\ClassStringReference; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Transformed\Transformed; use Spatie\TypeScriptTransformer\TypeProviders\TypesProvider; use Spatie\TypeScriptTransformer\TypeScript\TypeReference; @@ -86,7 +85,7 @@ protected function lengthAwarePaginator(): Transformed new TypeScriptProperty('data', new TypeScriptGeneric( new TypeScriptIdentifier('Array'), [new TypeScriptIdentifier('T')], - ),), + ), ), new TypeScriptProperty('links', new TypeScriptObject([ new TypeScriptProperty('url', new TypeScriptUnion([ new TypeScriptIdentifier('string'), diff --git a/src/Laravel/SpatieLaravelTypesProvider.php b/src/Laravel/SpatieLaravelTypesProvider.php index 4bf6fa2..3d9c8bb 100644 --- a/src/Laravel/SpatieLaravelTypesProvider.php +++ b/src/Laravel/SpatieLaravelTypesProvider.php @@ -4,7 +4,6 @@ use Spatie\TypeScriptTransformer\References\ClassStringReference; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Transformed\Transformed; use Spatie\TypeScriptTransformer\TypeProviders\TypesProvider; use Spatie\TypeScriptTransformer\TypeScript\TypeScriptAlias; diff --git a/src/Laravel/TypeScriptTransformerServiceProvider.php b/src/Laravel/TypeScriptTransformerServiceProvider.php index 63b92b8..9c10038 100644 --- a/src/Laravel/TypeScriptTransformerServiceProvider.php +++ b/src/Laravel/TypeScriptTransformerServiceProvider.php @@ -7,7 +7,6 @@ use Spatie\TypeScriptTransformer\Laravel\Commands\InstallTypeScriptTransformerCommand; use Spatie\TypeScriptTransformer\Laravel\Commands\TransformTypeScriptCommand; use Spatie\TypeScriptTransformer\Laravel\Commands\WatchTypeScriptCommand; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; class TypeScriptTransformerServiceProvider extends PackageServiceProvider { diff --git a/src/Transformed/Transformed.php b/src/Transformed/Transformed.php index 668b224..57dda9e 100644 --- a/src/Transformed/Transformed.php +++ b/src/Transformed/Transformed.php @@ -14,8 +14,8 @@ class Transformed protected ?string $name; /** - * @param array $location - * @param array $references + * @param array $location + * @param array $references */ public function __construct( public TypeScriptNode $typeScriptNode, @@ -26,7 +26,6 @@ public function __construct( ) { } - public function getName(): ?string { if (isset($this->name)) { diff --git a/src/TypeProviders/TransformerTypesProvider.php b/src/TypeProviders/TransformerTypesProvider.php index 97de851..5e04061 100644 --- a/src/TypeProviders/TransformerTypesProvider.php +++ b/src/TypeProviders/TransformerTypesProvider.php @@ -7,7 +7,6 @@ use Spatie\TypeScriptTransformer\Actions\DiscoverTypesAction; use Spatie\TypeScriptTransformer\Support\TransformationContext; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Transformed\Transformed; use Spatie\TypeScriptTransformer\Transformers\Transformer; use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig; diff --git a/src/TypeProviders/TypesProvider.php b/src/TypeProviders/TypesProvider.php index 1616273..f4721c1 100644 --- a/src/TypeProviders/TypesProvider.php +++ b/src/TypeProviders/TypesProvider.php @@ -3,7 +3,6 @@ namespace Spatie\TypeScriptTransformer\TypeProviders; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig; interface TypesProvider diff --git a/src/TypeScript/TypeScriptImport.php b/src/TypeScript/TypeScriptImport.php index 9622b6d..ecd80dd 100644 --- a/src/TypeScript/TypeScriptImport.php +++ b/src/TypeScript/TypeScriptImport.php @@ -8,8 +8,7 @@ class TypeScriptImport implements TypeScriptNode { /** - * @param string $path - * @param array $names + * @param array $names */ public function __construct( public string $path, diff --git a/src/TypeScriptTransformer.php b/src/TypeScriptTransformer.php index b129017..d08c42c 100644 --- a/src/TypeScriptTransformer.php +++ b/src/TypeScriptTransformer.php @@ -8,7 +8,6 @@ use Spatie\TypeScriptTransformer\Actions\ProvideTypesAction; use Spatie\TypeScriptTransformer\Actions\WriteTypesAction; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; class TypeScriptTransformer { diff --git a/src/Writers/Writer.php b/src/Writers/Writer.php index 503a925..523b41b 100644 --- a/src/Writers/Writer.php +++ b/src/Writers/Writer.php @@ -4,7 +4,6 @@ use Spatie\TypeScriptTransformer\Collections\ReferenceMap; use Spatie\TypeScriptTransformer\Support\TransformedCollection; -use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog; use Spatie\TypeScriptTransformer\Support\WrittenFile; interface Writer