Code Duplication    Length = 5-5 lines in 2 locations

src/reflection/ObjectAction.php 2 locations

@@ 69-73 (lines=5) @@
66
     * @return array Filled values indexed by name
67
     */
68
    public function fill(array $parameters) {
69
        foreach ($this->reader->readInterface() as $property) {
70
            if (!array_key_exists($property->name(), $parameters)) {
71
                $parameters[$property->name()] = $property->defaultValue();
72
            }
73
        }
74
        return $parameters;
75
    }
76
@@ 114-118 (lines=5) @@
111
            return false;
112
        });
113
114
        foreach ($this->reader->readInterface() as $property) {
115
            if ($property->canSet() && array_key_exists($property->name(), $parameters)) {
116
                $property->set($instance, $parameters[$property->name()]);
117
            }
118
        }
119
        return $instance;
120
    }
121
}