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

NepaliDate::refresh()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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