Performance::tab()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Fyuze\Debug\Collectors;
3
4
class Performance implements Collector
5
{
6
    /**
7
     * @return string
8
     */
9 1
    public function tab()
10
    {
11 1
        return ['title' => sprintf('%Gms', round(microtime(true) - APP_START, 6))];
0 ignored issues
show
Bug Best Practice introduced by
The expression return array('title' => ...lectors\APP_START, 6))) returns the type array<string,string> which is incompatible with the documented return type string.
Loading history...
Bug introduced by
The constant Fyuze\Debug\Collectors\APP_START was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
12
    }
13
}
14