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

src/Query/ElasticQueryExecutor.php 1 location

@@ 61-71 (lines=11) @@
58
        return $results;
59
    }
60
61
    private function hydrateEntityWith($entity, array $rawData) {
62
        $this->_hydrator->hydrate($entity, $rawData);
63
        $this->_hydrator->hydrateByAnnotation($entity, Field::class, $rawData);
64
        $this->_hydrator->hydrateByAnnotation($entity, MetaField::class, $rawData);
65
66
        if (isset($rawData['_source'])) {
67
            $this->hydrateEntityWith($entity, $rawData['_source']);
68
        }
69
70
        return $entity;
71
    }
72
73
    private function fetchElasticResult(SearchParams $searchParams) {
74
        $results = [];

src/Persister/ElasticEntityPersister.php 1 location

@@ 350-360 (lines=11) @@
347
        return null;
348
    }
349
350
    private function hydrateEntityByResult($entity, array $searchResult) {
351
        if (isset($searchResult['_source'])) {
352
            $searchResult = array_merge($searchResult, $searchResult['_source']);
353
        }
354
355
        $this->hydrator->hydrate($entity, $searchResult);
356
        $this->hydrator->hydrateByAnnotation($entity, Field::class, $searchResult);
357
        $this->hydrator->hydrateByAnnotation($entity, MetaField::class, $searchResult);
358
359
        return $entity;
360
    }
361
362
    public function update($entity) {
363
        $type = $this->getEntityType();