Code Duplication    Length = 3-3 lines in 2 locations

src/Normalizer/ObjectNormalizer.php 1 location

@@ 66-68 (lines=3) @@
63
                $data['result'] = $this->normalizeAttribute($result, $format, $context);
64
            }
65
66
            if (null !== $statementContext = $object->getContext()) {
67
                $data['context'] = $this->normalizeAttribute($statementContext, $format, $context);
68
            }
69
70
            return $data;
71
        }

src/Normalizer/StatementNormalizer.php 1 location

@@ 60-62 (lines=3) @@
57
            $data['stored'] = $this->normalizeAttribute($result, $format, $context);
58
        }
59
60
        if (null !== $object->getContext()) {
61
            $data['context'] = $this->normalizeAttribute($object->getContext(), $format, $context);
62
        }
63
64
        if (null !== $attachments = $object->getAttachments()) {
65
            $data['attachments'] = $this->normalizeAttribute($attachments, $format, $context);