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 = 5-5 lines in 2 locations

src/Persister/ElasticEntityPersister.php 2 locations

@@ 311-315 (lines=5) @@
308
     * @throws MappingException
309
     */
310
    private function getEntityType($className = null) {
311
        if (is_string($className) && boolval($className)) {
312
            $refClass = new \ReflectionClass($className);
313
        } else {
314
            $refClass = $this->getClassMetadata()->getReflectionClass();
315
        }
316
317
        /** @var Type $type */
318
        $type = $this->annotationReader->getClassAnnotation($refClass, Type::class);
@@ 335-339 (lines=5) @@
332
333
    private function getEntityIndex($className = null)
334
    {
335
        if (is_string($className) && boolval($className)) {
336
            $refClass = new \ReflectionClass($className);
337
        } else {
338
            $refClass = $this->getClassMetadata()->getReflectionClass();
339
        }
340
341
        $index = $this->annotationReader->getClassAnnotation($refClass, Index::class);
342