Passed
Pull Request — main (#22)
by Andrey
22:20 queued 08:45
created

Str::getFacadeAccessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Helldar\Support\Facades\Helpers;
4
5
use Helldar\Support\Facades\BaseFacade;
6
use Helldar\Support\Helpers\Str as Helper;
7
8
/**
9
 * @method static bool endsWith(string $haystack, string|string[] $needles)
10
 * @method static bool startsWith(string $haystack, string|string[] $needles)
11
 * @method static int length(?string $value, string $encoding = null)
12
 * @method static string camel(?string $value)
13
 * @method static string choice(float $number, array $choice = [], string $extra = null)
14
 * @method static string finish(string $value, string $cap = '/')
15
 * @method static string lower(?string $value)
16
 * @method static string snake(?string $value, string $delimiter = '_')
17
 * @method static string start(?string $value, string $prefix)
18
 * @method static string studly(?string $value)
19
 * @method static string|null after(string $subject, string $search)
20
 * @method static string|null before(string $subject, string $search)
21
 * @method static string|null de(?string $value)
22
 * @method static string|null e(?string $value, bool $double = true)
23
 * @method static string|null removeSpaces(?string $value)
24
 * @method static string|null substr(string $string, int $start, int $length = null)
25
 */
26
final class Str extends BaseFacade
27
{
28
    protected static function getFacadeAccessor()
29
    {
30
        return Helper::class;
31
    }
32
}
33