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

src/Entity/Traits/UsesPHPMetaDataTrait.php 1 location

@@ 91-110 (lines=20) @@
88
     * @throws DoctrineStaticMetaException
89
     * @SuppressWarnings(PHPMD.StaticAccess)
90
     */
91
    protected static function loadPropertyDoctrineMetaData(ClassMetadataBuilder $builder): void
92
    {
93
        $methodName = '__no_method__';
94
        try {
95
            $staticMethods = static::getStaticMethods();
96
            //now loop through and call them
97
            foreach ($staticMethods as $method) {
98
                $methodName = $method->getName();
99
                if (0 === stripos($methodName, UsesPHPMetaDataInterface::METHOD_PREFIX_GET_PROPERTY_DOCTRINE_META)) {
100
                    static::$methodName($builder);
101
                }
102
            }
103
        } catch (\Exception $e) {
104
            throw new DoctrineStaticMetaException(
105
                'Exception in '.__METHOD__.'for '
106
                .self::$reflectionClass->getName()."::$methodName\n\n"
107
                .$e->getMessage()
108
            );
109
        }
110
    }
111
112
    /**
113
     * Get class level meta data, eg table name

src/Entity/Traits/ValidateTrait.php 1 location

@@ 37-59 (lines=23) @@
34
     *
35
     * @throws DoctrineStaticMetaException
36
     */
37
    protected static function loadPropertyValidatorMetaData(ValidatorClassMetaData $metadata): void
38
    {
39
        $methodName = '__no_method__';
40
        try {
41
            $staticMethods = static::getStaticMethods();
42
            //now loop through and call them
43
            foreach ($staticMethods as $method) {
44
                $methodName = $method->getName();
45
                if ($methodName === ValidateInterface::METHOD_PREFIX_GET_PROPERTY_VALIDATOR_META) {
46
                    continue;
47
                }
48
                if (0 === stripos($methodName, ValidateInterface::METHOD_PREFIX_GET_PROPERTY_VALIDATOR_META)) {
49
                    static::$methodName($metadata);
50
                }
51
            }
52
        } catch (\Exception $e) {
53
            throw new DoctrineStaticMetaException(
54
                'Exception in '.__METHOD__.'for '
55
                .self::$reflectionClass->getName()."::$methodName\n\n"
56
                .$e->getMessage()
57
            );
58
        }
59
    }
60
61
    public function setValidated()
62
    {