Code Duplication    Length = 5-9 lines in 2 locations

src/ChromeLogger.php 2 locations

@@ 502-510 (lines=9) @@
499
500
        // obtain public, protected and private properties of the class itself:
501
502
        foreach ($reflection->getProperties() as $property) {
503
            if ($property->isStatic()) {
504
                continue; // omit static properties
505
            }
506
507
            $property->setAccessible(true);
508
509
            $properties["\${$property->name}"] = $property->getValue($object);
510
        }
511
512
        // obtain any inherited private properties from parent classes:
513
@@ 515-519 (lines=5) @@
512
        // obtain any inherited private properties from parent classes:
513
514
        while ($reflection = $reflection->getParentClass()) {
515
            foreach ($reflection->getProperties(ReflectionProperty::IS_PRIVATE) as $property) {
516
                $property->setAccessible(true);
517
518
                $properties["{$reflection->name}::\${$property->name}"] = $property->getValue($object);
519
            }
520
        }
521
522
        return $properties;