original_string: protected function findAlias($path)
      {
          $routes = $this->getList();
          $alias = $this->db->fetch('SELECT entity, entity_id FROM alias WHERE alias=?', array($path));
  
          foreach ($routes as $pattern => $route) {
  
              if (isset($route['status']) && empty($route['status'])) {
                  unset($routes[$pattern]);
                  continue;
              }
  
              if (empty($route['handlers']['alias'])) {
                  unset($routes[$pattern]);
                  continue;
              }
  
              $this->callAliasController($pattern, $path, $alias);
          }
  
          return $routes;
      }
code: protected function findAlias($path)
      {
          $routes = $this->getList();
          $alias = $this->db->fetch('SELECT entity, entity_id FROM alias WHERE alias=?', array($path));
  
          foreach ($routes as $pattern => $route) {
  
              if (isset($route['status']) && empty($route['status'])) {
                  unset($routes[$pattern]);
                  continue;
              }
  
              if (empty($route['handlers']['alias'])) {
                  unset($routes[$pattern]);
                  continue;
              }
  
              $this->callAliasController($pattern, $path, $alias);
          }
  
          return $routes;
      }
code_tokens: protected function findAlias ( $ path ) { $ routes = $ this -> getList ( ) ; $ alias = $ this -> db -> fetch ( 'SELECT entity, entity_id FROM alias WHERE alias=?' , array ( $ path ) ) ; foreach ( $ routes as $ pattern => $ route ) { if ( isset ( $ route [ 'status' ] ) && empty ( $ route [ 'status' ] ) ) { unset ( $ routes [ $ pattern ] ) ; continue ; } if ( empty ( $ route [ 'handlers' ] [ 'alias' ] ) ) { unset ( $ routes [ $ pattern ] ) ; continue ; } $ this -> callAliasController ( $ pattern , $ path , $ alias ) ; } return $ routes ; }
docstring: Try to find and call an alias handler using the URL path
  @param string $path
  @return array An array of active routes which don't support aliases
docstring_tokens: Try to find and call an alias handler using the URL path