Code Duplication    Length = 5-5 lines in 2 locations

src/Plugin/Annotation.php 2 locations

@@ 180-184 (lines=5) @@
177
            $reflection = new ReflectionClass($class);
178
            $className = $reflection->getShortName();
179
180
            if ($reflection->isSubclassOf(Repository::class)) {
181
                if ($this->repositoryPostifx) {
182
                    $className = substr($className, 0, strlen($className) - strlen($this->repositoryPostifx));
183
                }
184
            }
185
186
            if ($reflection->isSubclassOf(Entity::class)) {
187
                if ($this->entityPostfix) {
@@ 186-190 (lines=5) @@
183
                }
184
            }
185
186
            if ($reflection->isSubclassOf(Entity::class)) {
187
                if ($this->entityPostfix) {
188
                    $className = substr($className, 0, strlen($className) - strlen($this->entityPostfix));
189
                }
190
            }
191
192
            $this->spaceNames[$class] = $this->toUnderscore($className);
193
        }