Passed
Push — master ( 51edae...d29a9b )
by Curtis
11:52 queued 05:54
created

Merge   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php
2
3
namespace App\Http\Controllers\enso\Localisation\Json;
4
5
use LaravelEnso\Localisation\Services\Json\Merger;
6
7
class Merge
8
{
9
    public function __invoke($locale = null)
10
    {
11
        (new Merger())->run($locale);
12
13
        return ['message' => __('The language files were successfully merged')];
14
    }
15
}
16