Code Duplication    Length = 6-6 lines in 2 locations

src/Models/Embeds/HasOne.php 2 locations

@@ 22-27 (lines=6) @@
19
     */
20
    public function __construct(array $original = [])
21
    {
22
        foreach ($original as $key => $embed) {
23
            if (!$embed instanceof Embed) {
24
                continue;
25
            }
26
            $this->current[$key] = clone $embed;
27
        }
28
        parent::__construct($original);
29
    }
30
@@ 91-96 (lines=6) @@
88
    public function rollback()
89
    {
90
        $this->current = [];
91
        foreach ($this->original as $key => $embed) {
92
            if (!$embed instanceof Embed) {
93
                continue;
94
            }
95
            $this->current[$key] = clone $embed;
96
        }
97
        $this->remove = [];
98
        return $this;
99
    }