Code Duplication    Length = 5-5 lines in 2 locations

src/Plugin/Annotation.php 2 locations

@@ 190-194 (lines=5) @@
187
            $reflection = new ReflectionClass($class);
188
            $className = $reflection->getShortName();
189
190
            if ($reflection->isSubclassOf(Repository::class)) {
191
                if ($this->repositoryPostifx) {
192
                    $className = substr($className, 0, strlen($className) - strlen($this->repositoryPostifx));
193
                }
194
            }
195
196
            if ($reflection->isSubclassOf(Entity::class)) {
197
                if ($this->entityPostfix) {
@@ 196-200 (lines=5) @@
193
                }
194
            }
195
196
            if ($reflection->isSubclassOf(Entity::class)) {
197
                if ($this->entityPostfix) {
198
                    $className = substr($className, 0, strlen($className) - strlen($this->entityPostfix));
199
                }
200
            }
201
202
            $this->spaceNames[$class] = $this->mapper->getSchema()->toUnderscore($className);
203
        }