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.

RepositoryException::wrongFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Audiens\AdobeClient\Exceptions;
4
5
use Audiens\AdobeClient\Entity\Traits;
6
7
/**
8
 * Class RepositoryException
9
 */
10
class RepositoryException extends \Exception
11
{
12
    /**
13
     * @param string $reason
14
     *
15
     * @return self
16
     */
17
    public static function genericFailed($reason)
18
    {
19
        return new self($reason);
20
    }
21
22
    /**
23
     * @param $responseContent
24
     *
25
     * @return self
26
     */
27
    public static function wrongFormat($responseContent)
28
    {
29
        return new self($responseContent);
30
    }
31
32
33
    /**
34
     * @param Traits $trait
35
     *
36
     * @return self
37
     */
38
    public static function missingSid($trait)
39
    {
40
        return new self('Missing sid for '.serialize($trait->getName()));
41
    }
42
}
43