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

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