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

src/Data/Exif.php 1 location

@@ 434-447 (lines=14) @@
431
     *
432
     * @return array
433
     */
434
    public function jsonSerialize()
435
    {
436
        $reflObject = new ReflectionObject($this);
437
        $properties = $reflObject->getProperties(ReflectionProperty::IS_PROTECTED);
438
439
        $data = [];
440
        foreach ($properties as $property) {
441
            $propertyName = $property->getName();
442
443
            $data[$propertyName] = $this->{$propertyName};
444
        }
445
446
        return $data;
447
    }
448
}
449

src/Data/Iptc.php 1 location

@@ 233-246 (lines=14) @@
230
     *
231
     * @return array
232
     */
233
    public function jsonSerialize()
234
    {
235
        $reflObject = new ReflectionObject($this);
236
        $properties = $reflObject->getProperties(ReflectionProperty::IS_PROTECTED);
237
238
        $data = [];
239
        foreach ($properties as $property) {
240
            $propertyName = $property->getName();
241
242
            $data[$propertyName] = $this->{$propertyName};
243
        }
244
245
        return $data;
246
    }
247
}
248