LocaleComposer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 4 1
1
<?php namespace Modules\Core\Composers;
2
3
use Illuminate\Contracts\View\View;
4
use Illuminate\Support\Facades\App;
5
6
class LocaleComposer
7
{
8
    public function compose(View $view)
9
    {
10
        $view->with('currentLocale', App::getLocale());
11
    }
12
}
13