Passed
Push — master ( 8f026b...0fb977 )
by Waaaaaaaaaa
03:29
created

MonologFormatter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A format() 0 3 1
A formatBatch() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Logfile;
4
5
use Monolog\Formatter\FormatterInterface;
6
7
class MonologFormatter implements FormatterInterface
8
{
9
    /**
10
     * {@inherit}
11
     */
12
    public function format(array $record)
13
    {
14
        return $record;
15
    }
16
17
    /**
18
     * {@inherit}
19
     */
20
    public function formatBatch(array $records)
21
    {
22
        return array_map([$this, 'format'], $records);
23
    }
24
}
25