Lianluo::defaultTitle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace zacksleo\yii2\authclient\clients;
3
4
use yii\authclient\OAuth2;
5
6
class Lianluo extends OAuth2
7
{
8
    public $authUrl = 'https://mops-ucenter.lianluo.com/oauth2/auth';
9
    public $tokenUrl = 'https://mops-ucenter.lianluo.com/oauth2/token';
10
    public $apiBaseUrl = 'https://mops-ucenter.lianluo.com/api/oauth2/v1';
11
12
    protected function initUserAttributes()
13
    {
14
        return $this->api('users', 'GET');
15
    }
16
17
    protected function defaultName()
18
    {
19
        return '联络互动';
20
    }
21
22
    protected function defaultTitle()
23
    {
24
        return '联络互动';
25
    }
26
27
    protected function defaultViewOptions()
28
    {
29
        return [
30
            'popupWidth' => 800,
31
            'popupHeight' => 500
32
        ];
33
    }
34
}
35