| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function __construct($message, $recipientNumber, $senderNumber, $senderName = null) |
|
|
|
|||
| 33 | { |
||
| 34 | 1 | $this->throwsExceptionIfEmpty($recipientNumber, $senderNumber); |
|
| 35 | |||
| 36 | 1 | $this->body = ['outboundSMSMessageRequest' => [ |
|
| 37 | 1 | 'address' => 'tel:'.$this->normalizePhoneNumber($recipientNumber), |
|
| 38 | 1 | 'senderAddress' => $this->sender = 'tel:'.$this->normalizePhoneNumber($senderNumber), |
|
| 39 | 1 | 'outboundSMSTextMessage' => [ 'message' => $message ?: ''] |
|
| 40 | ] |
||
| 98 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.