Passed
Push — main ( f042b8...35cea8 )
by Andrey
15:42 queued 14:25
created

Http   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __callStatic() 0 5 1
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Helldar\Support\Facades\Helpers;
4
5
use Helldar\Support\Concerns\Deprecation;
6
use Helldar\Support\Facades\Facade;
7
use Helldar\Support\Helpers\Http as Helper;
8
9
/**
10
 * @method static bool exists(?string $url)
11
 * @method static bool isUrl(?string $url)
12
 * @method static string domain(?string $url)
13
 * @method static string host(?string $url)
14
 * @method static string scheme(?string $url)
15
 * @method static string validatedUrl(?string $url)
16
 * @method static string|null image(string $url, string $default = null)
17
 * @method static string|null subdomain(?string $url)
18
 * @method static void validateUrl(?string $url)
19
 *
20
 * @deprecated since 4.0: Namespace will be renamed to `Helldar\Support\Facades\Helpers\Http\Uri`.
21
 */
22
final class Http extends Facade
23
{
24
    use Deprecation;
25
26 60
    public static function __callStatic($method, $args)
27
    {
28 60
        self::deprecatedClass('Helldar\Support\Facades\Helpers\Http\Uri');
29
30 60
        return parent::__callStatic($method, $args);
31
    }
32
33 60
    protected static function getFacadeAccessor()
34
    {
35 60
        return Helper::class;
36
    }
37
}
38