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 — master ( af400a...61ccff )
by Hilari
02:07
created

ExpiredException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Cmp\Cache\Domain\Exceptions;
4
5
/**
6
 * Class ExpiredException
7
 *
8
 * @package Cmp\Cache\Domain\Exceptions
9
 */
10
class ExpiredException extends NotFoundException
11
{
12
    const CODE = 1001;
13
14
    /**
15
     * ExpiredException constructor.
16
     *
17
     * @param string $key
18
     */
19
    public function __construct($key)
20
    {
21
        parent::__construct("The item with key $key has expired", self::CODE);
0 ignored issues
show
Unused Code introduced by
The call to NotFoundException::__construct() has too many arguments starting with self::CODE.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
22
    }
23
}
24