Str   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
/*
3
 * This file is part of the "andrey-helldar/support" project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @author Andrey Helldar <[email protected]>
9
 *
10
 * @copyright 2021 Andrey Helldar
11
 *
12
 * @license MIT
13
 *
14
 * @see https://github.com/andrey-helldar/support
15
 */
16
17
namespace Helldar\Support\Facades\Helpers;
18
19
use Helldar\Support\Facades\Facade;
20
use Helldar\Support\Helpers\Str as Helper;
21
22
/**
23
 * @method static \Helldar\Support\Facades\Helpers\Ables\Stringable of(?string $value)
24
 * @method static bool contains(string $haystack, $needles)
25
 * @method static bool doesntEmpty($value)
26
 * @method static bool endsWith(string $haystack, string|string[] $needles)
27
 * @method static bool isEmpty($value)
28
 * @method static bool startsWith(string $haystack, string|string[] $needles)
29
 * @method static int length(?string $value, string $encoding = null)
30
 * @method static string ascii(?string $value, string $language = 'en')
31
 * @method static string convertToString(?string $value)
32
 * @method static string random(int $length = 16)
33
 * @method static string replace(string $template, array $values, string $key_format = null)
34
 * @method static string slug(string $title, string $separator = '-', ?string $language = 'en')
35
 * @method static string|null after(string $subject, string $search)
36
 * @method static string|null before(string $subject, string $search)
37
 * @method static string|null camel(?string $value)
38
 * @method static string|null choice(float $number, array $choice = [], string $extra = null)
39
 * @method static string|null de(?string $value)
40
 * @method static string|null e(?string $value, bool $double = true)
41
 * @method static string|null end(?string $value, string $suffix)
42
 * @method static string|null finish(string $value, string $cap = '/')
43
 * @method static string|null lower(?string $value)
44
 * @method static string|null match(string $value, string $pattern)
45
 * @method static string|null pregReplace(?string $value, string $pattern, string $replacement)
46
 * @method static string|null removeSpaces(?string $value)
47
 * @method static string|null snake(?string $value, string $delimiter = '_')
48
 * @method static string|null start(?string $value, string $prefix)
49
 * @method static string|null studly(?string $value)
50
 * @method static string|null substr(string $string, int $start, int $length = null)
51
 * @method static string|null title(?string $value)
52
 * @method static string|null upper(?string $value)
53
 */
54
class Str extends Facade
55
{
56 372
    protected static function getFacadeAccessor()
57
    {
58 372
        return Helper::class;
59
    }
60
}
61