Passed
Push — 9.x ( 701c54...b3b900 )
by Andrey
181:40 queued 166:43
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
/** @mixin \Helldar\LaravelLangPublisher\Console\Add */
9
trait Logger
10
{
11
    protected function setLogger(): void
12
    {
13
        Service::io($this->output);
14
    }
15
16
    protected function log(string $message): void
17
    {
18
        Log::write($message);
19
    }
20
}
21