Code Duplication    Length = 3-3 lines in 2 locations

src/AbstractResource.php 2 locations

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