original_string: public function routesTrigger(ModuleEvent $e)
      {
          $module = $e->getModule();
  
          if (is_callable(array($module, 'getRoutes'))) {
              $routes = $module->getRoutes();
              $this->routes[$e->getModuleName()] = $routes;
          }
  
          return $this;
      }
code: public function routesTrigger(ModuleEvent $e)
      {
          $module = $e->getModule();
  
          if (is_callable(array($module, 'getRoutes'))) {
              $routes = $module->getRoutes();
              $this->routes[$e->getModuleName()] = $routes;
          }
  
          return $this;
      }
code_tokens: public function routesTrigger ( ModuleEvent $ e ) { $ module = $ e -> getModule ( ) ; if ( is_callable ( array ( $ module , 'getRoutes' ) ) ) { $ routes = $ module -> getRoutes ( ) ; $ this -> routes [ $ e -> getModuleName ( ) ] = $ routes ; } return $ this ; }
docstring: Callback for 'routesTrigger' event.
  
  @param ModuleEvent $e
  
  @throws \Exception if the module returns an invalid route type
  
  @return $this
docstring_tokens: Callback for routesTrigger event .