PasswordCredentials   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequired() 0 4 1
1
<?php
2
3
namespace CommerceGuys\Guzzle\Oauth2\GrantType;
4
5
/**
6
 * Resource owner password credentials grant type.
7
 *
8
 * @link http://tools.ietf.org/html/rfc6749#section-4.3
9
 */
10
class PasswordCredentials extends GrantTypeBase
11
{
12
    protected $grantType = 'password';
13
14
    /**
15
     * @inheritdoc
16
     */
17 2
    protected function getRequired()
18
    {
19 2
        return array_merge(parent::getRequired(), ['username', 'password']);
20
    }
21
}
22