Code Duplication    Length = 8-10 lines in 2 locations

src/Attributes.php 2 locations

@@ 113-122 (lines=10) @@
110
    /**
111
     * {@inheritdoc}
112
     */
113
    public function remove($key, $value = '')
114
    {
115
        if (!isset($this->storage[$key])) {
116
            return $this;
117
        }
118
119
        $this->storage[$key]->remove($value);
120
121
        return $this;
122
    }
123
124
    /**
125
     * {@inheritdoc}
@@ 200-207 (lines=8) @@
197
    /**
198
     * {@inheritdoc}
199
     */
200
    public function contains($key, $value)
201
    {
202
        if (!isset($this->storage[$key])) {
203
            return false;
204
        }
205
206
        return $this->storage[$key]->contains($value);
207
    }
208
209
    /**
210
     * {@inheritdoc}