| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function sendSms($information = array(), $option = array()) |
||
| 27 | { |
||
| 28 | $parameters = array(); |
||
| 29 | $parameters['username'] = $option['username']; |
||
| 30 | $parameters['password'] = $option['password']; |
||
| 31 | $parameters['from'] = $option['number']; |
||
| 32 | $parameters['to'] = $information['to']; |
||
| 33 | $parameters['text'] = $information['text']; |
||
| 34 | $parameters['isflash'] = false; |
||
| 35 | |||
| 36 | //ini_set("soap.wsdl_cache_enabled", "0"); |
||
| 37 | //$sms_client = new SoapClient('http://sms.payamakyab.com/post/send.asmx?wsdl', array('encoding'=>'UTF-8')); |
||
| 38 | //return $sms_client->SendSimpleSMS2($parameters)->SendSimpleSMS2Result; |
||
| 39 | return ''; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.