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.

MapperNotRegisteredException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A forField() 0 9 1
1
<?php
2
/**
3
 * MapperNotRegisteredException for when an expected mapper was not found
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\Mapper;
14
15
/**
16
 * MapperNotRegisteredException
17
 *
18
 * @category    PHPExif
19
 * @package     Common
20
 */
21
class MapperNotRegisteredException extends \Exception
22
{
23
    /**
24
     * Returns new instance with set message
25
     *
26
     * @param string $field
27
     * @return MapperNotRegisteredException
28
     */
29
    public static function forField($field)
30
    {
31
        return new self(
32
            sprintf(
33
                'No mapper was registered for field "%1$s"',
34
                $field
35
            )
36
        );
37
    }
38
}
39