DouDianFacade   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __callStatic() 0 3 1
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Abbotton\DouDian;
4
5
use Illuminate\Support\Facades\Facade;
6
7
class DouDianFacade extends Facade
8
{
9
    public static function __callStatic($name, $args)
10
    {
11
        return app('DouDian')->$name;
12
    }
13
14
    /**
15
     * Get the registered name of the component.
16
     *
17
     * @return string
18
     */
19
    protected static function getFacadeAccessor()
20
    {
21
        return 'doudian';
22
    }
23
}
24