chore: code cleanup
This commit is contained in:
1 parent
c4e28818e0
commit
e36009008c
273 files changed
+547
-531
No files matched your search
@@ -13,7 +13,7 @@ class EntityToIdentifierTransformer implements DataTransformerInterface
|
||||
public function __construct(
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly string $class,
|
||||
string $identifier = 'id'
|
||||
string $identifier = 'id',
|
||||
) {
|
||||
if (false === in_array($identifier, ['id', 'uuid'])) {
|
||||
throw new \InvalidArgumentException(sprintf('Identifier must be one of "id" or "uuid" got "%s"', $identifier));
|
||||
|
||||
@@ -30,4 +30,4 @@ class FeedbackToRatingsTransformer implements DataTransformerInterface
|
||||
|
||||
return $feedbackRatings;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user