Code Duplication    Length = 10-10 lines in 2 locations

src/Actions/Action.php 1 location

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

src/Form/Field.php 1 location

@@ 1094-1103 (lines=10) @@
1091
     *
1092
     * @return string
1093
     */
1094
    protected function formatAttributes()
1095
    {
1096
        $html = [];
1097
1098
        foreach ($this->attributes as $name => $value) {
1099
            $html[] = $name.'="'.e($value).'"';
1100
        }
1101
1102
        return implode(' ', $html);
1103
    }
1104
1105
    /**
1106
     * @return $this