FallbackDetector   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
3
namespace Thinktomorrow\Locale\Detectors;
4
5
use Thinktomorrow\Locale\Scope;
6
use Thinktomorrow\Locale\Values\Config;
7
use Thinktomorrow\Locale\Values\Locale;
8
9
class FallbackDetector implements Detector
10
{
11 72
    public function get(Scope $scope, Config $config): ?Locale
12
    {
13 72
        return Locale::from(app()->getLocale());
14
    }
15
}
16