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

src/AbstractDaftObject.php 1 location

@@ 147-156 (lines=10) @@
144
    /**
145
    * {@inheritdoc}
146
    */
147
    final public static function DaftObjectJsonProperties() : array
148
    {
149
        if (false === is_a(static::class, DaftJson::class, true)) {
150
            throw new DaftObjectNotDaftJsonBadMethodCallException(
151
                static::class
152
            );
153
        }
154
155
        return static::JSON_PROPERTIES;
156
    }
157
158
    /**
159
    * Nudge the state of a given property, marking it as dirty.

src/AbstractArrayBackedDaftObject.php 1 location

@@ 342-349 (lines=8) @@
339
        }
340
    }
341
342
    private static function ThrowIfNotDaftJson() : void
343
    {
344
        if (false === is_a(static::class, DaftJson::class, true)) {
345
            throw new DaftObjectNotDaftJsonBadMethodCallException(
346
                static::class
347
            );
348
        }
349
    }
350
}
351