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

application/properties/HasProperties.php 2 locations

@@ 331-342 (lines=12) @@
328
     * @param string $key
329
     * @return PropertyValue
330
     */
331
    public function getPropertyValuesByKey($key)
332
    {
333
        $this->getPropertyGroups();
334
        foreach ($this->properties as $group_id => $group) {
335
            foreach ($group as $property_key => $value) {
336
                if ($property_key === $key) {
337
                    return $value;
338
                }
339
            }
340
        }
341
        return null;
342
    }
343
344
    /**
345
     * Get property values by key.
@@ 379-390 (lines=12) @@
376
        }
377
    }
378
379
    public function getPropertyValuesByPropertyId($property_id)
380
    {
381
        $this->getPropertyGroups();
382
        foreach ($this->properties as $group_id => $group) {
383
            foreach ($group as $property_key => $value) {
384
                if ($value->property_id == $property_id) {
385
                    return $value;
386
                }
387
            }
388
        }
389
        return null;
390
    }
391
392
    private function getPropertyValues($property)
393
    {