Code Duplication    Length = 5-5 lines in 2 locations

src/Plugin/Annotation.php 2 locations

@@ 228-232 (lines=5) @@
225
            $reflection = new ReflectionClass($class);
226
            $className = $reflection->getShortName();
227
228
            if ($reflection->isSubclassOf(Repository::class)) {
229
                if ($this->repositoryPostifx) {
230
                    $className = substr($className, 0, strlen($className) - strlen($this->repositoryPostifx));
231
                }
232
            }
233
234
            if ($reflection->isSubclassOf(Entity::class)) {
235
                if ($this->entityPostfix) {
@@ 234-238 (lines=5) @@
231
                }
232
            }
233
234
            if ($reflection->isSubclassOf(Entity::class)) {
235
                if ($this->entityPostfix) {
236
                    $className = substr($className, 0, strlen($className) - strlen($this->entityPostfix));
237
                }
238
            }
239
240
            $this->spaceNames[$class] = $this->mapper->getSchema()->toUnderscore($className);
241
        }