Passed
Pull Request — master (#13)
by Steve
01:46
created

UserEntity::getClaims()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 20
nc 1
nop 0
dl 0
loc 26
rs 8.8571
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: steverhoades
5
 * Date: 3/17/18
6
 * Time: 8:36 AM
7
 */
8
9
namespace OpenIDConnectServerExamples\Entities;
10
11
12
use OpenIDConnectServer\Entities\ClaimSetInterface;
13
14
class UserEntity extends \OAuth2ServerExamples\Entities\UserEntity implements ClaimSetInterface
0 ignored issues
show
Bug introduced by
The type OAuth2ServerExamples\Entities\UserEntity was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
{
16
    public function getClaims()
17
    {
18
        return [
19
            // profile
20
            'name' => 'John Smith',
21
            'family_name' => 'Smith',
22
            'given_name' => 'John',
23
            'middle_name' => 'Doe',
24
            'nickname' => 'JDog',
25
            'preferred_username' => 'jdogsmith77',
26
            'profile' => '',
27
            'picture' => 'avatar.png',
28
            'website' => 'http://www.google.com',
29
            'gender' => 'M',
30
            'birthdate' => '01/01/1990',
31
            'zoneinfo' => '',
32
            'locale' => 'US',
33
            'updated_at' => '01/01/2018',
34
            // email
35
            'email' => '[email protected]',
36
            'email_verified' => true,
37
            // phone
38
            'phone_number' => '(866) 555-5555',
39
            'phone_number_verified' => true,
40
            // address
41
            'address' => '50 any street, any state, 55555',
42
        ];
43
    }
44
}
45