| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3.0052 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | 2 | protected function sendMessage($recipient, SmscRuMessage $message) |
|
| 44 | { |
||
| 45 | 2 | if (mb_strlen($message->content) > 800) { |
|
| 46 | throw CouldNotSendNotification::contentLengthLimitExceeded(); |
||
| 47 | } |
||
| 48 | |||
| 49 | $params = [ |
||
| 50 | 2 | 'phones' => $recipient, |
|
| 51 | 2 | 'mes' => $message->content, |
|
| 52 | 2 | 'sender' => $message->from, |
|
| 53 | 2 | ]; |
|
| 54 | |||
| 55 | 2 | if ($message->sendAt instanceof \DateTimeInterface) { |
|
| 56 | 1 | $params['time'] = '0'.$message->sendAt->getTimestamp(); |
|
| 57 | 1 | } |
|
| 58 | |||
| 59 | 2 | $this->smsc->send($params); |
|
| 60 | 2 | } |
|
| 61 | } |
||
| 62 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.