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

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