Code Duplication    Length = 3-3 lines in 3 locations

src/Normalizer/ObjectNormalizer.php 1 location

@@ 62-64 (lines=3) @@
59
                'object' => $this->normalizeAttribute($object->getObject(), $format, $context),
60
            );
61
62
            if (null !== $result = $object->getResult()) {
63
                $data['result'] = $this->normalizeAttribute($result, $format, $context);
64
            }
65
66
            if (null !== $statementContext = $object->getContext()) {
67
                $data['context'] = $this->normalizeAttribute($statementContext, $format, $context);

src/Normalizer/StatementNormalizer.php 2 locations

@@ 49-51 (lines=3) @@
46
            $data['authority'] = $this->normalizeAttribute($authority, $format, $context);
47
        }
48
49
        if (null !== $result = $object->getResult()) {
50
            $data['result'] = $this->normalizeAttribute($result, $format, $context);
51
        }
52
53
        if (null !== $result = $object->getCreated()) {
54
            $data['timestamp'] = $this->normalizeAttribute($result, $format, $context);
@@ 57-59 (lines=3) @@
54
            $data['timestamp'] = $this->normalizeAttribute($result, $format, $context);
55
        }
56
57
        if (null !== $result = $object->getStored()) {
58
            $data['stored'] = $this->normalizeAttribute($result, $format, $context);
59
        }
60
61
        if (null !== $object->getContext()) {
62
            $data['context'] = $this->normalizeAttribute($object->getContext(), $format, $context);