Code Duplication    Length = 8-9 lines in 2 locations

src/Serializer/OrderedSerializer.php 2 locations

@@ 25-32 (lines=8) @@
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function normalize($data, $format = null, array $context = [])
26
    {
27
        return parent::normalize(
28
            is_array($data) ? $this->order($data) : $data,
29
            $format,
30
            $context
31
        );
32
    }
33
34
    /**
35
     * {@inheritdoc}
@@ 37-45 (lines=9) @@
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function denormalize($data, $type, $format = null, array $context = [])
38
    {
39
        return parent::denormalize(
40
            is_array($data) ? $this->order($data) : $data,
41
            $type,
42
            $format,
43
            $context
44
        );
45
    }
46
47
    /**
48
     * Orders objects if can be done.