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::forFileUnreadable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 10
ccs 6
cts 6
cp 1
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 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