@@ -22,13 +22,13 @@ 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 | - if(is_bool($filter = $this->filterHorizonEntries($entry))){ |
|
27 | + if (is_bool($filter = $this->filterHorizonEntries($entry))) { |
|
28 | 28 | return $filter; |
29 | 29 | } |
30 | 30 | |
31 | - if(is_bool($filter = $this->filterCorsRequests($entry))){ |
|
31 | + if (is_bool($filter = $this->filterCorsRequests($entry))) { |
|
32 | 32 | return $filter; |
33 | 33 | } |
34 | 34 | |
@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | protected function filterHorizonEntries(IncomingEntry $entry) |
47 | 47 | { |
48 | 48 | if ($entry->type === EntryType::REQUEST |
49 | - && isset($entry->content['uri']) |
|
50 | - && str_contains($entry->content['uri'], 'horizon')) { |
|
49 | + && isset($entry->content[ 'uri' ]) |
|
50 | + && str_contains($entry->content[ 'uri' ], 'horizon')) { |
|
51 | 51 | return false; |
52 | 52 | } |
53 | 53 | |
54 | 54 | if ($entry->type === EntryType::EVENT |
55 | - && isset($entry->content['name']) |
|
56 | - && str_contains($entry->content['name'], 'Horizon')) { |
|
55 | + && isset($entry->content[ 'name' ]) |
|
56 | + && str_contains($entry->content[ 'name' ], 'Horizon')) { |
|
57 | 57 | return false; |
58 | 58 | } |
59 | 59 | } |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | protected function filterCorsRequests(IncomingEntry $entry) |
62 | 62 | { |
63 | 63 | if ($entry->type === EntryType::REQUEST |
64 | - && isset($entry->content['method']) |
|
65 | - && $entry->content['method'] === 'OPTIONS') { |
|
64 | + && isset($entry->content[ 'method' ]) |
|
65 | + && $entry->content[ 'method' ] === 'OPTIONS') { |
|
66 | 66 | return false; |
67 | 67 | } |
68 | 68 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function gate() |
78 | 78 | { |
79 | - Gate::define('viewTelescope', function ($user) { |
|
79 | + Gate::define('viewTelescope', function($user) { |
|
80 | 80 | return in_array($user->email, [ |
81 | 81 | // |
82 | 82 | ]); |