Skip to content

Commit de433e3

Browse files
committed
fix cs
1 parent 3d2b007 commit de433e3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Cryptography/CryptographySubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ public static function getSubscribedEvents(): array
3333
PostExtract::class => 'postExtract',
3434
];
3535
}
36-
}
36+
}

src/Event/PostExtract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public function __construct(
1414
public array $data,
1515
) {
1616
}
17-
}
17+
}

src/Event/PreHydrate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public function __construct(
1414
public array $data,
1515
) {
1616
}
17-
}
17+
}

src/MetadataHydrator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ final class MetadataHydrator implements Hydrator
3333

3434
public function __construct(
3535
private readonly MetadataFactory $metadataFactory = new AttributeMetadataFactory(),
36-
PayloadCryptographer|EventDispatcherInterface|null $eventDispatcherOrCryptographer = null,
36+
PayloadCryptographer|EventDispatcherInterface|null $cryptographer = null,
3737
) {
38-
if ($eventDispatcherOrCryptographer === null) {
38+
if ($cryptographer === null) {
3939
$this->eventDispatcher = null;
40-
} elseif ($eventDispatcherOrCryptographer instanceof EventDispatcherInterface) {
41-
$this->eventDispatcher = $eventDispatcherOrCryptographer;
40+
} elseif ($cryptographer instanceof EventDispatcherInterface) {
41+
$this->eventDispatcher = $cryptographer;
4242
} else {
4343
$this->eventDispatcher = new EventDispatcher();
4444
$this->eventDispatcher->addSubscriber(
45-
new CryptographySubscriber($eventDispatcherOrCryptographer)
45+
new CryptographySubscriber($cryptographer),
4646
);
4747
}
4848
}

0 commit comments

Comments
 (0)