Skip to content

Commit 868583b

Browse files
committed
chore(serializer): todo duplicated code
1 parent 9ce9024 commit 868583b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JsonApi/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ private function getIncludedNestedResources(string $relationshipName, array $con
445445
return array_map(static fn (string $nested): string => substr($nested, strpos($nested, '.') + 1), $filtered);
446446
}
447447

448+
// TODO: this code is similar to the one used in JsonLd
448449
private function getResourceShortName(string $resourceClass): string
449450
{
450451
if ($this->resourceClassResolver->isResourceClass($resourceClass)) {

0 commit comments

Comments
 (0)