| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function mapParams($recipient, $message, array $params = []) |
||
| 15 | { |
||
| 16 | if (!preg_match($this->recipientPattern, $recipient, $matches)) { |
||
| 17 | return []; |
||
| 18 | } |
||
| 19 | |||
| 20 | $recipient = '880'.$matches[3]; |
||
| 21 | |||
| 22 | return [ |
||
| 23 | 'csms_id' => isset($params['csms_id']) ? $params['csms_id'] : rand(100000, 999999), |
||
| 24 | 'msisdn' => $recipient, |
||
| 25 | 'sms' => $message, |
||
| 26 | ]; |
||
| 47 |