original_string: public static function stripBase($path, $base = null) {
          if ($base === null)
              $base = getcwd();
          if (substr($path, 0, strlen($base)) === $base)
              return ltrim(substr($path, strlen($base) + 1), "/");
          else
              throw new PathException("\"$path\" does not contain base path \"$base\"");
      }
code: public static function stripBase($path, $base = null) {
          if ($base === null)
              $base = getcwd();
          if (substr($path, 0, strlen($base)) === $base)
              return ltrim(substr($path, strlen($base) + 1), "/");
          else
              throw new PathException("\"$path\" does not contain base path \"$base\"");
      }
code_tokens: public static function stripBase ( $ path , $ base = null ) { if ( $ base === null ) $ base = getcwd ( ) ; if ( substr ( $ path , 0 , strlen ( $ base ) ) === $ base ) return ltrim ( substr ( $ path , strlen ( $ base ) + 1 ) , "/" ) ; else throw new PathException ( "\"$path\" does not contain base path \"$base\"" ) ; }
docstring: Strips a base from a file or directory path.
  If no base is supplied, the working directory is used.
  @param string $path
  @param string $base
  @return string
docstring_tokens: Strips a base from a file or directory path . If no base is supplied the working directory is used .