Code Duplication    Length = 5-5 lines in 2 locations

src/Plugin/Annotation.php 2 locations

@@ 173-177 (lines=5) @@
170
            $reflection = new ReflectionClass($class);
171
            $className = $reflection->getShortName();
172
173
            if ($reflection->isSubclassOf(Repository::class)) {
174
                if ($this->repositoryPostifx) {
175
                    $className = substr($className, 0, strlen($className) - strlen($this->repositoryPostifx));
176
                }
177
            }
178
179
            if ($reflection->isSubclassOf(Entity::class)) {
180
                if ($this->entityPostfix) {
@@ 179-183 (lines=5) @@
176
                }
177
            }
178
179
            if ($reflection->isSubclassOf(Entity::class)) {
180
                if ($this->entityPostfix) {
181
                    $className = substr($className, 0, strlen($className) - strlen($this->entityPostfix));
182
                }
183
            }
184
185
            $this->spaceNames[$class] = $this->toUnderscore($className);
186
        }