LocaleController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A assets_ru() 0 6 1
A assets_en() 0 6 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Repositories\LocaleRepository;
6
7
class LocaleController extends Controller
8
{
9
    public function assets_ru()
10
    {
11
        $set_data = new LocaleRepository();
12
        $strings = $set_data->getCacheLng('ru');
13
14
        return response($strings)->header('Content-Type', 'text/javascript');
15
    }
16
17
    public function assets_en()
18
    {
19
        $set_data = new LocaleRepository();
20
        $strings = $set_data->getCacheLng('en');
21
22
        return response($strings)->header('Content-Type', 'text/javascript');
23
    }
24
}
25