Passed
Push — main ( 5b496d...7aaabf )
by PRATIK
20:44 queued 10:24
created

NepaliDate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
A refresh() 0 5 1
1
<?php
2
3
namespace Pratiksh\Nepalidate\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
class NepaliDate extends Facade
8
{
9
    protected static function getFacadeAccessor()
10
    {
11
        return 'nepalidate';
12
    }
13
14
    /**
15
     * Resolve a new instance for the facade
16
     *
17
     * @return mixed
18
     */
19
    public static function refresh()
20
    {
21
        static::clearResolvedInstance(static::getFacadeAccessor());
22
23
        return static::getFacadeRoot();
24
    }
25
}
26