| Conditions | 5 |
| Paths | 7 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function allowRequest(Request $request): bool |
||
| 14 | { |
||
| 15 | if (Config::get('jaravel.http.allow_request')) { |
||
| 16 | if (!Caller::call(Config::get('jaravel.http.allow_request'), [$request])) { |
||
| 17 | return false; |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | if (Config::get('jaravel.http.deny_request')) { |
||
| 22 | if (Caller::call(Config::get('jaravel.http.deny_request'), [$request])) { |
||
| 23 | return false; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | return true; |
||
| 28 | } |
||
| 30 |