| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function send($authyId, $method = 'sms', $force = false, $action = null, $actionMessage = null): Response |
||
| 21 | { |
||
| 22 | // Prepare required variables |
||
| 23 | $url = $this->api.$method."/{$authyId}"; |
||
| 24 | $params = $this->params + ['query' => ['force' => $force ? 'true' : 'false', 'action' => $action, 'actionMessage' => $actionMessage]]; |
||
| 25 | |||
| 26 | // Send Authy token, and return response |
||
| 27 | return new Response($this->http->get($url, $params)); |
||
| 28 | } |
||
| 29 | |||
| 50 |