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

src/Decoders/DataParser.php 2 locations

@@ 295-300 (lines=6) @@
292
        $pathValue = null;
293
        if ($this->hasValue($data, $path)) {
294
            $value = $this->getValue($data, $path);
295
            if (false === is_array($value)) {
296
                throw new \InvalidArgumentException(
297
                    sprintf("Value expected to be an array, but %s given", gettype($value)),
298
                    400
299
                );
300
            }
301
302
            $pathValue = [];
303
            $keys = array_keys($value);
@@ 492-497 (lines=6) @@
489
                $pathValue = $value;
490
            } elseif (is_numeric($value)) {
491
                $pathValue = ('int' === $type) ? (int) $value : (float) $value;
492
            } elseif (null !== $value) {
493
                throw new \InvalidArgumentException(
494
                    sprintf("Value expected to be %s, but %s given", $type, gettype($value)),
495
                    400
496
                );
497
            }
498
        }
499
500
        $this->restorePath();