| Total Complexity | 8 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TelescopeServiceProvider extends TelescopeApplicationServiceProvider |
||
| 11 | { |
||
| 12 | public function register() |
||
| 13 | { |
||
| 14 | Telescope::night(); |
||
| 15 | |||
| 16 | $this->hideSensitiveRequestDetails(); |
||
| 17 | |||
| 18 | Telescope::filter(fn (IncomingEntry $entry) => $this->app->isLocal() |
||
| 19 | || $entry->isReportableException() |
||
| 20 | || $entry->isFailedJob() |
||
| 21 | || $entry->isScheduledTask() |
||
| 22 | || $entry->hasMonitoredTag()); |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function hideSensitiveRequestDetails() |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function gate() |
||
| 38 |