Code Duplication    Length = 7-7 lines in 2 locations

src/Column.php 1 location

@@ 238-244 (lines=7) @@
235
            $options = array_merge(['placeholder' => $placeholder], $options);
236
        }
237
238
        foreach ($options as $key => $values) {
239
            $methodName = 'set' . ucfirst(camel_case($key));
240
241
            if (method_exists($this, $methodName)) {
242
                $this->$methodName($values);
243
            }
244
        }
245
    }
246
247
    /**

src/Filters/Filter.php 1 location

@@ 111-117 (lines=7) @@
108
     */
109
    protected function setDefaultOptions(array $options)
110
    {
111
        foreach ($options as $key => $values) {
112
            $methodName = 'set' . ucfirst(camel_case($key));
113
114
            if (method_exists($this, $methodName)) {
115
                $this->$methodName($values);
116
            }
117
        }
118
    }
119
120
    /**