@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | //Telescope::night(); |
| 24 | 24 | |
| 25 | - Telescope::filter(function (IncomingEntry $entry) { |
|
| 25 | + Telescope::filter(function(IncomingEntry $entry) { |
|
| 26 | 26 | |
| 27 | 27 | $this->filterHorizonEntries($entry); |
| 28 | 28 | |
@@ -42,14 +42,14 @@ discard block |
||
| 42 | 42 | protected function filterHorizonEntries(IncomingEntry $entry) |
| 43 | 43 | { |
| 44 | 44 | if ($entry->type === EntryType::REQUEST |
| 45 | - && isset($entry->content['uri']) |
|
| 46 | - && str_contains($entry->content['uri'], 'horizon')) { |
|
| 45 | + && isset($entry->content[ 'uri' ]) |
|
| 46 | + && str_contains($entry->content[ 'uri' ], 'horizon')) { |
|
| 47 | 47 | return false; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | if ($entry->type === EntryType::EVENT |
| 51 | - && isset($entry->content['name']) |
|
| 52 | - && str_contains($entry->content['name'], 'Horizon')) { |
|
| 51 | + && isset($entry->content[ 'name' ]) |
|
| 52 | + && str_contains($entry->content[ 'name' ], 'Horizon')) { |
|
| 53 | 53 | return false; |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | protected function filterCorsRequests(IncomingEntry $entry) |
| 58 | 58 | { |
| 59 | 59 | if ($entry->type === EntryType::REQUEST |
| 60 | - && isset($entry->content['method']) |
|
| 61 | - && $entry->content['method'] === 'OPTIONS') { |
|
| 60 | + && isset($entry->content[ 'method' ]) |
|
| 61 | + && $entry->content[ 'method' ] === 'OPTIONS') { |
|
| 62 | 62 | return false; |
| 63 | 63 | } |
| 64 | 64 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | protected function gate() |
| 74 | 74 | { |
| 75 | - Gate::define('viewTelescope', function ($user) { |
|
| 75 | + Gate::define('viewTelescope', function($user) { |
|
| 76 | 76 | return in_array($user->email, [ |
| 77 | 77 | // |
| 78 | 78 | ]); |