Tumblr   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSigner() 0 3 1
A getUriConfig() 0 7 1
1
<?php
2
3
namespace Risan\OAuth1\Provider;
4
5
use Risan\OAuth1\Signature\HmacSha1Signer;
6
7
class Tumblr implements ProviderInterface
8
{
9
    /*
10
     * {@inheritdoc}
11
     */
12 1
    public function getUriConfig()
13
    {
14
        return [
15 1
            'temporary_credentials_uri' => 'https://www.tumblr.com/oauth/request_token',
16
            'authorization_uri' => 'https://www.tumblr.com/oauth/authorize',
17
            'token_credentials_uri' => 'https://www.tumblr.com/oauth/access_token',
18
            'base_uri' => 'https://api.tumblr.com/v2/',
19
        ];
20
    }
21
22
    /*
23
     * {@inheritdoc}
24
     */
25 1
    public function getSigner()
26
    {
27 1
        return new HmacSha1Signer();
28
    }
29
}
30