Completed
Pull Request — master (#817)
by
unknown
01:55
created

create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @author      Ivan Kurnosov <[email protected]>
4
 * @copyright   Copyright (c) Alex Bilbie
5
 * @license     http://mit-license.org/
6
 *
7
 * @link        https://github.com/thephpleague/oauth2-server
8
 */
9
10
namespace League\OAuth2\Server\Exception;
11
12
class UniqueTokenIdentifierConstraintViolationException extends OAuthServerException
13
{
14
    public static function create()
15
    {
16
        $errorMessage = 'Could not create unique access token identifier';
17
18
        return new static($errorMessage, 100, 'access_token_duplicate', 500);
19
    }
20
}
21