Code Duplication    Length = 9-9 lines in 2 locations

src/annotation/Inject.php 1 location

@@ 82-90 (lines=9) @@
79
     *
80
     * @return string Full class name
81
     */
82
    protected function buildFullClassName($className, $namespace)
83
    {
84
        // Check if we need to append namespace to dependency
85
        if ($className !== null && strpos($className, '\\') === false) {
86
            return $namespace . '\\' . $className;
87
        }
88
89
        return $className;
90
    }
91
92
    /**
93
     * Check if @Inject violates inheritance.

src/configurator/InjectableAbstractConfigurator.php 1 location

@@ 44-52 (lines=9) @@
41
     *
42
     * @return string Full class name
43
     */
44
    protected function buildFullClassName($className, $namespace)
45
    {
46
        // Check if we need to append namespace to dependency
47
        if ($className !== null && strpos($className, '\\') === false) {
48
            return $namespace . '\\' . $className;
49
        }
50
51
        return $className;
52
    }
53
}
54