Passed
Pull Request — main (#123)
by Andrey
42:12 queued 26:54
created

Reset   A

Complexity

Total Complexity 3

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 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A merge() 0 3 1
A resource() 0 3 2
1
<?php
2
3
/*
4
 * This file is part of the "andrey-helldar/laravel-lang-publisher" project.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @author Andrey Helldar <[email protected]>
10
 *
11
 * @copyright 2021 Andrey Helldar
12
 *
13
 * @license MIT
14
 *
15
 * @see https://github.com/andrey-helldar/laravel-lang-publisher
16
 */
17
18
declare(strict_types=1);
19
20
namespace Helldar\LaravelLangPublisher\Comparators;
21
22
use Helldar\Support\Facades\Helpers\Arr;
23
24
class Reset extends Base
25
{
26
    protected function merge(array $local, array $translated, array $excluded, array $extra_local, array $extra_translated): array
27
    {
28
        return Arr::merge($local, $excluded, $translated, $extra_local, $extra_translated);
29
    }
30
31
    protected function resource(string $filename, string $locale): array
32
    {
33
        return $this->full ? [] : parent::resource($filename, $locale);
34
    }
35
}
36