original_string: protected function getValidReturnUri( $returnUri, $default = null )
      {
          $match      = array();
          $returnUri  = ltrim( str_replace( '\\', '/', $returnUri ), "\n\r\t\v\e\f" );
  
          if ( ! preg_match( '#^/([^/].*)?$#', $returnUri, $match ) )
          {
              return $default;
          }
  
          return $returnUri;
      }
code: protected function getValidReturnUri( $returnUri, $default = null )
      {
          $match      = array();
          $returnUri  = ltrim( str_replace( '\\', '/', $returnUri ), "\n\r\t\v\e\f" );
  
          if ( ! preg_match( '#^/([^/].*)?$#', $returnUri, $match ) )
          {
              return $default;
          }
  
          return $returnUri;
      }
code_tokens: protected function getValidReturnUri ( $ returnUri , $ default = null ) { $ match = array ( ) ; $ returnUri = ltrim ( str_replace ( '\\' , '/' , $ returnUri ) , "\n\r\t\v\e\f" ) ; if ( ! preg_match ( '#^/([^/].*)?$#' , $ returnUri , $ match ) ) { return $ default ; } return $ returnUri ; }
docstring: Gte valid return-uri
  
  @param   string      $returnUri
  @param   string|null $default
  @return  string|null
docstring_tokens: Gte valid return - uri