| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function validator() |
||
| 13 | { |
||
| 14 | $validator = Validator::make($this->all(), [ |
||
| 15 | 'body-mime' => 'required', |
||
| 16 | 'timestamp' => 'required', |
||
| 17 | 'token' => 'required', |
||
| 18 | 'signature' => 'required', |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $validator->after(function () { |
||
| 22 | $this->verifySignature(); |
||
| 23 | }); |
||
| 24 | |||
| 25 | return $validator; |
||
| 26 | } |
||
| 52 |