original_string: public function matchingListeners($eventKeyPattern)
      {
          $matchPattern = '/' . preg_quote($eventKeyPattern, '/') . '/';
          $matches = array_intersect_key(
              $this->_listeners,
              array_flip(
                  preg_grep($matchPattern, array_keys($this->_listeners), 0)
              )
          );
  
          return $matches;
      }
code: public function matchingListeners($eventKeyPattern)
      {
          $matchPattern = '/' . preg_quote($eventKeyPattern, '/') . '/';
          $matches = array_intersect_key(
              $this->_listeners,
              array_flip(
                  preg_grep($matchPattern, array_keys($this->_listeners), 0)
              )
          );
  
          return $matches;
      }
code_tokens: public function matchingListeners ( $ eventKeyPattern ) { $ matchPattern = '/' . preg_quote ( $ eventKeyPattern , '/' ) . '/' ; $ matches = array_intersect_key ( $ this -> _listeners , array_flip ( preg_grep ( $ matchPattern , array_keys ( $ this -> _listeners ) , 0 ) ) ) ; return $ matches ; }
docstring: Returns the listeners matching a specified pattern
  
  @param string $eventKeyPattern Pattern to match.
  @return array
docstring_tokens: Returns the listeners matching a specified pattern