diff --git a/src/IslandoraCitationsHelper.php b/src/IslandoraCitationsHelper.php index 4e85f16..3da87d1 100644 --- a/src/IslandoraCitationsHelper.php +++ b/src/IslandoraCitationsHelper.php @@ -148,8 +148,8 @@ public function renderWithCiteproc(array $data, string $style, string $mode = 'b */ public function encodeEntityForCiteproc(EntityInterface $entity): object { try { - $cslEncodedData = $this->serializer->normalize($entity, 'csl-json'); - return (object) $cslEncodedData; + $cslEncodedData = $this->serializer->normalize($entity, 'csl-json'); + return (object) $cslEncodedData; } catch (\Exception $e) { $this->logger->error($e->getMessage());