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

Http::__callStatic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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