Passed
Push — main ( 1c7dfd...e0e27b )
by Andrey
16:04 queued 14:32
created

Stringable::__callStatic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Helldar\Support\Facades\Helpers;
4
5
use Helldar\Support\Concerns\Deprecation;
6
use Helldar\Support\Facades\BaseFacade;
7
use Helldar\Support\Helpers\Ables\Stringable as Helper;
8
9
/**
10
 * @method static Helper after(string $search)
11
 * @method static Helper ascii(string $language = 'en')
12
 * @method static Helper before(string $search)
13
 * @method static Helper camel()
14
 * @method static Helper finish(string $cap = '/')
15
 * @method static Helper lower()
16
 * @method static Helper of(?string $value)
17
 * @method static Helper pregReplace(string $pattern, string $replacement)
18
 * @method static Helper removeSpaces()
19
 * @method static Helper replace(array $values, string $key_format = null)
20
 * @method static Helper slug(string $separator = '-', ?string $language = 'en')
21
 * @method static Helper snake(string $delimiter = '_')
22
 * @method static Helper start(string $prefix)
23
 * @method static Helper studly()
24
 * @method static Helper substr(int $start, int $length = null)
25
 * @method static Helper title()
26
 * @method static Helper trim(string $characters = " \t\n\r\0\x0B")
27
 * @method static Helper upper()
28
 */
29
final class Stringable extends BaseFacade
30
{
31
    use Deprecation;
32
33
    public static function __callStatic($method, $args)
34
    {
35
        self::deprecatedClass(Ables\Stringable::class);
0 ignored issues
show
Bug introduced by
The type Helldar\Support\Facades\Helpers\Ables\Stringable was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
36
37
        return parent::__callStatic($method, $args);
38
    }
39
40
    protected static function getFacadeAccessor()
41
    {
42
        return Helper::class;
43
    }
44
}
45