From 8549919232808cfb01338fccfe069e7b23350c8b Mon Sep 17 00:00:00 2001 From: Raja Khoury Date: Sun, 15 Mar 2020 21:57:31 -0600 Subject: [PATCH] Fix code sniffer issues (#469) --- src/Events/Dispatcher.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Events/Dispatcher.php b/src/Events/Dispatcher.php index a553d0e2e..0add524ab 100644 --- a/src/Events/Dispatcher.php +++ b/src/Events/Dispatcher.php @@ -239,9 +239,7 @@ public function dispatch($event, $payload = [], $halt = false) // When the given "event" is actually an object we will assume it is an event // object and use the class as the event name and this event itself as the // payload to the handler, which makes object based events quite simple. - list($event, $payload) = $this->parseEventAndPayload( - $event, $payload - ); + list($event, $payload) = $this->parseEventAndPayload($event, $payload); $responses = []; @@ -434,9 +432,7 @@ public function createClassListener($listener, $wildcard = false) return call_user_func($this->createClassCallable($listener), $event, $payload); } - return call_user_func_array( - $this->createClassCallable($listener), $payload - ); + return call_user_func_array($this->createClassCallable($listener), $payload); }; }