Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractSerializer.php 2 locations

@@ 96-98 (lines=3) @@
93
     */
94
    private function getRelationshipMethodName($name)
95
    {
96
        if (stripos($name, '-')) {
97
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
98
        }
99
100
        if (stripos($name, '_')) {
101
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
@@ 100-102 (lines=3) @@
97
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
98
        }
99
100
        if (stripos($name, '_')) {
101
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
102
        }
103
104
        return $name;
105
    }