Locale   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
/**
4
 * @license MIT, http://opensource.org/licenses/MIT
5
 * @copyright Aimeos (aimeos.org), 2019
6
 * @package laravel
7
 * @subpackage Facades
8
 */
9
10
11
namespace Aimeos\Shop\Facades;
12
13
14
/**
15
 * Returns the locale frontend controller
16
 */
17
class Locale extends \Illuminate\Support\Facades\Facade
18
{
19
    /**
20
     * Returns a new locale frontend controller object
21
     *
22
     * @return \Aimeos\Controller\Frontend\Locale\Iface
23
     */
24
    protected static function getFacadeAccessor()
25
    {
26
        return \Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->get(), 'locale' );
27
    }
28
}
29