Logger   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A log() 0 4 1
1
<?php
2
/**
3
 * @author Dmitry Gladyshev <[email protected]>
4
 */
5
6
namespace Rucaptcha;
7
8
use Psr\Log\AbstractLogger;
9
10
class Logger extends AbstractLogger
11
{
12
    /**
13
     * @inheritDoc
14
     */
15 7
    public function log($level, $message, array $context = [])
16
    {
17 7
        echo date("d/m/y H:i:s", time()) . ' [' . $level . '] ' . $message . PHP_EOL;
18 7
    }
19
}
20