Code Duplication    Length = 5-5 lines in 2 locations

Classes/Service/Targets/InsertUpdateTable.php 2 locations

@@ 154-158 (lines=5) @@
151
            $field_values[$value] = $entry[$key];
152
        }
153
        
154
        if ($this->getConfiguration()["salt_password"] == 1) {
155
            if (array_key_exists("password", $field_values)) {
156
                $field_values["password"] = $this->saltPassword($field_values["password"]);
157
            }
158
        }
159
160
        $field_values['pid'] = $this->getConfiguration()['pid'];
161
        $time = time();
@@ 188-192 (lines=5) @@
185
            $tmp_arr[$value] = $entry[$key];
186
        }
187
        
188
        if ($this->getConfiguration()["salt_password"] == 1) {
189
            if (array_key_exists("password", $tmp_arr)) {
190
                $tmp_arr["password"] = $this->saltPassword($tmp_arr["password"]);
191
            }
192
        }
193
        
194
        $field_values = $this->duplicateArray($tmp_arr, $this->getConfiguration()['exclude_from_update']);
195
        $field_values['tstamp'] = time();