Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Aug 7, 2023
1 parent 0e6682b commit bd1a50c
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 19 deletions.
3 changes: 1 addition & 2 deletions src/Actions/FormatFilesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Spatie\TypeScriptTransformer\Actions;

use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog;
use Spatie\TypeScriptTransformer\Support\WrittenFile;
use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig;

Expand All @@ -14,7 +13,7 @@ public function __construct(
}

/**
* @param array<WrittenFile> $writtenFiles
* @param array<WrittenFile> $writtenFiles
*/
public function execute(array $writtenFiles): void
{
Expand Down
1 change: 0 additions & 1 deletion src/Actions/ProvideTypesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion src/Actions/WriteTypesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion src/Laravel/LaravelNamedRouteTypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/Laravel/LaravelRouteActionTypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/Laravel/LaravelTypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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'),
Expand Down
1 change: 0 additions & 1 deletion src/Laravel/SpatieLaravelTypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/Laravel/TypeScriptTransformerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions src/Transformed/Transformed.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class Transformed
protected ?string $name;

/**
* @param array<string> $location
* @param array<Reference> $references
* @param array<string> $location
* @param array<Reference> $references
*/
public function __construct(
public TypeScriptNode $typeScriptNode,
Expand All @@ -26,7 +26,6 @@ public function __construct(
) {
}


public function getName(): ?string
{
if (isset($this->name)) {
Expand Down
1 change: 0 additions & 1 deletion src/TypeProviders/TransformerTypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/TypeProviders/TypesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Spatie\TypeScriptTransformer\TypeProviders;

use Spatie\TypeScriptTransformer\Support\TransformedCollection;
use Spatie\TypeScriptTransformer\Support\TypeScriptTransformerLog;
use Spatie\TypeScriptTransformer\TypeScriptTransformerConfig;

interface TypesProvider
Expand Down
3 changes: 1 addition & 2 deletions src/TypeScript/TypeScriptImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
class TypeScriptImport implements TypeScriptNode
{
/**
* @param string $path
* @param array<ImportName> $names
* @param array<ImportName> $names
*/
public function __construct(
public string $path,
Expand Down
1 change: 0 additions & 1 deletion src/TypeScriptTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion src/Writers/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd1a50c

Please sign in to comment.