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

@@ 1142-1151 (lines=10) @@
1139
     *
1140
     * @return string
1141
     */
1142
    protected function formatAttributes(): string
1143
    {
1144
        $html = [];
1145
1146
        foreach ($this->attributes as $name => $value) {
1147
            $html[] = $name.'="'.e($value).'"';
1148
        }
1149
1150
        return implode(' ', $html);
1151
    }
1152
1153
    /**
1154
     * @return $this