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 (#20)
by Tom Van
02:18
created

VerticalResolution   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
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A fromVerticalResolution() 0 6 1
1
<?php
2
/**
3
 * PHP Exif VerticalResolution 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
 */
11
12
namespace PHPExif\Common\Data\ValueObject\Exif;
13
14
use PHPExif\Common\Data\ValueObject\IntegerObject;
15
use \InvalidArgumentException;
16
use \RuntimeException;
17
18
/**
19
 * VerticalResolution class
20
 *
21
 * A value object to describe the VerticalResolution data
22
 *
23
 * @category    PHPExif
24
 * @package     Common
25
 */
26
class VerticalResolution extends Resolution
27
{
28
    /**
29
     * Creates a new instance from given Resolution object
30
     *
31
     * @param VerticalResolution $Resolution
0 ignored issues
show
Documentation introduced by
There is no parameter named $Resolution. Did you maybe mean $resolution?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
32
     *
33
     * @return VerticalResolution
34
     */
35
    public static function fromVerticalResolution(VerticalResolution $resolution)
36
    {
37
        return new self(
38
            $resolution->getValue() . '/1'
39
        );
40
    }
41
}
42