Passed
Push — main ( d57b89...a3c66a )
by Andrey
14:07 queued 12:05
created

Stringable::__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\BaseFacade;
7
use Helldar\Support\Helpers\Ables\Stringable as Helper;
8
9
/**
10
 * @deprecated Use \Helldar\Support\Facades\Helpers\Ables\Stringable::class instead.
11
 *
12
 * @method static Helper after(string $search)
13
 * @method static Helper ascii(string $language = 'en')
14
 * @method static Helper before(string $search)
15
 * @method static Helper camel()
16
 * @method static Helper dump()
17
 * @method static Helper end(string $suffix)
18
 * @method static Helper finish(string $cap = '/')
19
 * @method static Helper lower()
20
 * @method static Helper of(?string $value)
21
 * @method static Helper pregReplace(string $pattern, string $replacement)
22
 * @method static Helper removeSpaces()
23
 * @method static Helper replace(array $values, string $key_format = null)
24
 * @method static Helper slug(string $separator = '-', ?string $language = 'en')
25
 * @method static Helper snake(string $delimiter = '_')
26
 * @method static Helper start(string $prefix)
27
 * @method static Helper studly()
28
 * @method static Helper substr(int $start, int $length = null)
29
 * @method static Helper title()
30
 * @method static Helper trim(string $characters = " \t\n\r\0\x0B")
31
 * @method static Helper upper()
32
 * @method static void dd()
33
 */
34
final class Stringable extends BaseFacade
35
{
36
    use Deprecation;
37
38 20
    public static function __callStatic($method, $args)
39
    {
40 20
        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...
41
42 20
        return parent::__callStatic($method, $args);
43
    }
44
45 20
    protected static function getFacadeAccessor()
46
    {
47 20
        return Helper::class;
48
    }
49
}
50