original_string: private static function checkDuplicated(Route $route)
      {
          foreach (self::$register as $registeredRoute) {
              if ($registeredRoute->getName() == $route->getName()) {
                  return true;
              }
          }
  
          return false;
      }
code: private static function checkDuplicated(Route $route)
      {
          foreach (self::$register as $registeredRoute) {
              if ($registeredRoute->getName() == $route->getName()) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: private static function checkDuplicated ( Route $ route ) { foreach ( self :: $ register as $ registeredRoute ) { if ( $ registeredRoute -> getName ( ) == $ route -> getName ( ) ) { return true ; } } return false ; }
docstring: Check if route is duplicated.
  
  @param Route $route
  
  @return bool
docstring_tokens: Check if route is duplicated .