Code Duplication    Length = 9-9 lines in 2 locations

src/annotation/InjectArgument.php 1 location

@@ 96-104 (lines=9) @@
93
     *
94
     * @return string Full class name
95
     */
96
    protected function buildFullClassName($className, $namespace)
97
    {
98
        // Check if we need to append namespace to dependency
99
        if ($className !== null && strpos($className, '\\') === false) {
100
            return $namespace . '\\' . $className;
101
        }
102
103
        return $className;
104
    }
105
}
106

src/annotation/Inject.php 1 location

@@ 93-101 (lines=9) @@
90
     *
91
     * @return string Full class name
92
     */
93
    protected function buildFullClassName($className, $namespace)
94
    {
95
        // Check if we need to append namespace to dependency
96
        if ($className !== null && strpos($className, '\\') === false) {
97
            return $namespace . '\\' . $className;
98
        }
99
100
        return $className;
101
    }
102
103
    /**
104
     * Check if @Inject violates inheritance.