Passed
Pull Request — main (#136)
by Andrey
14:52
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 1
cts 1
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 60
 */
22
final class Http extends Facade
23 60
{
24
    use Deprecation;
25
26
    public static function __callStatic($method, $args)
27
    {
28
        self::deprecatedClass('Helldar\Support\Facades\Helpers\Http\Uri');
29
30
        return parent::__callStatic($method, $args);
31
    }
32
33
    protected static function getFacadeAccessor()
34
    {
35
        return Helper::class;
36
    }
37
}
38