Skip to content

Commit 8f4b2bc

Browse files
rubenvanasschegithub-actions[bot]
authored andcommitted
Fix styling
1 parent b34ac59 commit 8f4b2bc

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Collections/TransformedCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function remove(Reference|string $reference): void
6767

6868
unset($this->items[$transformed->reference->getKey()]);
6969

70-
if($transformed->reference instanceof FilesystemReference) {
70+
if ($transformed->reference instanceof FilesystemReference) {
7171
$path = $this->cleanupFilePath($transformed->reference->getFilesystemOriginPath());
7272

7373
unset($this->fileMapping[$path]);

src/PhpNodes/PhpAttributeNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ protected function initializeArguments(): array
8181
$constructor = new ReflectionMethod($this->reflection->getName(), '__construct');
8282

8383
foreach ($constructor->getParameters() as $index => $param) {
84-
if(array_key_exists($param->getName(), $this->arguments)) {
84+
if (array_key_exists($param->getName(), $this->arguments)) {
8585
continue;
8686
}
8787

88-
if(! array_key_exists($index, $values)) {
88+
if (! array_key_exists($index, $values)) {
8989
continue;
9090
}
9191

src/PhpNodes/PhpEnumCaseNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public function getName(): string
2020

2121
public function getValue(): string|int|null
2222
{
23-
if($this->reflection instanceof ReflectionEnumCase) {
23+
if ($this->reflection instanceof ReflectionEnumCase) {
2424
return $this->reflection->getValue();
2525
}
2626

27-
if(! method_exists($this->reflection, 'getBackingValue')) {
27+
if (! method_exists($this->reflection, 'getBackingValue')) {
2828
return null;
2929
}
3030

src/Transformed/Transformed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function addMissingReference(
8888
$key = $key->getKey();
8989
}
9090

91-
if(! array_key_exists($key, $this->missingReferences)) {
91+
if (! array_key_exists($key, $this->missingReferences)) {
9292
$this->missingReferences[$key] = [];
9393
}
9494

src/Transformers/EnumTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function transform(
3838

3939
$cases = $this->enumProvider->resolveCases($phpClassNode);
4040

41-
if(count($cases) === 0) {
41+
if (count($cases) === 0) {
4242
return Untransformable::create();
4343
}
4444

src/TypeScriptNodes/TypeReference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function unconnect(): void
3232

3333
public function write(WritingContext $context): string
3434
{
35-
if($this->referenced === null) {
35+
if ($this->referenced === null) {
3636
return 'undefined';
3737
}
3838

0 commit comments

Comments
 (0)