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.

ForeignValue::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
namespace Metaphore;
3
4
use Metaphore\Value;
5
6
/**
7
 * Wrapper for values that are not stored by Metaphore.
8
 *
9
 * This might be some old values cached by previous system or set
10
 * not by Metaphore.
11
 *
12
 * Ttl is handled by foreign system, so for Metaphore it's always
13
 * considered fresh (not stale).
14
 */
15
class ForeignValue extends Value
16
{
17
    /**
18
     * @param mixed
19
     */
20
    public function __construct($result)
21
    {
22
        parent::__construct($result, PHP_INT_MAX);
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function isStale($nowTimestamp = null)
29
    {
30
        return false;
31
    }
32
}
33