Code Duplication    Length = 7-8 lines in 2 locations

src/Laravel/ConfigWrapper.php 2 locations

@@ 17-24 (lines=8) @@
14
     *
15
     * @return \OpenVPN\Interfaces\ConfigInterface
16
     */
17
    public function getClient(array $params = []): ConfigInterface
18
    {
19
        $configs = config('openvpn-client');
20
        $configs = array_merge($configs, $params);
21
        $object  = new Config($configs);
22
23
        return $object->client();
24
    }
25
26
    /**
27
     * Get server configuration of OpenVPN
@@ 33-39 (lines=7) @@
30
     *
31
     * @return \OpenVPN\Interfaces\ConfigInterface
32
     */
33
    public function getServer(array $params = []): ConfigInterface
34
    {
35
        $configs = config('openvpn-server');
36
        $configs = array_merge($configs, $params);
37
38
        return new Config($configs);
39
    }
40
}
41