Skip to content

Commit 809cfac

Browse files
rubenvanasschegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 02e5052 commit 809cfac

33 files changed

+46
-63
lines changed

src/Actions/AppendDefaultTypesAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ public function __construct(
1616
}
1717

1818
/**
19-
* @param array<Transformed> $transformed
20-
*
19+
* @param array<Transformed> $transformed
2120
* @return array<Transformed>
2221
*/
2322
public function execute(array $transformed): array

src/Actions/ConnectReferencesAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(
1818
}
1919

2020
/**
21-
* @param array<Transformed> $transformed
21+
* @param array<Transformed> $transformed
2222
*/
2323
public function execute(array $transformed): ReferenceMap
2424
{

src/Actions/DiscoverTypesAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ class DiscoverTypesAction
1212
public function __construct(
1313
public TypeScriptTransformerConfig $config,
1414
public TypeScriptTransformerLog $log,
15-
)
16-
{
15+
) {
1716
}
1817

1918
/** @return array<string> */

src/Actions/FindClassNameFqcnAction.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function execute(ReflectionClass $reflectionClass, string $className): ?s
2626

2727
$guessedFqcn = "{$reflectionClass->getNamespaceName()}\\{$className}";
2828

29-
if(class_exists($guessedFqcn)){
29+
if (class_exists($guessedFqcn)) {
3030
return $this->cleanupClassname($guessedFqcn);
3131
}
3232

@@ -46,8 +46,7 @@ protected function loadUsages(ReflectionClass $reflectionClass): UsageCollection
4646

4747
protected function cleanupClassname(
4848
string $classname
49-
):string
50-
{
49+
): string {
5150
return ltrim($classname, '\\');
5251
}
5352
}

src/Actions/FormatFilesAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class FormatFilesAction
1111
public function __construct(
1212
public TypeScriptTransformerConfig $config,
1313
public TypeScriptTransformerLog $log,
14-
)
15-
{
14+
) {
1615
}
1716

1817
/**

src/Actions/ParseUseDefinitionsAction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public function execute(
2020
string $filename,
2121
): UsageCollection {
2222
/** @todo refactor this to the structure discoverer package, it is copied from there */
23-
2423
try {
2524
$contents = file_get_contents($filename);
2625

src/Actions/SplitTransformedPerLocationAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
class SplitTransformedPerLocationAction
99
{
1010
/**
11-
* @param array<Transformed> $transformedTypes
12-
*
11+
* @param array<Transformed> $transformedTypes
1312
* @return array<Location>
1413
*/
1514
public function execute(array $transformedTypes): array

src/Actions/TransformTypesAction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public function __construct(
1919

2020
/**
2121
* @param array<string> $types
22-
*
2322
* @return array<Transformed>
2423
*/
2524
public function execute(array $types): array

src/Actions/WriteTypesAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ public function __construct(
1919
public function execute(
2020
array $transformed,
2121
ReferenceMap $referenceMap
22-
): array
23-
{
22+
): array {
2423
return $this->config->writer->output($transformed, $referenceMap);
2524
}
2625
}

src/Attributes/LiteralTypeScriptType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#[Attribute]
1111
class LiteralTypeScriptType implements TypeScriptTransformableAttribute
1212
{
13-
private string | array $typeScript;
13+
private string|array $typeScript;
1414

15-
public function __construct(string | array $typeScript)
15+
public function __construct(string|array $typeScript)
1616
{
1717
$this->typeScript = $typeScript;
1818
}

0 commit comments

Comments
 (0)