Code Duplication    Length = 10-10 lines in 3 locations

src/Buttons/Abstract.php 1 location

@@ 182-191 (lines=10) @@
179
    /**
180
     * @return bool
181
     */
182
    public function removeAttrib($key)
183
    {
184
        if (isset($this->_attribs[$key])) {
185
            unset($this->_attribs[$key]);
186
187
            return true;
188
        }
189
190
        return false;
191
    }
192
193
    public function render()
194
    {

src/Traits/HasAttributesTrait.php 1 location

@@ 87-96 (lines=10) @@
84
     * @param $key
85
     * @return bool
86
     */
87
    public function removeAttrib($key)
88
    {
89
        if (isset($this->_attribs[$key])) {
90
            unset($this->_attribs[$key]);
91
92
            return true;
93
        }
94
95
        return false;
96
    }
97
}
98

src/Utility/HasAttributesTrait.php 1 location

@@ 219-228 (lines=10) @@
216
     * @param $key
217
     * @return bool
218
     */
219
    public function removeAttrib($key)
220
    {
221
        if (isset($this->_attribs[$key])) {
222
            unset($this->_attribs[$key]);
223
224
            return true;
225
        }
226
227
        return false;
228
    }
229
}
230