original_string: protected function addInterfaceListeners($eventName, array $listeners = [])
      {
          foreach (class_implements($eventName) as $interface) {
              if (isset($this->listeners[$interface])) {
                  foreach ($this->listeners[$interface] as $names) {
                      $listeners = array_merge($listeners, (array) $names);
                  }
              }
          }
  
          return $listeners;
      }
code: protected function addInterfaceListeners($eventName, array $listeners = [])
      {
          foreach (class_implements($eventName) as $interface) {
              if (isset($this->listeners[$interface])) {
                  foreach ($this->listeners[$interface] as $names) {
                      $listeners = array_merge($listeners, (array) $names);
                  }
              }
          }
  
          return $listeners;
      }
code_tokens: protected function addInterfaceListeners ( $ eventName , array $ listeners = [ ] ) { foreach ( class_implements ( $ eventName ) as $ interface ) { if ( isset ( $ this -> listeners [ $ interface ] ) ) { foreach ( $ this -> listeners [ $ interface ] as $ names ) { $ listeners = array_merge ( $ listeners , ( array ) $ names ) ; } } } return $ listeners ; }
docstring: Add the listeners for the event's interfaces to the given array.
  
  @param  string  $eventName
  @param  array  $listeners
  @return array
docstring_tokens: Add the listeners for the event s interfaces to the given array .