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

@@ 1150-1159 (lines=10) @@
1147
     *
1148
     * @return string
1149
     */
1150
    protected function formatAttributes(): string
1151
    {
1152
        $html = [];
1153
1154
        foreach ($this->attributes as $name => $value) {
1155
            $html[] = $name.'="'.e($value).'"';
1156
        }
1157
1158
        return implode(' ', $html);
1159
    }
1160
1161
    /**
1162
     * @return $this