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

@@ 385-392 (lines=8) @@
382
        );
383
    }
384
385
    private static function ThrowIfNotDaftJson() : void
386
    {
387
        if (false === is_a(static::class, DaftJson::class, true)) {
388
            throw new DaftObjectNotDaftJsonBadMethodCallException(
389
                static::class
390
            );
391
        }
392
    }
393
}
394