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.
Completed
Push — master ( dd213f...9082b5 )
by James
05:12
created

ParserException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 20
ccs 6
cts 6
cp 1
rs 10
c 1
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
13
namespace WebHelper\Parser\Exception;
14
15
use InvalidArgumentException;
16
17
/**
18
 * Unattended parameters.
19
 *
20
 * @author James <[email protected]>
21
 */
22
class ParserException extends InvalidArgumentException implements ParserExceptionInterface
23
{
24
    /**
25
     * the exception to throw if the configuration file is unreadable.
26
     *
27
     * @param string $file file pathname
28
     *
29
     * @return ParserException the exception to throw
30
     */
31 1
    public static function forFileUnreadable($file)
32
    {
33 1
        return new self(
34 1
            sprintf(
35 1
                'File "%s" is not readable',
36
                $file
37 1
            ),
38
            self::UNREADABLE_FILE
39 1
        );
40
    }
41
}
42