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.

ElementAlreadyExistsException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A withKey() 0 9 1
1
<?php
2
/**
3
 * ElementAlreadyExists exception class
4
 *
5
 * @link        http://github.com/PHPExif/php-exif-common for the canonical source repository
6
 * @copyright   Copyright (c) 2016 Tom Van Herreweghe <[email protected]>
7
 * @license     http://github.com/PHPExif/php-exif-common/blob/master/LICENSE MIT License
8
 * @category    PHPExif
9
 * @package     Common
10
 * @codeCoverageIgnore
11
 */
12
13
namespace PHPExif\Common\Exception\Collection;
14
15
/**
16
 * ElementAlreadyExistsException
17
 *
18
 * @category    PHPExif
19
 * @package     Common
20
 */
21
class ElementAlreadyExistsException extends \Exception
22
{
23
    /**
24
     * Returns new instance with message set
25
     *
26
     * @param string $key
27
     *
28
     * @return ElementAlreadyExistsException
29
     */
30
    public static function withKey($key)
31
    {
32
        return new self(
33
            sprintf(
34
                'An element with is already present for key "%1$s"',
35
                $key
36
            )
37
        );
38
    }
39
}
40