Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractResource.php 2 locations

@@ 75-77 (lines=3) @@
72
     */
73
    private function getRelationshipMethodName($name)
74
    {
75
        if (stripos($name, '-')) {
76
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
77
        }
78
79
        if (stripos($name, '_')) {
80
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
@@ 79-81 (lines=3) @@
76
            $name = lcfirst(implode('', array_map('ucfirst', explode('-', $name))));
77
        }
78
79
        if (stripos($name, '_')) {
80
            $name = lcfirst(implode('', array_map('ucfirst', explode('_', $name))));
81
        }
82
83
        return $name;
84
    }