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

Stringable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __callStatic() 0 5 1
A getFacadeAccessor() 0 3 1
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