| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | 1 | public function onRequestBeforeSend(Event $e) |
|
| 41 | { |
||
| 42 | /** @var RequestInterface $request */ |
||
| 43 | 1 | $request = $e['request']; |
|
| 44 | |||
| 45 | 1 | $url = $request->getUrl(true) |
|
| 46 | 1 | ->setScheme('https') |
|
| 47 | 1 | ->setHost(sprintf(self::BASE_URL, $this->username)) |
|
| 48 | 1 | ->setPath(self::WEBHOOK_PATH); |
|
| 49 | |||
| 50 | 1 | $request->setUrl($url) |
|
| 51 | 1 | ->getQuery() |
|
| 52 | 1 | ->add('token', $this->token); |
|
| 53 | 1 | } |
|
| 54 | } |
||
| 55 |