Code Duplication    Length = 9-9 lines in 2 locations

app/Services/YouTube.php 1 location

@@ 16-24 (lines=9) @@
13
     * @param string      $key    The YouTube API key
14
     * @param Client|null $client The Guzzle HTTP client
15
     */
16
    public function __construct($key = null, Client $client = null)
17
    {
18
        parent::__construct(
19
            $key ?: config('koel.youtube.key'),
20
            null,
21
            'https://www.googleapis.com/youtube/v3',
22
            $client ?: new Client()
23
        );
24
    }
25
26
    /**
27
     * Determine if our application is using YouTube.

app/Services/Musixmatch.php 1 location

@@ 17-25 (lines=9) @@
14
     * @param string      $key    The Musixmatch API key
15
     * @param Client|null $client The Guzzle HTTP client
16
     */
17
    public function __construct($key = null, Client $client = null)
18
    {
19
        parent::__construct(
20
            $key ?: config('koel.musixmatch.key'),
21
            null,
22
            'https://api.musixmatch.com/ws/1.1',
23
            $client ?: new Client()
24
        );
25
    }
26
    
27
    /**
28
     * Determine if our application is using Musixmatch.