Code Duplication    Length = 9-9 lines in 2 locations

src/Bridge/Symfony/Routing/CachedIriConverter.php 1 location

@@ 65-73 (lines=9) @@
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getIriFromItem($item, int $referenceType = UrlGeneratorInterface::ABS_PATH): string
66
    {
67
        $resourceClass = $this->getObjectClass($item);
68
        $routeName = $this->routeNameResolver->getRouteName($resourceClass, false);
69
70
        $identifiers = $this->generateIdentifiersUrl($this->getIdentifiersFromItem($item));
71
72
        return $this->router->generate($routeName, ['id' => implode(';', $identifiers)], $referenceType);
73
    }
74
75
    /**
76
     * Find identifiers from an Item (Object).

src/Bridge/Symfony/Routing/IriConverter.php 1 location

@@ 80-88 (lines=9) @@
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function getIriFromItem($item, int $referenceType = UrlGeneratorInterface::ABS_PATH): string
81
    {
82
        $resourceClass = $this->getObjectClass($item);
83
        $routeName = $this->routeNameResolver->getRouteName($resourceClass, false);
84
85
        $identifiers = $this->generateIdentifiersUrl($this->getIdentifiersFromItem($item));
86
87
        return $this->router->generate($routeName, ['id' => implode(';', $identifiers)], $referenceType);
88
    }
89
90
    /**
91
     * {@inheritdoc}