GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 27-29 lines in 2 locations

src/Bindings/Browser/RepositoryService.php 2 locations

@@ 117-145 (lines=29) @@
114
     * @param ExtensionDataInterface|null $extension
115
     * @return TypeDefinitionListInterface
116
     */
117
    public function getTypeChildren(
118
        $repositoryId,
119
        $typeId = null,
120
        $includePropertyDefinitions = false,
121
        $maxItems = null,
122
        $skipCount = 0,
123
        ExtensionDataInterface $extension = null
124
    ) {
125
        $url = $this->getRepositoryUrl($repositoryId, Constants::SELECTOR_TYPE_CHILDREN);
126
        $url->getQuery()->modify(
127
            [
128
                Constants::PARAM_PROPERTY_DEFINITIONS => $includePropertyDefinitions ? 'true' : 'false',
129
                Constants::PARAM_SKIP_COUNT => $skipCount,
130
                Constants::PARAM_DATETIME_FORMAT => (string) $this->getDateTimeFormat()
131
            ]
132
        );
133
134
        if ($typeId !== null) {
135
            $url->getQuery()->modify([Constants::PARAM_TYPE_ID => $typeId]);
136
        }
137
138
        if ($maxItems !== null) {
139
            $url->getQuery()->modify([Constants::PARAM_MAX_ITEMS => $maxItems]);
140
        }
141
142
        $responseData = (array) $this->readJson($url);
143
144
        return $this->getJsonConverter()->convertTypeChildren($responseData);
145
    }
146
147
    /**
148
     * Gets the definition of the specified object type.
@@ 195-221 (lines=27) @@
192
     * @param ExtensionDataInterface|null $extension
193
     * @return TypeDefinitionContainerInterface[]
194
     */
195
    public function getTypeDescendants(
196
        $repositoryId,
197
        $typeId = null,
198
        $depth = null,
199
        $includePropertyDefinitions = false,
200
        ExtensionDataInterface $extension = null
201
    ) {
202
        $url = $this->getRepositoryUrl($repositoryId, Constants::SELECTOR_TYPE_DESCENDANTS);
203
        $url->getQuery()->modify(
204
            [
205
                Constants::PARAM_PROPERTY_DEFINITIONS => $includePropertyDefinitions ? 'true' : 'false',
206
                Constants::PARAM_DATETIME_FORMAT => (string) $this->getDateTimeFormat()
207
            ]
208
        );
209
210
        if ($typeId !== null) {
211
            $url->getQuery()->modify([Constants::PARAM_TYPE_ID => $typeId]);
212
        }
213
214
        if ($depth !== null) {
215
            $url->getQuery()->modify([Constants::PARAM_DEPTH => $depth]);
216
        }
217
218
        $responseData = (array) $this->readJson($url);
219
220
        return $this->getJsonConverter()->convertTypeDescendants($responseData);
221
    }
222
223
    /**
224
     * Updates a type.