From f8071e7d4adf9d5fb1f255056aef98d5c3600c17 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 19 Aug 2014 18:00:02 -0700 Subject: Remove useless code --- app/Model/Webhook.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'app/Model') diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php index 872031cc..e03bdcb4 100644 --- a/app/Model/Webhook.php +++ b/app/Model/Webhook.php @@ -104,15 +104,7 @@ class Webhook extends Base */ public function attachCreateEvents() { - $events = array( - Task::EVENT_CREATE, - ); - - $listener = new WebhookListener($this->url_task_creation, $this); - - foreach ($events as $event_name) { - $this->event->attach($event_name, $listener); - } + $this->event->attach(Task::EVENT_CREATE, new WebhookListener($this->url_task_creation, $this)); } /** -- cgit v1.2.3