original_string: protected function redirectUserPath(string $namespace, string $path, ?string $redirect = null): string
      {
          if (! empty($redirect)) {
              $path = $redirect;
          }
  
          $property = \sprintf('redirect%sPath', Str::ucfirst($namespace));
  
          return \property_exists($this, $property) ? $this->{$property} : $path;
      }
code: protected function redirectUserPath(string $namespace, string $path, ?string $redirect = null): string
      {
          if (! empty($redirect)) {
              $path = $redirect;
          }
  
          $property = \sprintf('redirect%sPath', Str::ucfirst($namespace));
  
          return \property_exists($this, $property) ? $this->{$property} : $path;
      }
code_tokens: protected function redirectUserPath ( string $ namespace , string $ path , ? string $ redirect = null ) : string { if ( ! empty ( $ redirect ) ) { $ path = $ redirect ; } $ property = \ sprintf ( 'redirect%sPath' , Str :: ucfirst ( $ namespace ) ) ; return \ property_exists ( $ this , $ property ) ? $ this -> { $ property } : $ path ; }
docstring: Get redirection path.
  
  @param  string  $namespace
  @param  string  $path
  @param  string|null  $redirect
  
  @return string
docstring_tokens: Get redirection path .