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 ( 636f6e...ab1dd8 )
by Drew
04:13
created

AskException::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 2
nc 1
nop 2
1
<?php
2
3
namespace Dbtlr\PHPEnvBuilder\Exception;
4
5
class AskException extends \Exception
6
{
7
    /**
8
     * AskException constructor.
9
     *
10
     * @param string $name
11
     * @param int $times
12
     */
13
    public function __construct(string $name, int $times)
14
    {
15
        parent::__construct(sprintf(
16
            'Failed after asking for `%S` %d time%S',
17
            $name,
18
            $times,
19
            $times !== 1 ? 's' : ''
20
        ));
21
    }
22
}
23