Code Duplication    Length = 9-9 lines in 2 locations

src/Repositories/RedirectUriRepository.php 1 location

@@ 93-101 (lines=9) @@
90
     *
91
     * @throws RepositoryException
92
     */
93
    public function read(int $identifier): RedirectUriInterface
94
    {
95
        try {
96
            return $this->readResource($identifier);
97
        } catch (RepositoryException $exception) {
98
            $message = 'Reading client redirect URIs failed.';
99
            throw new RepositoryException($message, 0, $exception);
100
        }
101
    }
102
103
    /**
104
     * @inheritdoc

src/Repositories/ScopeRepository.php 1 location

@@ 78-86 (lines=9) @@
75
     *
76
     * @throws RepositoryException
77
     */
78
    public function read(string $identifier): ScopeInterface
79
    {
80
        try {
81
            return $this->readResource($identifier);
82
        } catch (RepositoryException $exception) {
83
            $message = 'Scope reading failed.';
84
            throw new RepositoryException($message, 0, $exception);
85
        }
86
    }
87
88
    /**
89
     * @inheritdoc