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.

AskException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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 2
    public function __construct(string $name, int $times)
14
    {
15 2
        parent::__construct(sprintf(
16 2
            'Failed after asking for `%S` %d time%S',
17 2
            $name,
18 2
            $times,
19 2
            $times !== 1 ? 's' : ''
20
        ));
21 2
    }
22
}
23