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

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