Code Duplication    Length = 10-11 lines in 2 locations

src/Container.php 2 locations

@@ 82-91 (lines=10) @@
79
        return $value;
80
    }
81
82
    public function set($id, callable $value) : self
83
    {
84
        if (isset($this->frozen[$id])) {
85
            throw new IdentifierFrozenException($id);
86
        }
87
88
        $this->raw[$id]  = $value;
89
90
        return $this;
91
    }
92
93
    public function factory($id, callable $value) : self
94
    {
@@ 93-103 (lines=11) @@
90
        return $this;
91
    }
92
93
    public function factory($id, callable $value) : self
94
    {
95
        if (isset($this->frozen[$id])) {
96
            throw new IdentifierFrozenException($id);
97
        }
98
99
        $this->factories[$id] = true;
100
        $this->raw[$id]       = $value;
101
102
        return $this;
103
    }
104
105
    public function remove($id) : self
106
    {