original_string: function _verifyIsBannedRoute($currentRoute)
      {
          $r = false;
  
          $currentRoute = rtrim($currentRoute, '/');
          foreach ($this->routesDenied as $deniedRoute) {
              $deniedRoute = rtrim($deniedRoute, '/');
              $allowLeft = false;
              if (substr($deniedRoute, -1) == '*') {
                  // remove star
                  $allowLeft = true;
                  $deniedRoute = substr($deniedRoute, 0, strlen($deniedRoute) -1 );
              }
  
              if ( ($left = str_replace($deniedRoute, '', $currentRoute)) !== $currentRoute ) {
                  if ($allowLeft || $left == '')
                      return true;
              }
          }
  
          return $r;
      }
code: function _verifyIsBannedRoute($currentRoute)
      {
          $r = false;
  
          $currentRoute = rtrim($currentRoute, '/');
          foreach ($this->routesDenied as $deniedRoute) {
              $deniedRoute = rtrim($deniedRoute, '/');
              $allowLeft = false;
              if (substr($deniedRoute, -1) == '*') {
                  // remove star
                  $allowLeft = true;
                  $deniedRoute = substr($deniedRoute, 0, strlen($deniedRoute) -1 );
              }
  
              if ( ($left = str_replace($deniedRoute, '', $currentRoute)) !== $currentRoute ) {
                  if ($allowLeft || $left == '')
                      return true;
              }
          }
  
          return $r;
      }
code_tokens: function _verifyIsBannedRoute ( $ currentRoute ) { $ r = false ; $ currentRoute = rtrim ( $ currentRoute , '/' ) ; foreach ( $ this -> routesDenied as $ deniedRoute ) { $ deniedRoute = rtrim ( $ deniedRoute , '/' ) ; $ allowLeft = false ; if ( substr ( $ deniedRoute , - 1 ) == '*' ) { // remove star $ allowLeft = true ; $ deniedRoute = substr ( $ deniedRoute , 0 , strlen ( $ deniedRoute ) - 1 ) ; } if ( ( $ left = str_replace ( $ deniedRoute , '' , $ currentRoute ) ) !== $ currentRoute ) { if ( $ allowLeft || $ left == '' ) return true ; } } return $ r ; }
docstring: Check given route name is in banned list
  
  @param string $currentRoute
  
  @return bool
docstring_tokens: Check given route name is in banned list