GithubAccessResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A deserializeExtra() 0 4 1
1
<?php
2
3
namespace BWC\Share\Github;
4
5
use BWC\Share\Object\DeserializeTrait;
6
7
class GithubAccessResponse
8
{
9
    use DeserializeTrait;
10
11
    /** @var  string */
12
    public $access_token;
13
14
    /** @var string[] */
15
    public $scope;
16
17
    /** @var  string */
18
    public $token_type;
19
20
    /** @var  string */
21
    public $error;
22
23
    /** @var  string */
24
    public $error_description;
25
26
    /** @var  string */
27
    public $error_uri;
28
29
30
31
    public function deserializeExtra($arr)
0 ignored issues
show
Unused Code introduced by
The parameter $arr is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33
        $this->scope = explode(',', $this->scope);
34
    }
35
}