Passed
Pull Request — main (#22)
by Andrey
29:13 queued 14:13
created

Str   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
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 = '')
14
 * @method static string finish(string $value, string $cap = '/')
15
 * @method static string lower(?string $value)
16
 * @method static string snake(?string $value)
17
 * @method static string start(?string $value, string $prefix)
18
 * @method static string studly(?string $value)
19
 * @method static string|null de(?string $value)
20
 * @method static string|null e(?string $value, bool $double = true)
21
 * @method static string|null removeSpaces(?string $value)
22
 * @method static string|null substr(string $string, int $start, int $length = null)
23
 */
24
final class Str extends BaseFacade
25
{
26
    protected static function getFacadeAccessor()
27
    {
28
        return Helper::class;
29
    }
30
}
31