Code Duplication    Length = 10-10 lines in 2 locations

src/Actions/Action.php 1 location

@@ 172-181 (lines=10) @@
169
     *
170
     * @return string
171
     */
172
    protected function formatAttributes()
173
    {
174
        $html = [];
175
176
        foreach ($this->attributes as $name => $value) {
177
            $html[] = $name.'="'.e($value).'"';
178
        }
179
180
        return implode(' ', $html);
181
    }
182
183
    /**
184
     * @return string

src/Form/Field.php 1 location

@@ 1185-1194 (lines=10) @@
1182
     *
1183
     * @return string
1184
     */
1185
    protected function formatAttributes(): string
1186
    {
1187
        $html = [];
1188
1189
        foreach ($this->attributes as $name => $value) {
1190
            $html[] = $name.'="'.e($value).'"';
1191
        }
1192
1193
        return implode(' ', $html);
1194
    }
1195
1196
    /**
1197
     * @return $this