Skip to content

Commit

Permalink
Fix code sniffer issues (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajakhoury authored Mar 16, 2020
1 parent ed5a6af commit 8549919
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down Expand Up @@ -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);
};
}

Expand Down

0 comments on commit 8549919

Please sign in to comment.