GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ParserException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A forFileUnreadable() 0 10 1
1
<?php
2
3
4
/**
5
 * This file is part of WebHelper Parser.
6
 *
7
 * (c) James <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
namespace WebHelper\Parser\Exception;
13
14
use InvalidArgumentException;
15
16
/**
17
 * Unattended parameters.
18
 *
19
 * @author James <[email protected]>
20
 */
21
class ParserException extends InvalidArgumentException implements ParserExceptionInterface
22
{
23
    /**
24
     * the exception to throw if the configuration file is unreadable.
25
     *
26
     * @param string $file file pathname
27
     *
28
     * @return ParserException the exception to throw
29
     */
30 1
    public static function forFileUnreadable($file)
31
    {
32 1
        return new self(
33 1
            sprintf(
34 1
                'File "%s" is not readable',
35
                $file
36 1
            ),
37
            self::UNREADABLE_FILE
38 1
        );
39
    }
40
}
41