Code Duplication    Length = 9-9 lines in 2 locations

src/Form.php 1 location

@@ 92-100 (lines=9) @@
89
        }
90
    }
91
    
92
    protected function setAutocomplete()
93
    {
94
        // Set default autocomplete option (true/false) from cofing file
95
        $this->autocomplete = config('blade-form-components.autocomplete');
96
97
        if (isset($this->params['autocomplete'])) {
98
            $this->autocomplete = $this->params['autocomplete'];
99
        }
100
    }
101
}

src/FormElement.php 1 location

@@ 166-174 (lines=9) @@
163
        $this->value = old($this->name, $computedValue ?? '');
164
    }
165
166
    protected function setAutocomplete()
167
    {
168
        // Set default autocomplete option (true/false) from cofing file
169
        $this->autocomplete = config('blade-form-components.autocomplete');
170
171
        if (isset($this->params['autocomplete'])) {
172
            $this->autocomplete = $this->params['autocomplete'];
173
        }
174
    }
175
    
176
    protected function setDesc()
177
    {