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 ( 55c96c...651f4b )
by Cees-Jan
04:10
created

RuntimeProcessor::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace WyriHaximus\Monolog\Processors;
4
5
final class RuntimeProcessor
6
{
7
    /**
8
     * @var float
9
     */
10
    private $start;
11
12 1
    public function __construct()
13
    {
14 1
        $this->start = microtime(true);
15 1
    }
16
17
    /**
18
     * @param  array $record
19
     * @return array
20
     */
21 1
    public function __invoke(array $record)
22
    {
23 1
        $record['extra']['runtime'] = microtime(true) - $this->start;
24
25 1
        return $record;
26
    }
27
}
28