Passed
Push — main ( 545ade...3cfdef )
by Andrey
79:39 queued 77:29
created

Packages   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 8 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Support;
4
5
use Helldar\LaravelLangPublisher\Facades\ArrayProcessor as ArrProcessor;
6
use Helldar\LaravelLangPublisher\Facades\Config as ConfigFacade;
7
8
final class Packages
9
{
10
    /**
11
     * Returns a sorted list of packages identified for processing.
12
     *
13
     * @return array
14
     */
15 18
    public function get(): array
16
    {
17 18
        $packages = ConfigFacade::packages();
18
19 18
        return ArrProcessor::of($packages)
20 18
            ->unique()
21 18
            ->values()
22 18
            ->toArray();
23
    }
24
}
25