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.

InvalidAdapterException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromAdaptee() 0 6 2
1
<?php
2
3
namespace Acclimate\Container\Exception;
4
5
/**
6
 * There is no adapter class for a provided object
7
 */
8
class InvalidAdapterException extends \UnexpectedValueException
9
{
10
    /**
11
     * Creates an InvalidAdapterException using information about the object/value being adapted
12
     *
13
     * @param mixed $adaptee
14
     *
15
     * @return InvalidAdapterException
16
     */
17 5
    public static function fromAdaptee($adaptee)
18
    {
19 5
        $type = is_object($adaptee) ? get_class($adaptee) . ' objects' : gettype($adaptee) . ' variables';
20
21 5
        return new self("There is no container adapter registered to handle {$type}.");
22
    }
23
}
24