Passed
Push — master ( 89f24e...8c4dad )
by Sylvain
08:05
created

Extras   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 18 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ecodev\Felix\Log\Formatter;
6
7
use Laminas\Log\Formatter\Simple;
8
9
/**
10
 * Simple formatter that show the Felix extras fields
11
 */
12
final class Extras extends Simple
13
{
14
    /**
15
     * Class constructor
16
     */
17 4
    public function __construct()
18
    {
19 4
        $format = '
20
Time    : %timestamp%
21
Priority: %priorityName% (%priority%)
22
Login   : %login%
23
URL     : %url%
24
REFERER : %referer%
25
IP      : %ip%
26
27
REQUEST:
28
%request%
29
30
MESSAGE:
31
%message%
32
33
';
34 4
        parent::__construct($format);
35 4
    }
36
}
37