original_string: private function listenTo($event = null) {
          if ($event === null && $this->getEventInvoker()) {
              $event = $this->getEventInvoker()['id'];
          }
          return !$this->listen || in_array($event, $this->listen);
      }
code: private function listenTo($event = null) {
          if ($event === null && $this->getEventInvoker()) {
              $event = $this->getEventInvoker()['id'];
          }
          return !$this->listen || in_array($event, $this->listen);
      }
code_tokens: private function listenTo ( $ event = null ) { if ( $ event === null && $ this -> getEventInvoker ( ) ) { $ event = $ this -> getEventInvoker ( ) [ 'id' ] ; } return ! $ this -> listen || in_array ( $ event , $ this -> listen ) ; }
docstring: Check if the given event is listenable
  
  @param int $event event id, current event if null
  @return bool
docstring_tokens: Check if the given event is listenable