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

src/Entity/Traits/ValidateTrait.php 1 location

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

src/Entity/Traits/UsesPHPMetaDataTrait.php 1 location

@@ 105-124 (lines=20) @@
102
     * @throws DoctrineStaticMetaException
103
     * @SuppressWarnings(PHPMD.StaticAccess)
104
     */
105
    protected static function loadPropertyDoctrineMetaData(ClassMetadataBuilder $builder): void
106
    {
107
        $methodName = '__no_method__';
108
        try {
109
            $staticMethods = static::getStaticMethods();
110
            //now loop through and call them
111
            foreach ($staticMethods as $method) {
112
                $methodName = $method->getName();
113
                if (0 === stripos($methodName, UsesPHPMetaDataInterface::METHOD_PREFIX_GET_PROPERTY_DOCTRINE_META)) {
114
                    static::$methodName($builder);
115
                }
116
            }
117
        } catch (\Exception $e) {
118
            throw new DoctrineStaticMetaException(
119
                'Exception in '.__METHOD__.'for '
120
                .self::$reflectionClass->getName()."::$methodName\n\n"
121
                .$e->getMessage()
122
            );
123
        }
124
    }
125
126
    /**
127
     * Get class level meta data, eg table name