Code Duplication    Length = 10-10 lines in 2 locations

src/Html/Button.php 1 location

@@ 278-287 (lines=10) @@
275
     * @param string $class
276
     * @return $this
277
     */
278
    public function addClass($class)
279
    {
280
        if (! isset($this->attributes['className'])) {
281
            $this->attributes['className'] = $class;
282
        } else {
283
            $this->attributes['className'] .= " $class";
284
        }
285
286
        return $this;
287
    }
288
289
    /**
290
     * Set text option value.

src/Html/Column.php 1 location

@@ 247-256 (lines=10) @@
244
     * @param string $class
245
     * @return $this
246
     */
247
    public function addClass($class)
248
    {
249
        if (! isset($this->attributes['className'])) {
250
            $this->attributes['className'] = $class;
251
        } else {
252
            $this->attributes['className'] .= " $class";
253
        }
254
255
        return $this;
256
    }
257
258
    /**
259
     * Set column exportable flag.