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

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