Passed
Push — master ( 917306...daef46 )
by João
03:49
created

_s()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
c 1
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
4
use Presspack\Framework\Support\Facades\Strings;
5
6
if (! function_exists('_s')) {
7
    function _s($string)
8
    {
9
        return Strings::get($string);
0 ignored issues
show
Bug introduced by
The method get() does not exist on Presspack\Framework\Support\Facades\Strings. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

9
        return Strings::/** @scrutinizer ignore-call */ get($string);
Loading history...
10
    }
11
}
12