These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | error_reporting(E_ALL); |
||
3 | require_once __DIR__ . '/vendor/autoload.php'; |
||
4 | |||
5 | use ridvanbaluyos\sms\Sms as Sms; |
||
6 | use ridvanbaluyos\sms\providers\PromoTexter as PromoTexter; |
||
7 | use ridvanbaluyos\sms\providers\RisingTide as RisingTide; |
||
8 | use ridvanbaluyos\sms\providers\Semaphore as Semaphore; |
||
9 | use ridvanbaluyos\sms\providers\Chikka as Chikka; |
||
10 | use ridvanbaluyos\sms\providers\Nexmo as Nexmo; |
||
11 | use ridvanbaluyos\sms\providers\Twilio as Twilio; |
||
12 | |||
13 | $message = 'this is a test message'; |
||
14 | $phoneNumber = '639123456789'; |
||
15 | |||
16 | // Just change the classname to either PromoTexter, RisingTide, Chikka, or Semaphore. |
||
17 | $provider = new Semaphore(); |
||
18 | |||
19 | // If no provider is passed, it will be randomized based on the weight distribution. |
||
20 | $sms = new Sms($provider); |
||
21 | //$sms->send($phoneNumber, $message); |
||
0 ignored issues
–
show
|
|||
22 | $sms->balance(); |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.