Code Duplication    Length = 17-17 lines in 3 locations

src/Providers/Tumblr.php 1 location

@@ 7-23 (lines=17) @@
4
5
use OAuth1\Contracts\Providers\Provider as ProviderContract;
6
7
class Tumblr extends Provider implements ProviderContract
8
{
9
    /**
10
     * Get default provider's configuration.
11
     *
12
     * @return array
13
     */
14
    public function defaultConfig()
15
    {
16
        return [
17
            'request_token_url' => 'https://www.tumblr.com/oauth/request_token',
18
            'authorize_url' => 'https://www.tumblr.com/oauth/authorize',
19
            'access_token_url' => 'https://www.tumblr.com/oauth/access_token',
20
            'resource_base_url' => 'https://api.tumblr.com/v2/',
21
        ];
22
    }
23
}
24

src/Providers/Twitter.php 1 location

@@ 7-23 (lines=17) @@
4
5
use OAuth1\Contracts\Providers\Provider as ProviderContract;
6
7
class Twitter extends Provider implements ProviderContract
8
{
9
    /**
10
     * Get default provider's configuration.
11
     *
12
     * @return array
13
     */
14
    public function defaultConfig()
15
    {
16
        return [
17
            'request_token_url' => 'https://api.twitter.com/oauth/request_token',
18
            'authorize_url' => 'https://api.twitter.com/oauth/authorize',
19
            'access_token_url' => 'https://api.twitter.com/oauth/access_token',
20
            'resource_base_url' => 'https://api.twitter.com/1.1/',
21
        ];
22
    }
23
}
24
25

src/Providers/Upwork.php 1 location

@@ 7-23 (lines=17) @@
4
5
use OAuth1\Contracts\Providers\Provider as ProviderContract;
6
7
class Upwork extends Provider implements ProviderContract
8
{
9
    /**
10
     * Get default provider's configuration.
11
     *
12
     * @return array
13
     */
14
    public function defaultConfig()
15
    {
16
        return [
17
            'request_token_url' => 'https://www.upwork.com/api/auth/v1/oauth/token/request',
18
            'authorize_url' => 'https://www.upwork.com/services/api/auth',
19
            'access_token_url' => 'https://www.upwork.com/api/auth/v1/oauth/token/access',
20
            'resource_base_url' => 'https://www.upwork.com/',
21
        ];
22
    }
23
}
24
25
26