Code Duplication    Length = 12-12 lines in 2 locations

src/ApiClient/ProviderApiClient.php 1 location

@@ 34-45 (lines=12) @@
31
     * @param LoggerInterface $logger
32
     * @return ProviderApiClient
33
     */
34
    public static function make($baseUrl, $token = '', LoggerInterface $logger = null)
35
    {
36
        $ar = [];
37
        $ar['base_uri'] = $baseUrl;
38
39
        if ($token != '') {
40
41
            $ar['headers'] = ['Authorization' => 'ApiToken token="' . $token . '"'];
42
        }
43
44
        return new self($ar, $logger);
45
    }
46
47
    /**
48
     * @author WN

src/ApiClient/ProviderCsvApiClient.php 1 location

@@ 33-44 (lines=12) @@
30
     * @param LoggerInterface $logger
31
     * @return ProviderApiClient
32
     */
33
    public static function make($baseUrl, $token = '', LoggerInterface $logger = null)
34
    {
35
        $ar = [];
36
        $ar['base_uri'] = $baseUrl;
37
38
        if ($token != '') {
39
40
            $ar['headers'] = ['Authorization' => 'ApiToken token="' . $token . '"'];
41
        }
42
43
        return new self($ar, $logger);
44
    }
45
46
    /**
47
     * @author EA