Passed
Push — master ( 68f9e3...36b0af )
by Andrey
02:57 queued 39s
created

DeletePhp   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A delete() 0 5 2
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Services\Processors;
4
5
use Helldar\LaravelLangPublisher\Traits\Processors\Deletable;
6
use Illuminate\Support\Facades\File as IlluminateFile;
7
8
final class DeletePhp extends BaseProcessor
9
{
10
    use Deletable;
11
12 12
    protected function delete(): bool
13
    {
14 12
        return ! $this->isProtected()
15 6
            ? IlluminateFile::deleteDirectory($this->targetPath())
16 12
            : false;
17
    }
18
}
19