Code Duplication    Length = 8-8 lines in 2 locations

src/Bridge/Symfony/Routing/IriConverter.php 2 locations

@@ 93-100 (lines=8) @@
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function getIriFromResourceClass(string $resourceClass, int $referenceType = UrlGeneratorInterface::ABS_PATH): string
94
    {
95
        try {
96
            return $this->router->generate($this->routeNameResolver->getRouteName($resourceClass, OperationType::COLLECTION), [], $referenceType);
97
        } catch (RoutingExceptionInterface $e) {
98
            throw new InvalidArgumentException(sprintf('Unable to generate an IRI for "%s".', $resourceClass), $e->getCode(), $e);
99
        }
100
    }
101
102
    /**
103
     * {@inheritdoc}
@@ 105-112 (lines=8) @@
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function getSubresourceIriFromResourceClass(string $resourceClass, array $identifiers, int $referenceType = UrlGeneratorInterface::ABS_PATH): string
106
    {
107
        try {
108
            return $this->router->generate($this->routeNameResolver->getRouteName($resourceClass, OperationType::SUBRESOURCE), $identifiers, $referenceType);
109
        } catch (RoutingExceptionInterface $e) {
110
            throw new InvalidArgumentException(sprintf('Unable to generate an IRI for "%s".', $resourceClass), $e->getCode(), $e);
111
        }
112
    }
113
114
    /**
115
     * Find identifiers from an Item (Object).