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.
Completed
Push — develop ( 833af3...59528d )
by Tom Van
28s
created

UnsupportedFieldException::forField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
/**
3
 * UnsupportedFieldException for when an unsupported field was given to the fieldmapper
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
 */
11
12
namespace PHPExif\Common\Exception\Mapper;
13
14
/**
15
 * UnsupportedFieldException
16
 *
17
 * @category    PHPExif
18
 * @package     Common
19
 */
20
class UnsupportedFieldException extends \Exception
21
{
22
    /**
23
     * Returns new instance with set message
24
     *
25
     * @param string $field
26
     * @return UnsupportedFieldException
27
     */
28
    public static function forField($field)
29
    {
30
        return new self(
31
            sprintf(
32
                'Mapper does not support field "%1$s"',
33
                $field
34
            )
35
        );
36
    }
37
}
38