| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | protected function guardAgainstInvalidRequest() |
||
| 39 | { |
||
| 40 | if (!request()->has('token')) { |
||
| 41 | throw InvalidSlashCommandRequest::tokenNotFound(); |
||
| 42 | } |
||
| 43 | |||
| 44 | if (request()->get('token') != $this->commandConfig['verification_token']) { |
||
| 45 | throw InvalidSlashCommandRequest::invalidToken(request()->get('token')); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 67 | } |