Memory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Koded package.
5
 *
6
 * (c) Mihail Binev <[email protected]>
7
 *
8
 * Please view the LICENSE distributed with this source code
9
 * for the full copyright and license information.
10
 *
11
 */
12
13
namespace Koded\Logging\Processors;
14
15
use function strtr;
16
17
/**
18
 * In-memory logger.
19
 *
20
 */
21 2
class Memory extends Processor
22
{
23 2
    protected function process(array $message): void
24 2
    {
25
        $this->formatted .= PHP_EOL . strtr($this->format, $message);
26
    }
27
}
28