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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A genericFailed() 0 4 1
A wrongFormat() 0 4 1
A missingSid() 0 4 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