| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2.0023 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 1 | private function sendSms(TestResult $result, User $user) |
|
| 47 | { |
||
| 48 | 1 | if (empty($user->getTelephoneNumber())) { |
|
| 49 | return; |
||
| 50 | } |
||
| 51 | |||
| 52 | 1 | $this->twilio->account->messages->sendMessage( |
|
| 53 | 1 | $this->config['twilio_from_number'], |
|
| 54 | 1 | $user->getTelephoneNumber(), |
|
| 55 | 1 | $this->container->get('templating')->render( |
|
| 56 | 1 | 'OverwatchServiceBundle:Sms:result.txt.twig', |
|
| 57 | 1 | ['result' => $result] |
|
| 58 | 1 | ) |
|
| 59 | 1 | ); |
|
| 60 | 1 | } |
|
| 61 | } |
||
| 62 |