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.

CurrencyNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Awin\ReportTask\Bundle\ReportBundle\Exception;
4
5
use InvalidArgumentException;
6
7
/**
8
 * Invalid currency not found exception
9
 *
10
 * @date       24/06/2017
11
 * @time       21:49
12
 * @author     Peng Yue <[email protected]>
13
 * @copyright  2004-2017 Peng Yue
14
 */
15
16
class CurrencyNotFoundException extends InvalidArgumentException
17
{
18 4
    public function __construct($currency)
19
    {
20 4
        $message = "Invalid currency: %s";
21
22 4
        parent::__construct(sprintf($message, $currency), ErrorCode::INVALID_CURRENCY_ERROR_CODE);
23
    }
24
}