Test Failed
Push — master ( 772f18...8c594b )
by Alec
03:05
created

ProfilerReportFormatter::getString()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 5
nc 3
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * User: alec
4
 * Date: 10.12.18
5
 * Time: 14:22
6
 */
7
declare(strict_types=1);
8
9
namespace AlecRabbit\Tools\Reports\Formatters;
10
11
use AlecRabbit\Tools\Reports\ProfilerReport;
12
13
class ProfilerReportFormatter extends Formatter
14
{
15
    /** @var ProfilerReport */
16
    protected $report;
17
18
    public function setStyles(): void
19
    {
20
    }
21
22
    public function getString(): string
23
    {
24
        $r = '';
25
        foreach ($this->report->getReports() as $reports) {
26
            foreach ($reports as $report) {
27
                $r .= $report;
28
            }
29
        }
30
        return $r;
31
    }
32
}