original_string: public function getRoutes()
  	{
  		$router_factory = new RouterFactory;
  		$router = $router_factory->newInstance();
  
  		$routes_file = $this->getAppResourcePath('config/routes.php');
  
  		if (file_exists($routes_file)) {
  			// Let the app specify it's own routes.
  			include_once($routes_file);
  		} else {
  			// Fall back on some sensible defaults.
  			$router->add(null, '/');
  			$router->add(null, '/{controller}');
  			$router->add(null, '/{controller}/{action}');
  			$router->add(null, '/{controller}/{action}/{id}');
  		}
  
  		$this->router = $router;
  	}
code: public function getRoutes()
  	{
  		$router_factory = new RouterFactory;
  		$router = $router_factory->newInstance();
  
  		$routes_file = $this->getAppResourcePath('config/routes.php');
  
  		if (file_exists($routes_file)) {
  			// Let the app specify it's own routes.
  			include_once($routes_file);
  		} else {
  			// Fall back on some sensible defaults.
  			$router->add(null, '/');
  			$router->add(null, '/{controller}');
  			$router->add(null, '/{controller}/{action}');
  			$router->add(null, '/{controller}/{action}/{id}');
  		}
  
  		$this->router = $router;
  	}
code_tokens: public function getRoutes ( ) { $ router_factory = new RouterFactory ; $ router = $ router_factory -> newInstance ( ) ; $ routes_file = $ this -> getAppResourcePath ( 'config/routes.php' ) ; if ( file_exists ( $ routes_file ) ) { // Let the app specify it's own routes. include_once ( $ routes_file ) ; } else { // Fall back on some sensible defaults. $ router -> add ( null , '/' ) ; $ router -> add ( null , '/{controller}' ) ; $ router -> add ( null , '/{controller}/{action}' ) ; $ router -> add ( null , '/{controller}/{action}/{id}' ) ; } $ this -> router = $ router ; }
docstring: What routes have been configured for this app?
docstring_tokens: What routes have been configured for this app?