Code Duplication    Length = 3-3 lines in 4 locations

typo3/sysext/backend/Classes/Form/Element/InputColorPickerElement.php 1 location

@@ 138-140 (lines=3) @@
135
        if (!empty($config['placeholder'])) {
136
            $attributes['placeholder'] = trim($config['placeholder']);
137
        }
138
        if (isset($config['autocomplete'])) {
139
            $attributes['autocomplete'] = empty($config['autocomplete']) ? 'new-' . $fieldName : 'on';
140
        }
141
142
        $valuePickerHtml = [];
143
        if (isset($config['valuePicker']['items']) && is_array($config['valuePicker']['items'])) {

typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 location

@@ 140-142 (lines=3) @@
137
        if (!empty($config['placeholder'])) {
138
            $attributes['placeholder'] = trim($config['placeholder']);
139
        }
140
        if (isset($config['autocomplete'])) {
141
            $attributes['autocomplete'] = empty($config['autocomplete']) ? 'new-' . $fieldName : 'on';
142
        }
143
144
        $valuePickerHtml = [];
145
        if (isset($config['valuePicker']['items']) && is_array($config['valuePicker']['items'])) {

typo3/sysext/rsaauth/Classes/Form/Element/RsaInputElement.php 1 location

@@ 131-133 (lines=3) @@
128
        if (!empty($config['placeholder'])) {
129
            $attributes['placeholder'] = trim($config['placeholder']);
130
        }
131
        if (isset($config['autocomplete'])) {
132
            $attributes['autocomplete'] = empty($config['autocomplete']) ? 'new-' . $fieldName : 'on';
133
        }
134
        if ($isPasswordField) {
135
            $attributes['type'] = 'password';
136
            $attributes['value'] = $itemValue ? '*********' : '';

typo3/sysext/backend/Classes/Form/Element/InputLinkElement.php 1 location

@@ 158-160 (lines=3) @@
155
        if (!empty($config['placeholder'])) {
156
            $attributes['placeholder'] = trim($config['placeholder']);
157
        }
158
        if (isset($config['autocomplete'])) {
159
            $attributes['autocomplete'] = empty($config['autocomplete']) ? 'new-' . $fieldName : 'on';
160
        }
161
162
        $valuePickerHtml = [];
163
        if (isset($config['valuePicker']['items']) && is_array($config['valuePicker']['items'])) {