Code Duplication    Length = 5-5 lines in 2 locations

src/Html/Builder.php 1 location

@@ 150-154 (lines=5) @@
147
        $replacements = [];
148
149
        foreach (Arr::dot($parameters) as $key => $value) {
150
            if ($this->isCallbackFunction($value, $key)) {
151
                $values[] = trim($value);
152
                Arr::set($parameters, $key, '%' . $key . '%');
153
                $replacements[] = '"%' . $key . '%"';
154
            }
155
        }
156
157
        $new = [];

src/Html/Editor/Editor.php 1 location

@@ 264-268 (lines=5) @@
261
                Arr::set($parameters, $key, '#' . $value);
262
            }
263
264
            if ($this->isCallbackFunction($value, $key)) {
265
                $values[] = trim($value);
266
                Arr::set($parameters, $key, '%' . $key . '%');
267
                $replacements[] = '"%' . $key . '%"';
268
            }
269
        }
270
271
        $new = [];