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