original_string: protected function discoveredEvents()
      {
          if ($this->app->eventsAreCached()) {
              return require $this->app->getCachedEventsPath();
          }
  
          return $this->shouldDiscoverEvents()
                      ? $this->discoverEvents()
                      : [];
      }
code: protected function discoveredEvents()
      {
          if ($this->app->eventsAreCached()) {
              return require $this->app->getCachedEventsPath();
          }
  
          return $this->shouldDiscoverEvents()
                      ? $this->discoverEvents()
                      : [];
      }
code_tokens: protected function discoveredEvents ( ) { if ( $ this -> app -> eventsAreCached ( ) ) { return require $ this -> app -> getCachedEventsPath ( ) ; } return $ this -> shouldDiscoverEvents ( ) ? $ this -> discoverEvents ( ) : [ ] ; }
docstring: Get the discovered events and listeners for the application.
  
  @return array
docstring_tokens: Get the discovered events and listeners for the application .