Performance   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A tab() 0 3 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