Commit e257996a authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Simplification.

parent d1041cbe
......@@ -40,9 +40,7 @@ class ChainEvent extends Event
*/
public function addRoles(array $roles = array())
{
foreach ($roles as $role) {
$this->roles[] = $role;
}
$this->roles = array_merge($this->roles, $roles);
return $this;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment