Code Duplication    Length = 9-10 lines in 3 locations

src/Html/Button.php 1 location

@@ 151-160 (lines=10) @@
148
     * @param string $class
149
     * @return $this
150
     */
151
    public function addClass($class)
152
    {
153
        if (! isset($this->attributes['className'])) {
154
            $this->attributes['className'] = $class;
155
        } else {
156
            $this->attributes['className'] .= " $class";
157
        }
158
159
        return $this;
160
    }
161
162
    /**
163
     * Set text option value.

src/Html/Column.php 1 location

@@ 225-234 (lines=10) @@
222
     * @param string $class
223
     * @return $this
224
     */
225
    public function addClass($class)
226
    {
227
        if (! isset($this->attributes['className'])) {
228
            $this->attributes['className'] = $class;
229
        } else {
230
            $this->attributes['className'] .= " $class";
231
        }
232
233
        return $this;
234
    }
235
236
    /**
237
     * Set column exportable flag.

src/Html/Options/Plugins/Select.php 1 location

@@ 63-71 (lines=9) @@
60
     * @param string $class
61
     * @return $this
62
     */
63
    public function addClass($class)
64
    {
65
        if (! isset($this->attributes['className'])) {
66
            $this->attributes['className'] = $class;
67
        } else {
68
            $this->attributes['className'] .= " $class";
69
        }
70
        return $this;
71
    }
72
73
74
    /**