From 7417a8f1e11beee3107178f34f8ed05f2f6488f2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 27 Apr 2023 09:03:25 +1000 Subject: [PATCH] Silence broadcasters --- app/Events/Account/AccountCreated.php | 18 ++++++------- app/Events/Client/ClientWasArchived.php | 18 ++++++------- .../Company/CompanyDocumentsDeleted.php | 8 +++--- app/Events/Contact/ContactLoggedIn.php | 8 +++--- app/Events/Design/DesignWasArchived.php | 8 +++--- app/Events/Design/DesignWasCreated.php | 8 +++--- app/Events/Design/DesignWasDeleted.php | 10 +++---- app/Events/Design/DesignWasRestored.php | 8 +++--- app/Events/Design/DesignWasUpdated.php | 8 +++--- app/Events/Invoice/InvoiceWasCreated.php | 26 +++++++++---------- app/Events/Payment/Methods/MethodDeleted.php | 8 +++--- .../Subscription/SubscriptionWasCreated.php | 8 +++--- app/Events/User/UserLoggedIn.php | 8 +++--- app/Events/User/UserWasArchived.php | 8 +++--- app/Events/User/UserWasCreated.php | 8 +++--- app/Events/User/UserWasDeleted.php | 8 +++--- app/Events/User/UserWasRestored.php | 8 +++--- app/Events/User/UserWasUpdated.php | 8 +++--- 18 files changed, 92 insertions(+), 92 deletions(-) diff --git a/app/Events/Account/AccountCreated.php b/app/Events/Account/AccountCreated.php index fc4f7e3f098c..a01c0c68abdf 100644 --- a/app/Events/Account/AccountCreated.php +++ b/app/Events/Account/AccountCreated.php @@ -47,13 +47,13 @@ class AccountCreated $this->event_vars = $event_vars; } - /** - * Get the channels the event should broadcast on. - * - * @return Channel|array - */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // /** + // * Get the channels the event should broadcast on. + // * + // * @return Channel|array + // */ + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Client/ClientWasArchived.php b/app/Events/Client/ClientWasArchived.php index 709d9c7b11ac..0b7022705e22 100644 --- a/app/Events/Client/ClientWasArchived.php +++ b/app/Events/Client/ClientWasArchived.php @@ -49,13 +49,13 @@ class ClientWasArchived $this->event_vars = $event_vars; } - /** - * Get the channels the event should broadcast on. - * - * @return Channel|array - */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // /** + // * Get the channels the event should broadcast on. + // * + // * @return Channel|array + // */ + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Company/CompanyDocumentsDeleted.php b/app/Events/Company/CompanyDocumentsDeleted.php index 181ed024ea5f..4cad317fa38b 100644 --- a/app/Events/Company/CompanyDocumentsDeleted.php +++ b/app/Events/Company/CompanyDocumentsDeleted.php @@ -42,8 +42,8 @@ class CompanyDocumentsDeleted * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Contact/ContactLoggedIn.php b/app/Events/Contact/ContactLoggedIn.php index ac19467f9b09..112358db608e 100644 --- a/app/Events/Contact/ContactLoggedIn.php +++ b/app/Events/Contact/ContactLoggedIn.php @@ -53,8 +53,8 @@ class ContactLoggedIn * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Design/DesignWasArchived.php b/app/Events/Design/DesignWasArchived.php index 9e9faeca1287..c4b4196323e2 100644 --- a/app/Events/Design/DesignWasArchived.php +++ b/app/Events/Design/DesignWasArchived.php @@ -35,8 +35,8 @@ class DesignWasArchived * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Design/DesignWasCreated.php b/app/Events/Design/DesignWasCreated.php index 704376f3a743..26f4515b5cde 100644 --- a/app/Events/Design/DesignWasCreated.php +++ b/app/Events/Design/DesignWasCreated.php @@ -32,8 +32,8 @@ class DesignWasCreated * * @return PrivateChannel */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Design/DesignWasDeleted.php b/app/Events/Design/DesignWasDeleted.php index dcdea29838de..c3d1fc4e4538 100644 --- a/app/Events/Design/DesignWasDeleted.php +++ b/app/Events/Design/DesignWasDeleted.php @@ -31,9 +31,9 @@ class DesignWasDeleted * Get the channels the event should broadcast on. * * @return PrivateChannel - */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + */ + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Design/DesignWasRestored.php b/app/Events/Design/DesignWasRestored.php index b30b6a84aff8..4e294c327ce5 100644 --- a/app/Events/Design/DesignWasRestored.php +++ b/app/Events/Design/DesignWasRestored.php @@ -32,8 +32,8 @@ class DesignWasRestored * * @return PrivateChannel */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Design/DesignWasUpdated.php b/app/Events/Design/DesignWasUpdated.php index 6052e806947e..759aa2aa1b0a 100644 --- a/app/Events/Design/DesignWasUpdated.php +++ b/app/Events/Design/DesignWasUpdated.php @@ -32,8 +32,8 @@ class DesignWasUpdated * * @return PrivateChannel */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Invoice/InvoiceWasCreated.php b/app/Events/Invoice/InvoiceWasCreated.php index 741b40b63930..a6c909439c3f 100644 --- a/app/Events/Invoice/InvoiceWasCreated.php +++ b/app/Events/Invoice/InvoiceWasCreated.php @@ -54,19 +54,19 @@ class InvoiceWasCreated implements ShouldBroadcast * * @return PrivateChannel|array */ - public function broadcastOn() - { - return ['simple-channel']; - } + // public function broadcastOn() + // { + // return ['simple-channel']; + // } - /** - * Get the data to broadcast. - * - * @return array - */ - public function broadcastWith(): array - { - return ['id' => 'value']; - } + // /** + // * Get the data to broadcast. + // * + // * @return array + // */ + // public function broadcastWith(): array + // { + // return ['id' => 'value']; + // } } diff --git a/app/Events/Payment/Methods/MethodDeleted.php b/app/Events/Payment/Methods/MethodDeleted.php index d93fd4108c4b..dbbde3ec22ba 100644 --- a/app/Events/Payment/Methods/MethodDeleted.php +++ b/app/Events/Payment/Methods/MethodDeleted.php @@ -51,8 +51,8 @@ class MethodDeleted * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/Subscription/SubscriptionWasCreated.php b/app/Events/Subscription/SubscriptionWasCreated.php index 1aef2036b4ed..9a56c40a05f1 100644 --- a/app/Events/Subscription/SubscriptionWasCreated.php +++ b/app/Events/Subscription/SubscriptionWasCreated.php @@ -45,8 +45,8 @@ class SubscriptionWasCreated * * @return \Illuminate\Broadcasting\Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserLoggedIn.php b/app/Events/User/UserLoggedIn.php index 4eefbe6bcd73..c778373fead9 100644 --- a/app/Events/User/UserLoggedIn.php +++ b/app/Events/User/UserLoggedIn.php @@ -35,8 +35,8 @@ class UserLoggedIn * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserWasArchived.php b/app/Events/User/UserWasArchived.php index 6a9309b50b1e..267f0b446232 100644 --- a/app/Events/User/UserWasArchived.php +++ b/app/Events/User/UserWasArchived.php @@ -35,8 +35,8 @@ class UserWasArchived * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserWasCreated.php b/app/Events/User/UserWasCreated.php index 700cca37a66f..c0e5e3b0352d 100644 --- a/app/Events/User/UserWasCreated.php +++ b/app/Events/User/UserWasCreated.php @@ -35,8 +35,8 @@ class UserWasCreated * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserWasDeleted.php b/app/Events/User/UserWasDeleted.php index a4e596e90f70..8c465ded4e60 100644 --- a/app/Events/User/UserWasDeleted.php +++ b/app/Events/User/UserWasDeleted.php @@ -57,8 +57,8 @@ class UserWasDeleted * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserWasRestored.php b/app/Events/User/UserWasRestored.php index eeefc0da4924..bfb3c9884a54 100644 --- a/app/Events/User/UserWasRestored.php +++ b/app/Events/User/UserWasRestored.php @@ -57,8 +57,8 @@ class UserWasRestored * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } } diff --git a/app/Events/User/UserWasUpdated.php b/app/Events/User/UserWasUpdated.php index ac5b5145cd68..24bddce0ca3c 100644 --- a/app/Events/User/UserWasUpdated.php +++ b/app/Events/User/UserWasUpdated.php @@ -57,8 +57,8 @@ class UserWasUpdated * * @return Channel|array */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } + // public function broadcastOn() + // { + // return new PrivateChannel('channel-name'); + // } }