Skip to content

Commit

Permalink
Code review suggestions applied
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Nov 3, 2023
1 parent ac106c0 commit 68a5e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function normalize($object, string $format = null, array $context = []):
return [
'contentId' => $object->getContentId(),
'locationId' => $object->getLocationId(),
'contentTypeIdentifier' => $object->getContentType(),
'contentTypeIdentifier' => $object->getContentType()->id,
'name' => $object->getName(),
'pathString' => $object->getPathString(),
'type' => 'content',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class ParentLocationNormalizer implements NormalizerInterface
public function normalize($object, string $format = null, array $context = []): array
{
return [
'contentId' => $object->getId(),
'id' => $object->getId(),
'locationId' => $object->getLocationId(),
'name' => $object->getName(),
];
Expand Down

0 comments on commit 68a5e84

Please sign in to comment.