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
Branch master (ab1dd8)
by Drew
02:12 queued 34s
created

AskException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
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
    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