infobip_sms_send()   A
last analyzed

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
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
3
use Pnlinh\InfobipSms\Facades\InfobipSms;
4
5
if (!function_exists('infobip_sms_send')) {
6
    /**
7
     * @param $to
8
     * @param $text
9
     *
10
     * @return mixed
11
     */
12
    function infobip_sms_send($to, $text)
13
    {
14
        return InfobipSms::send($to, $text);
0 ignored issues
show
Bug introduced by
The method send() does not exist on Pnlinh\InfobipSms\Facades\InfobipSms. 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

14
        return InfobipSms::/** @scrutinizer ignore-call */ send($to, $text);
Loading history...
15
    }
16
}
17