Code Duplication    Length = 12-12 lines in 2 locations

Adaptors/Symfony/SymfonyPropertyMapper.php 2 locations

@@ 37-48 (lines=12) @@
34
     * @return null|string
35
     * @throws MapperException
36
     */
37
    public function getObjectProperty($className, $apiProperty)
38
    {
39
        if ($this->factory->hasMetadataFor($className)) {
40
            return null;
41
        }
42
43
        if (!in_array($apiProperty, $this->getApiProperties($className), true)) {
44
            return null;
45
        }
46
47
        return $this->strategy->denormalize($apiProperty);
48
    }
49
50
    /**
51
     * @param string $className
@@ 57-68 (lines=12) @@
54
     * @return null|string
55
     * @throws MapperException
56
     */
57
    public function getApiProperty($className, $objectProperty)
58
    {
59
        if ($this->factory->hasMetadataFor($className)) {
60
            return null;
61
        }
62
63
        if (!in_array($objectProperty, $this->getObjectProperties($className), true)) {
64
            return null;
65
        }
66
67
        return $this->strategy->normalize($objectProperty);
68
    }
69
70
    /**
71
     * @param string $className