Passed
Pull Request — main (#84)
by Andrey
196:26 queued 181:26
created

Logger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLogger() 0 3 1
A log() 0 3 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Concerns;
4
5
use Helldar\Verbose\Facades\Log;
6
use Helldar\Verbose\Services\Logger as Service;
7
8
trait Logger
9
{
10
    protected function setLogger(): void
11
    {
12
        Service::io($this->output);
13
    }
14
15
    protected function log(string $message): void
16
    {
17
        Log::write($message);
18
    }
19
}
20