| Conditions | 4 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function __invoke(Request $request) |
||
| 11 | { |
||
| 12 | if (app()->environment(config('thinkit.php.env_no_pass')) || |
||
|
|
|||
| 13 | (config('thinkit.php.info_pass') && |
||
| 14 | ((string) $request->input('pass')) === config('thinkit.php.info_pass')) |
||
| 15 | ) { |
||
| 16 | phpinfo(); |
||
| 17 | |||
| 18 | return; |
||
| 19 | } |
||
| 20 | |||
| 21 | abort(404); |
||
| 22 | } |
||
| 24 |