Code Duplication    Length = 9-9 lines in 2 locations

src/WebHemi/Form/AbstractForm.php 2 locations

@@ 106-114 (lines=9) @@
103
     * @param string $action
104
     * @return AbstractForm
105
     */
106
    protected function setAction($action)
107
    {
108
        $attributes = $this->form->getAttributes();
109
        $attributes['action'] = $action;
110
111
        $this->form->setAttributes($attributes);
112
113
        return $this;
114
    }
115
116
    /**
117
     * Sets form submit.
@@ 122-130 (lines=9) @@
119
     * @param string $method
120
     * @return AbstractForm
121
     */
122
    protected function setMethod($method = 'POST')
123
    {
124
        $attributes = $this->form->getAttributes();
125
        $attributes['method'] = $method;
126
127
        $this->form->setAttributes($attributes);
128
129
        return $this;
130
    }
131
132
    /**
133
     * Sets form auto-complete option.