Completed
Push — master ( 1873fc...d3ccba )
by Philipp
36:59 queued 32:44
created

Config   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A cookieLocalization() 0 3 1
A beautify() 0 3 1
A supportedLocales() 0 3 1
A acceptLanguage() 0 3 1
A fallbackLocale() 0 3 1
A subdomains() 0 3 1
A preventRedirect() 0 3 1
1
<?php
2
3
namespace Pmochine\LaravelTongue\Misc;
4
5
class Config
6
{
7
    public static function subdomains()
8
    {
9
        return config('localization.subdomains', []);
10
    }
11
12
    public static function beautify()
13
    {
14
        return config('localization.beautify_url');
15
    }
16
17
    public static function fallbackLocale()
18
    {
19
        return config('app.fallback_locale');
20
    }
21
22
    public static function supportedLocales()
23
    {
24
        return config('localization.supportedLocales');
25
    }
26
27
    public static function acceptLanguage()
28
    {
29
        return config('localization.acceptLanguage');
30
    }
31
32
    public static function cookieLocalization()
33
    {
34
        return config('localization.cookie_localization');
35
    }
36
37
    public static function preventRedirect()
38
    {
39
        return config('localization.prevent_redirect', false);
40
    }
41
}
42