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.

InvalidStringRepresentationException::getVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 1
b 0
f 0
cc 1
rs 10
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
3
namespace Deployer\Component\PharUpdate\Version\Exception;
4
5
/**
6
 * Throw if an invalid version string representation is used.
7
 *
8
 * @author Kevin Herrera <[email protected]>
9
 */
10
class InvalidStringRepresentationException extends VersionException
11
{
12
    /**
13
     * The invalid string representation.
14
     *
15
     * @var string
16
     */
17
    private $version;
18
19
    /**
20
     * Sets the invalid string representation.
21
     *
22
     * @param string $version The string representation.
23
     */
24
    public function __construct($version)
25
    {
26
        parent::__construct(
27
            sprintf(
28
                'The version string representation "%s" is invalid.',
29
                $version
30
            )
31
        );
32
33
        $this->version = $version;
34
    }
35
36
    /**
37
     * Returns the invalid string representation.
38
     *
39
     * @return string The invalid string representation.
40
     */
41
    public function getVersion()
42
    {
43
        return $this->version;
44
    }
45
}
46