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
Pull Request — develop (#39)
by Tom Van
02:09
created

DigitalDegrees   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromDigitalDegrees() 0 6 1
1
<?php
2
/**
3
 * PHP Exif DigitalDegrees ValueObject
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\Data\ValueObject;
14
15
use PHPExif\Common\Data\ValueObject\FloatObject;
16
17
/**
18
 * DigitalDegrees class
19
 *
20
 * A value object to describe the DigitalDegrees data
21
 *
22
 * @category    PHPExif
23
 * @package     Common
24
 */
25
class DigitalDegrees extends FloatObject
26
{
27
    /**
28
     * Creates a new instance from given DigitalDegrees object
29
     *
30
     * @param DigitalDegrees $digitalDegrees
31
     *
32
     * @return DigitalDegrees
33
     */
34
    public static function fromDigitalDegrees(DigitalDegrees $digitalDegrees)
35
    {
36
        return new self(
37
            $digitalDegrees->getValue()
38
        );
39
    }
40
}
41