Code Duplication    Length = 9-9 lines in 2 locations

src/Entities/Definitions/AbstractStructureDefinition.php 1 location

@@ 201-209 (lines=9) @@
198
     *
199
     * @return string
200
     */
201
    public function getQualifiedName()
202
    {
203
        if (empty($this->namespace)) {
204
            return $this->name;
205
206
        } else {
207
            return ltrim($this->namespace, '\\') . '\\' . $this->name;
208
        }
209
    }
210
211
    /**
212
     * Will return the type of the definition.

src/Entities/Definitions/Aspect.php 1 location

@@ 127-135 (lines=9) @@
124
     *
125
     * @return string
126
     */
127
    public function getQualifiedName()
128
    {
129
        if (empty($this->namespace)) {
130
            return $this->name;
131
132
        } else {
133
            return $this->namespace . '\\' . $this->name;
134
        }
135
    }
136
137
    /**
138
     * Setter for the $name property