Code Duplication    Length = 3-3 lines in 2 locations

src/Service/ConfigMigrationService.php 2 locations

@@ 83-85 (lines=3) @@
80
            $newConfig['smtp_options']['connection_class'] = $oldConfig['connection_class'];
81
        }
82
        $newConfig['smtp_options']['connection_config'] = [];
83
        if (isset($oldConfig['smtp_user'])) {
84
            $newConfig['smtp_options']['connection_config']['username'] = $oldConfig['smtp_user'];
85
        }
86
        if (isset($oldConfig['smtp_user'])) {
87
            $newConfig['smtp_options']['connection_config']['username'] = $oldConfig['smtp_user'];
88
        }
@@ 86-88 (lines=3) @@
83
        if (isset($oldConfig['smtp_user'])) {
84
            $newConfig['smtp_options']['connection_config']['username'] = $oldConfig['smtp_user'];
85
        }
86
        if (isset($oldConfig['smtp_user'])) {
87
            $newConfig['smtp_options']['connection_config']['username'] = $oldConfig['smtp_user'];
88
        }
89
        if (isset($oldConfig['smtp_password'])) {
90
            $newConfig['smtp_options']['connection_config']['password'] = $oldConfig['smtp_password'];
91
        }