Code Duplication    Length = 10-10 lines in 2 locations

src/Actions/Action.php 1 location

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

src/Form/Field.php 1 location

@@ 1113-1122 (lines=10) @@
1110
     *
1111
     * @return string
1112
     */
1113
    protected function formatAttributes(): string
1114
    {
1115
        $html = [];
1116
1117
        foreach ($this->attributes as $name => $value) {
1118
            $html[] = $name.'="'.e($value).'"';
1119
        }
1120
1121
        return implode(' ', $html);
1122
    }
1123
1124
    /**
1125
     * @return $this